internal void SetInstanceIdChannel(string instanceId, IChannel channel) { lock (this) { this.channels[instanceId] = channel; } }