From 0661856f98c60def6852fcb7465f20b4888d69ec Mon Sep 17 00:00:00 2001 From: Jem Winter Date: Thu, 13 Jul 2023 11:14:13 +0100 Subject: [PATCH] Fixes nullability of returned IGrainReminder in GrainReminderExtensions --- src/Orleans.Reminders/GrainReminderExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Orleans.Reminders/GrainReminderExtensions.cs b/src/Orleans.Reminders/GrainReminderExtensions.cs index f1a637d75b..c4aeb10543 100644 --- a/src/Orleans.Reminders/GrainReminderExtensions.cs +++ b/src/Orleans.Reminders/GrainReminderExtensions.cs @@ -80,7 +80,7 @@ private static Task UnregisterReminder(IGrainContext? grainContext, IGrainRemind /// The grain instance. /// Reminder to return /// Promise for Reminder handle. - public static Task GetReminder(this Grain grain, string reminderName) => GetReminder(grain?.GrainContext, reminderName); + public static Task GetReminder(this Grain grain, string reminderName) => GetReminder(grain?.GrainContext, reminderName); /// /// Returns a previously registered reminder. @@ -88,9 +88,9 @@ private static Task UnregisterReminder(IGrainContext? grainContext, IGrainRemind /// A grain. /// Reminder to return /// Promise for Reminder handle. - public static Task GetReminder(this IGrainBase grain, string reminderName) => GetReminder(grain?.GrainContext, reminderName); + public static Task GetReminder(this IGrainBase grain, string reminderName) => GetReminder(grain?.GrainContext, reminderName); - private static Task GetReminder(IGrainContext? grainContext, string reminderName) + private static Task GetReminder(IGrainContext? grainContext, string reminderName) { ArgumentNullException.ThrowIfNull(grainContext, "grain"); if (string.IsNullOrWhiteSpace(reminderName)) throw new ArgumentNullException(nameof(reminderName));