Пример #1
0
        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);
        }
Пример #2
0
 public void HandleEndpointNotFoundException(int clientIndex, BackEnd.IService client, BrokerQueueItem item, Guid messageId, System.ServiceModel.EndpointNotFoundException e)
 {
 }
Пример #3
0
 public void HandleStorageException(DateTime dispatchTime, int clientIndex, BackEnd.IService client, BrokerQueueItem item, Guid messageId, StorageException e)
 {
 }
Пример #4
0
 public Task HandleException(DateTime dispatchTime, int clientIndex, BackEnd.IService client, BrokerQueueItem item, Guid messageId, Exception e)
 {
     return(Task.CompletedTask);
 }
Пример #5
0
 public virtual bool CleanupClient(BackEnd.IService client)
 {
     return(true);
 }