public CosmosDbCollection(Container container, Documents.IDocumentClient documentClient, CollectionModel model, JsonSerializerSettings settings = null)
 {
     _container              = container;
     _documentClient         = documentClient;
     _model                  = model;
     _jsonSerializerSettings = settings ?? new JsonSerializerSettings();
 }
Exemplo n.º 2
0
 public EchoBot(AzureDocuments.IDocumentClient documentClient, IConfiguration config, IDataProtectionProvider dataProtectionProvider, String encryptionKey)
 {
     _documentClient         = documentClient;
     _config                 = config;
     _dataProtectionProvider = dataProtectionProvider;
     _encryptionKey          = encryptionKey;
 }
 public BotControllerForFlow(IBotFrameworkHttpAdapter adapter, IBot bot, IConfiguration config,
                             AzureDocuments.IDocumentClient documentClient, IDataProtectionProvider dataProtectionProvider, String encryptionKey)
 {
     Adapter                 = adapter;
     Bot                     = bot;
     _appId                  = config["MicrosoftAppId"];
     _appPassword            = config["MicrosoftAppPassword"];
     _documentClient         = documentClient;
     _config                 = config;
     _dataProtectionProvider = dataProtectionProvider;
     _encryptionKey          = encryptionKey;
 }
 public CosmosDbCollection(Container container, Documents.IDocumentClient documentClient, CollectionModel model)
 {
     _container      = container;
     _documentClient = documentClient;
     _model          = model;
 }