public override bool CleanupClient(BackEnd.IService client) { AzureServiceClient serviceClient = client as AzureServiceClient; Debug.Assert(serviceClient != null); AzureServiceClient[] clients = null; lock (this.proxyClientPool) { clients = this.proxyClientPool.Clear(serviceClient); } if (clients != null) { // don't close client in above lock (this.proxyClientPool) scope to avoid deadlock foreach (AzureServiceClient asc in clients) { asc.AsyncClose(); } } return(clients != null); }
public void HandleEndpointNotFoundException(int clientIndex, BackEnd.IService client, BrokerQueueItem item, Guid messageId, System.ServiceModel.EndpointNotFoundException e) { }
public void HandleStorageException(DateTime dispatchTime, int clientIndex, BackEnd.IService client, BrokerQueueItem item, Guid messageId, StorageException e) { }
public Task HandleException(DateTime dispatchTime, int clientIndex, BackEnd.IService client, BrokerQueueItem item, Guid messageId, Exception e) { return(Task.CompletedTask); }
public virtual bool CleanupClient(BackEnd.IService client) { return(true); }