Exemplo n.º 1
0
 public IsolatedStorageFileSettingsService(ISettingsDictionarySerializer serializer, IIsolatedStorageFacade isolatedStorageFacade,
     IMutexService mutexService, ILog log)
 {
     this.serializer = serializer;
     this.isolatedStorageFacade = isolatedStorageFacade;
     this.mutexService = mutexService;
     this.log = log;
 }
Exemplo n.º 2
0
 public AbstractMutexController(
     ApiSettings settings,
     ILogger <AbstractMutexController> logger,
     ITransactionCoordinator transactionCoordinator,
     IMutexService mutexService,
     IApiMutexModelMapper mutexModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.MutexService     = mutexService;
     this.MutexModelMapper = mutexModelMapper;
 }
Exemplo n.º 3
0
 public Bootstrap(IApplicationSettings applicationSettings, IClock clock, 
     IMessageBoxFacade messageBox, IMutexService mutexService,
     ILogManager logManager, ISettingsApplier settingsApplier,
     IJobRepository jobRepository, IPeriodicJobUpdateService periodicJobUpdateService,
     IApplicationInformation applicationInformation)
 {
     this.applicationSettings = applicationSettings;
     this.clock = clock;
     this.messageBox = messageBox;
     this.mutexService = mutexService;
     this.logManager = logManager;
     this.jobRepository = jobRepository;
     this.periodicJobUpdateService = periodicJobUpdateService;
     this.settingsApplier = settingsApplier;
     this.applicationInformation = applicationInformation;
 }
Exemplo n.º 4
0
 public MutexController(
     ApiSettings settings,
     ILogger <MutexController> logger,
     ITransactionCoordinator transactionCoordinator,
     IMutexService mutexService,
     IApiMutexModelMapper mutexModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            mutexService,
            mutexModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
Exemplo n.º 5
0
 public JobUpdateService(IJobProviderFactory jobProviderFactory, IJobRepository jobRepository,
     IClock clock, ISettingsService settingsService, IMutexService mutexService,
     ISchedulerAccessor schedulerAccessor, IApplicationTileService applicationTileService,
     IJobNotificationService jobNotificationService, ILog log,
     INetworkInterfaceFacade networkInterfaceFacade, IApplicationInformation applicationInformation)
 {
     this.jobProviderFactory = jobProviderFactory;
     this.jobRepository = jobRepository;
     this.clock = clock;
     this.settingsService = settingsService;
     this.mutexService = mutexService;
     this.schedulerAccessor = schedulerAccessor;
     this.applicationTileService = applicationTileService;
     this.jobNotificationService = jobNotificationService;
     this.log = log;
     this.networkInterfaceFacade = networkInterfaceFacade;
     this.applicationInformation = applicationInformation;
 }
Exemplo n.º 6
0
        public MutexViewModel(IMutexService mutex)
        {
            _mutex = mutex;

            AcquireMutex = new RelayCommand(async() =>
            {
                await AcquireMutexAsync();
            });

            ReleaseMutex = new RelayCommand(async() =>
            {
                await ReleaseMutexAsync();
            });

            DoWork = new RelayCommand(async() =>
            {
                await DoWorkAsync();
            });
        }
Exemplo n.º 7
0
 public static MutexJobDataContext Create(IMutexService mutexService, IJobDataContext delegateContext)
 {
     return new MutexJobDataContext(
         mutexService.GetOwned(MutexNames.JobDb, JobDataMutexTimeout),
         delegateContext);
 }
Exemplo n.º 8
0
 public JobDataContextFactory(IMutexService mutexService)
 {
     this.mutexService = mutexService;
 }