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