コード例 #1
0
        public IEngine Init(Config cfg)
        {
            this.instance.InitOnce();

            this.storageConfig = cfg;
            this.storageName   = "CosmosDbSql:" + cfg.CosmosDbSqlDatabase + "/" + cfg.CosmosDbSqlCollection;
            this.cosmosDbSql   = this.factory.Resolve <ISDKWrapper>();

            this.instance.InitComplete();

            this.log.Debug("Cosmos DB SQL instance initialized", () => new { this.storageName });

            return(this);
        }
コード例 #2
0
        public IEngine Init(Config cfg)
        {
            this.instance.InitOnce();

            this.storageConfig = cfg;
            this.storageName   = "TableStorage:" + cfg.TableStorageTableName;
            this.tableStorage  = this.factory.Resolve <ISDKWrapper>();

            this.instance.InitComplete();

            this.log.Debug("Table storage instance initialized", () => new { this.storageName });

            return(this);
        }
コード例 #3
0
        public Engine(
            IFactory factory,
            ILogger logger,
            IInstance instance)
        {
            this.log      = logger;
            this.instance = instance;
            this.factory  = factory;

            this.disposedValue = false;

            this.storageConfig = null;
            this.tableStorage  = null;
        }
コード例 #4
0
        public Engine(
            IFactory factory,
            ILogger logger,
            IInstance instance)
        {
            this.log      = logger;
            this.instance = instance;
            this.factory  = factory;

            this.disposedValue = false;

            this.storageConfig     = null;
            this.cosmosDbSqlClient = null;
            this.cosmosDbSql       = null;
        }