Esempio n. 1
0
        public DataService(DataServiceOptions options)
        {
            this.Config = options;
            var client = new MongoClient(this.Config.ConnectionString);
            var db     = client.GetDatabase("torrentinator");

            collection = db.GetCollection <TorrentData>("torrents");
        }
        public FundingCalcManager(ILogger logger, IActorsHelper actorsHelper, ActorOptions actorOptions,
                                  ServiceProxyFactory serviceProxyFactory, DataServiceOptions dataServiceOptions)
        {
            var context = FabricRuntime.GetActivationContext();

            _logger       = logger;
            _actorsHelper = actorsHelper;
            _albActorUri  =
                new Uri($"{context.ApplicationName}/{actorOptions.ALBActorName}");

            _validationResultsServiceUri =
                new Uri(
                    $"{context.ApplicationName}/{dataServiceOptions.ValidationResultsServiceName}");

            _serviceProxyFactory = serviceProxyFactory;
        }
Esempio n. 3
0
 public DataService @using(DataServiceOptions config) { return null; }
Esempio n. 4
0
 public DataService(DataServiceOptions config) { }
Esempio n. 5
0
 public DataService @using(DataServiceOptions config)
 {
     return(null);
 }
Esempio n. 6
0
 public DataService(DataServiceOptions config)
 {
 }