Ejemplo n.º 1
0
        protected PoolBase(IComponentContext ctx,
                           JsonSerializerSettings serializerSettings,
                           IConnectionFactory cf,
                           IStatsRepository statsRepo,
                           IMapper mapper,
                           IMasterClock clock,
                           IMessageBus messageBus,
                           NicehashService nicehashService) : base(ctx, clock)
        {
            Contract.RequiresNonNull(ctx, nameof(ctx));
            Contract.RequiresNonNull(serializerSettings, nameof(serializerSettings));
            Contract.RequiresNonNull(cf, nameof(cf));
            Contract.RequiresNonNull(statsRepo, nameof(statsRepo));
            Contract.RequiresNonNull(mapper, nameof(mapper));
            Contract.RequiresNonNull(clock, nameof(clock));
            Contract.RequiresNonNull(messageBus, nameof(messageBus));
            Contract.RequiresNonNull(nicehashService, nameof(nicehashService));

            this.serializerSettings = serializerSettings;
            this.cf              = cf;
            this.statsRepo       = statsRepo;
            this.mapper          = mapper;
            this.messageBus      = messageBus;
            this.nicehashService = nicehashService;
        }
Ejemplo n.º 2
0
    protected PoolBase(IComponentContext ctx,
                       JsonSerializerSettings serializerSettings,
                       IConnectionFactory cf,
                       IStatsRepository statsRepo,
                       IMapper mapper,
                       IMasterClock clock,
                       IMessageBus messageBus,
                       RecyclableMemoryStreamManager rmsm,
                       NicehashService nicehashService) : base(ctx, messageBus, rmsm, clock)
    {
        Contract.RequiresNonNull(ctx);
        Contract.RequiresNonNull(serializerSettings);
        Contract.RequiresNonNull(cf);
        Contract.RequiresNonNull(statsRepo);
        Contract.RequiresNonNull(mapper);
        Contract.RequiresNonNull(clock);
        Contract.RequiresNonNull(messageBus);
        Contract.RequiresNonNull(nicehashService);

        this.serializerSettings = serializerSettings;
        this.cf              = cf;
        this.statsRepo       = statsRepo;
        this.mapper          = mapper;
        this.nicehashService = nicehashService;
    }
Ejemplo n.º 3
0
 public BitcoinPool(IComponentContext ctx,
                    JsonSerializerSettings serializerSettings,
                    IConnectionFactory cf,
                    IStatsRepository statsRepo,
                    IMapper mapper,
                    IMasterClock clock,
                    IMessageBus messageBus,
                    NicehashService nicehashService) :
     base(ctx, serializerSettings, cf, statsRepo, mapper, clock, messageBus, nicehashService)
 {
 }
Ejemplo n.º 4
0
 public ErgoPool(IComponentContext ctx,
                 JsonSerializerSettings serializerSettings,
                 IConnectionFactory cf,
                 IStatsRepository statsRepo,
                 IMapper mapper,
                 IMasterClock clock,
                 IMessageBus messageBus,
                 RecyclableMemoryStreamManager rmsm,
                 NicehashService nicehashService) :
     base(ctx, serializerSettings, cf, statsRepo, mapper, clock, messageBus, rmsm, nicehashService)
 {
 }