private static void ResetClient()
        {
            if( client != null )
            {
                client.InnerChannel.Closed -= Channel_Closed;
                client.InnerChannel.Faulted -= Channel_Closed;
                client.Abort();
                client.Close();
            }

            InstanceContext context = new InstanceContext( callbackHost );
            client = new AgentsControlServiceClient( context );
        }
Exemple #2
0
        private static void ResetClient()
        {
            if (client != null)
            {
                client.InnerChannel.Closed  -= Channel_Closed;
                client.InnerChannel.Faulted -= Channel_Closed;
                client.Abort();
                client.Close();
            }

            InstanceContext context = new InstanceContext(callbackHost);

            client = new AgentsControlServiceClient(context);
        }