public override Task OnDisconnected(bool stopCalled) { DirectMessageService _DirectMessageService = new DirectMessageService(); _DirectMessageService.DeleteUserConnectionIds(Context.ConnectionId); return(base.OnDisconnected(stopCalled)); }
public override Task OnReconnected() { DirectMessageService _DirectMessageService = new DirectMessageService(); _DirectMessageService.DeleteUserConnectionIds(savedConnectionId); _DirectMessageService.StoreUserConnectionIds(savedUserId, Context.ConnectionId); return(base.OnReconnected()); }