Skip to content

Commit

Permalink
Add nullability annotations for IGrainCallContext
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed May 17, 2024
1 parent 14bf6b1 commit 7d3836d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Orleans.Core.Abstractions/Core/IGrainCallContext.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable enable
using System.Reflection;
using System.Threading.Tasks;
using Orleans.Runtime;
Expand Down Expand Up @@ -74,12 +75,12 @@ public interface IGrainCallContext
/// <summary>
/// Gets or sets the result.
/// </summary>
object Result { get; set; }
object? Result { get; set; }

/// <summary>
/// Gets or sets the response.
/// </summary>
Response Response { get; set; }
Response? Response { get; set; }

/// <summary>
/// Invokes the request.
Expand Down Expand Up @@ -114,6 +115,6 @@ public interface IOutgoingGrainCallContext : IGrainCallContext
/// <summary>
/// Gets the grain context of the sender.
/// </summary>
public IGrainContext SourceContext { get; }
public IGrainContext? SourceContext { get; }
}
}

0 comments on commit 7d3836d

Please sign in to comment.