public void Remove(Base.Message.ByteArrayPart part) { string domainName = part.ToString(); var account = accounts2.GetValue(domainName); if (account != null) { accounts1.Remove(account.Id); accounts2.Remove(account.DomainName); Account.Delete(files.GetFileName(account.Id)); try { var directory = files.GetAccountRootDirectory(account.Id); if (directory != null) { System.IO.Directory.Delete(directory, true); } } catch { } } }
private void RemoveExpiredNonce(Object obj) { int tickCount = Environment.TickCount; authStates.Remove( (state) => { return(unchecked (tickCount - state.LastAccess) > NonceLifeInterval); }); }
private void ContactRemovedHandlerInternal(Bindings bindings, Binding binding) { if (binding.ConnectionAddresses.Transport == Transports.Tcp || binding.ConnectionAddresses.Transport == Transports.Tls) { bindingsByConnectionId.Remove(binding.ConnectionAddresses.ConnectionId); } ContactRemoved(bindings.Aor, binding); if (bindings.IsStale) { AorRemoved(bindings.Aor); } }
private void RemoveIfFinished(RequestProxy requestProxy) { if (requestProxy != null) { if (requestProxy.IsAllRequestsSent && requestProxy.IsAllResponsesReceived) { var proxies = requestProxy.GetAllProxie(); for (int i = 0; i < proxies.Count; i++) { clientTransactionIds.Remove(proxies[i].TransactionId); } requestProxy.Dispose(); requestProxyes.Remove(requestProxy.ServerTransactionId); } } }
protected void RemoveExpiredSecurityAssociationsTimer(Object state) { connectingAssociations.Remove(IsSecurityAssociationExpired1, SecurityAssociationRemoved1, 64); authorizedAssociations.Remove(IsSecurityAssociationExpired2, SecurityAssociationRemoved2, 64); }
public void Remove(ByteArrayPart dialogId) { dictionary.Remove(dialogId); }