Skip to content

Add support for nullable reference types - ServicePlatform#7863

Open
mchamberlin77 wants to merge 4 commits into
masterfrom
ServicePlatNullable
Open

Add support for nullable reference types - ServicePlatform#7863
mchamberlin77 wants to merge 4 commits into
masterfrom
ServicePlatNullable

Conversation

@mchamberlin77

Copy link
Copy Markdown

#6257

This PR adds #nullable enable to the ServicePlatform folder.

}

static bool IsRetriedMessage(ITransportReceiveContext context, out string retryUniqueMessageId, out string retryAcknowledgementQueue)
static bool IsRetriedMessage(ITransportReceiveContext context, out string? retryUniqueMessageId, out string? retryAcknowledgementQueue)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick question. Are you also considering adding nullable annotation attributes or are you leaving these out deliberately in internals? For example adding NotNullWhen may be helpful to properly flow the nullable context

And cool we are making progress on nullable 🎉😎

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We haven't looked at those, but they look very useful for some of the cases I have seen. Thanks for pointing them out!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added as this was exactly what is needed to express what happens in the method. Thanks again for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants