public void Uninitialize() { if (this.client.State == CommunicationState.Created || this.client.State == CommunicationState.Opening || this.client.State == CommunicationState.Opened) { this.client.Close(); } this.client = null; }
public void Initialize() { var instanceContext = new InstanceContext(this); this.client = new FileBrowserServiceClient(instanceContext); }