private static void SignalREventHubOnUserDisconnected(object sender, SignalRUserDisconnectedEventArgs signalRUserDisconnectedEventArgs)
		{
			ThreadSafeStringLookup lookup;
			if (ConnectionLookups.TryGetValue(signalRUserDisconnectedEventArgs.Principal.Identity.Name, out lookup))
			{
				lookup.RemoveConnectionId(signalRUserDisconnectedEventArgs.Context.CorrelationId);
			}
		}
예제 #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);
            }
        }
예제 #3
0
        private static void OnUserDisconnected(SignalRUserDisconnectedEventArgs e)
        {
            EventHandler <SignalRUserDisconnectedEventArgs> handler = UserDisconnected;

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