Пример #1
0
        public Task UnSubscribeAsync(IZoneOb observer)
        {
            _subsManager.Unsubscribe(observer);
            logger.Debug($"È¡Ïû¶©ÔÄIZoneOb, {_subsManager.Count}");

            return(Task.CompletedTask);
        }
Пример #2
0
 public Task ViewerDisconnect(IChirperViewer viewer)
 {
     if (viewers.IsSubscribed(viewer))
     {
         viewers.Unsubscribe(viewer);
     }
     return(TaskDone.Done);
 }
Пример #3
0
 public Task UnsubscribeAsync(IMainEntry_Obs viewer)
 {
     if (m_subsManager.IsSubscribed(viewer))
     {
         m_subsManager.Unsubscribe(viewer);
     }
     return(Task.CompletedTask);
 }
Пример #4
0
 public Task UnSubscribeAsync(IGateWay_Obs view)
 {
     if (m_IGW_Obs.IsSubscribed(view))
     {
         m_IGW_Obs.Unsubscribe(view);
     }
     return(Task.CompletedTask);
 }
Пример #5
0
 public Task UnsubscribeForGameUpdates(IGameObserver subscriber)
 {
     if (subscribers.IsSubscribed(subscriber))
     {
         subscribers.Unsubscribe(subscriber);
     }
     return(TaskDone.Done);
 }
Пример #6
0
 public Task UnSubscribe(IObserver observer)
 {
     if (_subsManager.IsSubscribed(observer))
     {
         _subsManager.Unsubscribe(observer);
     }
     return(Task.CompletedTask);
 }
Пример #7
0
        public async Task Disconnect(IShardSessionObserver observer)
        {
            sessionObservers.Unsubscribe(observer);
            seed = 0;
            GetLogger().Info($"session {this.GetPrimaryKey()} disconnected");

            if (ActiveCharacter != null)
            {
                await ActiveCharacter.Logout();

                ActiveCharacter = null;
            }

            AuthenticatedIdentity = null;
            ShardName             = null;
        }
Пример #8
0
        public Task Unsubscribe(IObjectObserver observer)
        {
            VerifyExists();

            if (!observerManager.IsSubscribed(observer))
            {
                GetLogger().Warn($"observer {observer} tried to unsubscribe from {GetType().Name} {this.GetPrimaryKeyLong()} but was not subscribed");
            }
            else
            {
                observerManager.Unsubscribe(observer);
            }

            observer.HandleObjectDestroyed(State);

            return(Task.CompletedTask);
        }
Пример #9
0
 public Task UnsubscribeStatus(IGameObserver subscriber)
 {
     subscribers.Unsubscribe(subscriber);
     return(TaskDone.Done);
 }
Пример #10
0
 // Also clients use this to unsubscribe themselves to no longer receive the messages.
 public Task UnSubscribe(IClientboundPacketObserver observer)
 {
     _subsManager.Unsubscribe(observer);
     return(Task.CompletedTask);
 }
Пример #11
0
 //Also clients use this to unsubscribe themselves to no longer receive the messages.
 public Task UnSubscribe(IMsgObserver observer)
 {
     _subsManager.Unsubscribe(observer);
     return(Task.CompletedTask);
 }
Пример #12
0
 public void Unsubscribe(ISalesOrdersObserver observer)
 {
     _subscribers.Unsubscribe(observer);
 }
Пример #13
0
 public Task ViewerDisconnect(IViewer viewer)
 {
     viewers.Unsubscribe(viewer);
     return(TaskDone.Done);
 }
Пример #14
0
 public Task Unsubscribe(IMessageHub observer)
 {
     _subscriptionManager.Unsubscribe(observer);
     return(Task.CompletedTask);
 }
Пример #15
0
 public Task UnsubscribeNotification(IProcessMgrObserver subscriber)
 {
     subscribers.Unsubscribe(subscriber);
     return(TaskDone.Done);
 }
Пример #16
0
 public Task Unsubscribe(IHubObserver observer)
 {
     listeners.Unsubscribe(observer);
     return(TaskDone.Done);
 }
Пример #17
0
        public Task Unsubscribe(IVehicleTrackingObserver observer)
        {
            _observers.Unsubscribe(observer);

            return(TaskDone.Done);
        }
Пример #18
0
 public Task Unsubscribe(IRoomObserver observer)
 {
     observers.Unsubscribe(observer);
     return(TaskDone.Done);
 }
Пример #19
0
 //Also clients use this to unsubscribe themselves to no longer receive the messages.
 public async Task UnSubscribe(IEventHandler observer)
 {
     _subsManager.Unsubscribe(observer);
 }
Пример #20
0
 //Also clients use this to unsubscribe themselves to no longer receive the messages.
 public Task UnSubscribe(IChat observer)
 {
     _subsManager.Unsubscribe(observer);
     return(TaskDone.Done);
 }