コード例 #1
0
 public DataService(StackExchange.Redis.ConnectionMultiplexer redis, DistributedLockService distributedLockService, MongoClient mongoClient, string redisDownloadListKey, string mongoDownloadCollectionName)
 {
     this.redis = redis;
     this.distributedLockService      = distributedLockService;
     this.mongoClient                 = mongoClient;
     this.redisDownloadListKey        = redisDownloadListKey;
     this.mongoDownloadCollectionName = mongoDownloadCollectionName;
 }
 /// <summary>
 /// Initialize a new instance of ResourceBootstrapService passing required connectors
 /// </summary>
 /// <param name="distributedLockService">DistributedLockService</param>
 /// <param name="minio">S3</param>
 /// <param name="mongoClient">MongoDB</param>
 /// <param name="model">RabbitMQ</param>
 public ResourceBootstrapService(DistributedLockService distributedLockService, MinioClient minio, MongoClient mongoClient)
 {
     this.minio                  = minio;
     this.mongoClient            = mongoClient;
     this.distributedLockService = distributedLockService;
 }