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 ); }
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); }