private static void SignalREventHubOnUserDisconnected(object sender, SignalRUserDisconnectedEventArgs signalRUserDisconnectedEventArgs)
		{
			ThreadSafeStringLookup lookup;
			if (ConnectionLookups.TryGetValue(signalRUserDisconnectedEventArgs.Principal.Identity.Name, out lookup))
			{
				lookup.RemoveConnectionId(signalRUserDisconnectedEventArgs.Context.CorrelationId);
			}
		}
Exemple #2
0
        private static void SignalREventHubOnUserDisconnected(object sender, SignalRUserDisconnectedEventArgs signalRUserDisconnectedEventArgs)
        {
            ThreadSafeStringLookup lookup;

            if (ConnectionLookups.TryGetValue(signalRUserDisconnectedEventArgs.Principal.Identity.Name, out lookup))
            {
                lookup.RemoveConnectionId(signalRUserDisconnectedEventArgs.ConnectionContext.CorrelationId);
            }
        }
Exemple #3
0
        private static void OnUserDisconnected(SignalRUserDisconnectedEventArgs e)
        {
            EventHandler <SignalRUserDisconnectedEventArgs> handler = UserDisconnected;

            if (handler != null)
            {
                handler(null, e);
            }
        }