public RPCWorker(string strIpAddress, int destinationPort, string userName, string password, AuthenticationLevelType authenticationLevelType, SecurityProviderType securityProviderType) { RpcTransport = new RpcTransportOnTcp(strIpAddress, destinationPort); SecurityProviderType = securityProviderType; AuthenticationLevelType = authenticationLevelType; if (SecurityProviderType == SecurityProviderType.WINNT) { NTLMClient = new NTLMClient(); } UserName = userName; Password = password; }
public RPCWorker(string ipAddress, string strNamePipe, string userName, string password) { RpcTransport = new RpcTransportOnPipe(ipAddress, strNamePipe, userName, password); SecurityProviderType = SecurityProviderType.NONE; AuthenticationLevelType = AuthenticationLevelType.NONE; }