Skip to content
Permalink
Browse files

Add UnRegisterRequestFilter to SSE Client

  • Loading branch information...
mythz committed Aug 1, 2019
1 parent db9903e commit 07e2274bff5eacb4017d5b1b3eb0ff4eb40bd6c7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ServiceStack.Client/ServerEventsClient.cs
@@ -167,6 +167,7 @@ public string EventStreamUri

public Action<WebRequest> EventStreamRequestFilter { get; set; }
public Action<WebRequest> HeartbeatRequestFilter { get; set; }
public Action<WebRequest> UnRegisterRequestFilter { get; set; }

readonly Dictionary<string, List<Action<ServerEventMessage>>> listeners =
new Dictionary<string, List<Action<ServerEventMessage>>>();
@@ -764,6 +765,8 @@ public virtual Task InternalStop()

if (log.IsDebugEnabled)
log.Debug("[SSE-CLIENT] Unregistering...");

UnRegisterRequestFilter?.Invoke(req);
});
} catch (Exception) {}
}

0 comments on commit 07e2274

Please sign in to comment.
You can’t perform that action at this time.