public void OnChatsDisposed(IChatHandler chatHandler1, IChatHandler chatHandler2, TwoChatsHandlerStatus twoChatsHandlerStatus) { }
public void OnChatsDisposed(IChatHandler chatHandler1, IChatHandler chatHandler2, TwoChatsHandlerStatus twoChatsHandlerStatus) { Factory1.OnChatsDisposed(chatHandler1, null, twoChatsHandlerStatus); Factory2.OnChatsDisposed(chatHandler2, null, twoChatsHandlerStatus); }
public void OnChatsDisposed(IChatHandler chatHandler1, IChatHandler chatHandler2, TwoChatsHandlerStatus twoChatsHandlerStatus) { ProxyStatus proxyStatus = (twoChatsHandlerStatus == TwoChatsHandlerStatus.FatalError) ? ProxyStatus.Dead : ProxyStatus.Free; if (chatHandler1 != null) { var ch1 = chatHandler1 as ChatHandler_WrapperForChatvdvoemBasicWorker; CacheHandle(ch1.CacheFolder, twoChatsHandlerStatus == TwoChatsHandlerStatus.FatalError); if (ch1.ProxyStr != null) { _ProxyDispatcher.SetProxyStatus(ch1.ProxyStr, proxyStatus); } } if (chatHandler2 != null) { var ch2 = chatHandler2 as ChatHandler_WrapperForChatvdvoemBasicWorker; CacheHandle(ch2.CacheFolder, twoChatsHandlerStatus == TwoChatsHandlerStatus.FatalError); if (ch2.ProxyStr != null) { _ProxyDispatcher.SetProxyStatus(ch2.ProxyStr, proxyStatus); } } }