private static void SignalREventHubOnUserDisconnected(object sender, SignalRUserDisconnectedEventArgs signalRUserDisconnectedEventArgs) { ThreadSafeStringLookup lookup; if (ConnectionLookups.TryGetValue(signalRUserDisconnectedEventArgs.Principal.Identity.Name, out lookup)) { lookup.RemoveConnectionId(signalRUserDisconnectedEventArgs.Context.CorrelationId); } }
private static void SignalREventHubOnUserDisconnected(object sender, SignalRUserDisconnectedEventArgs signalRUserDisconnectedEventArgs) { ThreadSafeStringLookup lookup; if (ConnectionLookups.TryGetValue(signalRUserDisconnectedEventArgs.Principal.Identity.Name, out lookup)) { lookup.RemoveConnectionId(signalRUserDisconnectedEventArgs.ConnectionContext.CorrelationId); } }
private static void OnUserDisconnected(SignalRUserDisconnectedEventArgs e) { EventHandler <SignalRUserDisconnectedEventArgs> handler = UserDisconnected; if (handler != null) { handler(null, e); } }