public void Get() { Debug.Enter(); SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor(); sp.ProcedureName = "net_operator_get"; sp.Parameters.Add("@operatorKey", SqlDbType.UniqueIdentifier); sp.Parameters.SetGuidFromString("@operatorKey", OperatorNodeID); SqlDataReaderAccessor reader = sp.ExecuteReader(); try { if (reader.Read()) { OperatorStatus = (OperatorStatus)reader.GetShort("operatorStatusID"); Name = reader.GetString("name"); SoapReplicationURL = reader.GetString("soapReplicationURL"); CertIssuerName = reader.GetString("certIssuer"); CertSubjectName = reader.GetString("certSubject"); Certificate = reader.GetBinary("certificate"); } } finally { reader.Close(); } Debug.Leave(); }
public OperatorNode(string operatorNodeID, OperatorStatus operatorStatus, string name, string soapReplicationURL) { this.OperatorNodeID = operatorNodeID; this.OperatorStatus = operatorStatus; this.Name = name; this.SoapReplicationURL = soapReplicationURL; }