How to make a ServiceFabric actor go away in the distant future

So, if I have an actor and I use the following line:

await RegisterReminderAsync("My Reminder", new byte[0], 
    TimeSpan.FromDays(30), TimeSpan.FromSeconds(60)).ConfigureAwait(false);

      

I can set a reminder to leave after 30 days with a period of 60 seconds. However, if I try to set up the reminder to go out 60 days, an exception is thrown because it RegisterReminderAsync

converts the relevant data to milliseconds as an unsigned integer ( uint

), which can take about 50 days. So, what if I want to set a reminder for a year in the future? Or 10 years?

I could set a reminder to populate a new reminder when the old reminder is called, thereby allowing me to extend the period indefinitely, but that seems like messy and not the best option we could use. Is there a way to specify how the method should handle the due date?

+3


source to share


1 answer


Yes, how it works today, but I opened an issue for using int64: https://github.com/Azure/service-fabric-services-and-actors-dotnet/issues/13



+1


source







All Articles