Пример #1
0
 internal AzureDocumentDbStorageEngine(DocumentClient client, DatabaseOptions databaseOptions, CollectionOptions collectionOptions, LoggingOptions loggingOptions, ISerializationTypeMap typeMap)
 {
     this.client               = client;
     this.databaseOptions      = databaseOptions;
     this.collectionOptions    = collectionOptions;
     commitsLink               = UriFactory.CreateDocumentCollectionUri(databaseOptions.DatabaseName, collectionOptions.CollectionName);
     appendStoredProcedureLink = UriFactory.CreateStoredProcedureUri(databaseOptions.DatabaseName, collectionOptions.CollectionName, AppendStoredProcedureName);
     deleteStoredProcedureLink = UriFactory.CreateStoredProcedureUri(databaseOptions.DatabaseName, collectionOptions.CollectionName, DeleteStoredProcedureName);
     this.loggingOptions       = loggingOptions;
     this.typeMap              = typeMap;
 }
Пример #2
0
 internal AzureDocumentDbStorageEngine(DocumentClient client, string databaseName, CollectionOptions collectionOptions, DatabaseOptions databaseOptions, LoggingOptions loggingOptions, ISerializationTypeMap typeMap, JsonSerializer serializer)
 {
     this.client            = client;
     this.databaseName      = databaseName;
     this.databaseOptions   = databaseOptions;
     this.collectionOptions = collectionOptions;
     this.commitsLink       = UriFactory.CreateDocumentCollectionUri(databaseName, collectionOptions.CollectionName);
     this.storedProcLink    = UriFactory.CreateStoredProcedureUri(databaseName, collectionOptions.CollectionName, AppendStoredProcedureName);
     this.loggingOptions    = loggingOptions;
     this.typeMap           = typeMap;
     this.jsonSerializer    = serializer;
     this.databaseUri       = UriFactory.CreateDatabaseUri(databaseName);
 }