Reliable Sessions are not yet supported in .NET Core. You are basically on your own on this in the sense that you'll need to implement the business logic behind this. Maybe this helps you:
public static void Retry(int retryCount, TimeSpan delay, Action action)
{
bool b = Retry<bool>(
retryCount,
delay,
() => { action(); return true; });
}
public static T Retry<T>(int retryCount, TimeSpan delay, Func<T> func)
{
int currentAttempt = 0;
while (true)
{
try
{
++currentAttempt;
return func();
}
catch
{
if (currentAttempt == retryCount)
{
throw;
}
}
if (delay > TimeSpan.Zero)
{
Thread.Sleep(delay);
}
}
}