You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,I just discovered when I set PersistentSubscription's SetRetryPolicy property,but it sometimes appears when the dropreason is connection is closed.But it doesn't work when handler service throw an manual exception.
Code below:
public object Any(PurchaseOrderCreated @event)
{
//handle event
throw new Exception("retry test");
return true;
}
the subscript code:
var subscriptionSettings = new SubscriptionSettings().SubscribeToStreams(streams =>
{
streams.Add(new PersistentSubscription("stream_name1", "subscription_group_name1").SetRetryPolicy(Retries.Three, retryCounter => TimeSpan.FromSeconds(5)));
});
The text was updated successfully, but these errors were encountered: