Esempio n. 1
0
 public DocumentDBWorkflows(ICosmosDBAccount account)
 {
     this.docdb = new DocumentDBUtils(account);
 }
 protected DocumentDBRepository(DocumentClient client, string databaseId)
 {
     this.client   = client;
     this.database = DocumentDBUtils.GetOrCreateDatabase(client, databaseId);
 }
Esempio n. 3
0
 public void InitDb()
 {
     this.client   = client = new DocumentClient(new Uri(this.serviceEndpoint), this.authKey);
     this.database = DocumentDBUtils.GetOrCreateDatabase(this.client, this.databaseId);
 }