void EnsureChannel() { if (this.traceChannel != null && this.traceChannel.State == CommunicationState.Opened) { return; } else { if (this.traceChannel != null) { this.traceChannel.Abort(); this.traceChannel = null; } this.traceChannel = this.traceChannelFactory.CreateChannel(); this.traceChannel.Open(); } }
void EnsureChannel() { if (this.traceChannel != null && this.traceChannel.State == CommunicationState.Opened) { return; } else { if (this.traceChannel != null) { this.traceChannel.Abort(); this.traceChannel = null; } this.traceChannel = this.traceChannelFactory.CreateChannel(); this.traceChannel.Open(); } }