protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (this.drsConnection != null) { this.drsConnection.Dispose(); this.drsConnection = null; } if (this.rpcConnection != null) { this.rpcConnection.Dispose(); this.rpcConnection = null; } if (this.npConnection != null) { this.npConnection.Dispose(); this.npConnection = null; } }
public DirectoryReplicationClient(string server, RpcProtocol protocol, NetworkCredential credential = null) { Validator.AssertNotNullOrWhiteSpace(server, nameof(server)); this.CreateRpcConnection(server, protocol, credential); this.drsConnection = new DrsConnection(this.rpcConnection.Binding, NtdsApiClientGuid); }
public DirectoryReplicationClient(string server, RpcProtocol protocol, NetworkCredential credential = null) { this.CreateRpcConnection(server, protocol, credential); this.drsConnection = new DrsConnection(this.rpcConnection.Binding, DcPromoGuid2k3); }
protected virtual void Dispose(bool disposing) { if (!disposing) { return; } if (this.drsConnection != null) { this.drsConnection.Dispose(); this.drsConnection = null; } if (this.rpcConnection != null) { this.rpcConnection.Dispose(); this.rpcConnection = null; } if(this.npConnection != null) { this.npConnection.Dispose(); this.npConnection = null; } }