public List <DocumentPlug> ListAllSchemasByPartner(string partnerIdentifier) { if (string.IsNullOrWhiteSpace(partnerIdentifier)) { throw new ArgumentNullException("partnerIdentifier"); } DALSchema dal = new DALSchema(this.storageAccount, this.container, partnerIdentifier); return(dal.List()); }
public DocumentPlug GetPartnerSchema(string schemaIdentifier, string partnerIdentifier) { if (schemaIdentifier == null) { throw new ArgumentNullException("schemaIdentifier"); } if (partnerIdentifier == null) { throw new ArgumentNullException("partnerIdentifier"); } DALSchema dal = new DALSchema(this.storageAccount, this.container, partnerIdentifier); return(dal.Get(schemaIdentifier)); }
public void SavePartnerSchema(IDocumentPlug documentPlug, string partnerIdentifier) { if (documentPlug == null) { throw new ArgumentNullException("documentPlug"); } if (string.IsNullOrEmpty(partnerIdentifier)) { throw new ArgumentException("To save schema, it must have a valid PartnerIdentifier.", "partnerIdentifier"); } DALSchema dal = new DALSchema(this.storageAccount, this.container, partnerIdentifier); dal.Save(documentPlug as DocumentPlug); }