Beispiel #1
0
 public RepositorySyncerBase(ISyncedRepository <T> repo, IRoomContext room, ITaskScheduler taskScheduler, IPlayerRepository playerRepo, ISerializer serializer, IConfirmationManager confirmationManager, IShamanLogger logger)
 {
     _repo                = repo;
     Room                 = room;
     _taskScheduler       = taskScheduler;
     _playerRepo          = playerRepo;
     _serializer          = serializer;
     _confirmationManager = confirmationManager;
     _logger              = logger;
     _id = Guid.NewGuid();
     _shamanRoomSender = new ShamanRoomSender(Room.GetSender(), _serializer);
 }
Beispiel #2
0
        public Worker(
            ILogger <Worker> logger,
            IOptionsMonitor <TimeSettings> optionsSnapshot,
            IModulDengiClient client,
            IConfirmationManager confirmationManager,
            IAccountant accountant)
        {
            this.logger = logger;
            this.confirmationCheckTimeSettings = optionsSnapshot.Get(nameof(this.confirmationCheckTimeSettings));
            this.newProjectCheckTimeSettings   = optionsSnapshot.Get(nameof(this.newProjectCheckTimeSettings));

            this.client = client;
            this.confirmationManager = confirmationManager;
            this.accountant          = accountant;
        }
 public SyncersManager(ITaskScheduler taskScheduler, IShamanLogger logger, IConfirmationManager confirmationManager)
 {
     _taskScheduler       = taskScheduler;
     _logger              = logger;
     _confirmationManager = confirmationManager;
 }