Exemplo n.º 1
0
 public Game(ICardService cardService, INotificationFactory notificationFactory, string gameId)
 {
     _cardService         = cardService;
     _notificationFactory = notificationFactory;
     GameId = gameId;
     Task.Run(Setup).Wait();
 }
Exemplo n.º 2
0
 public LoginController(
     INotificationFactory notificationFactory,
     IAuthenticationService authenticationService)
 {
     this.NotificationFactory   = notificationFactory;
     this.AuthenticationService = authenticationService;
 }
 public NotificationServiceClient(
     INotificationFactory factory,
     IConnectionSettings settings)
 {
     _cancellation = new CancellationTokenSource();
     _factory      = factory;
     _settings     = settings;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="store"></param>
 /// <param name="factory"></param>
 public NotificationRepository(INotificationStore store, INotificationFactory factory)
 {
     if (store == null || factory == null)
     {
         throw new ArgumentNullOrEmptyException();
     }
     _store   = store;
     _factory = factory;
 }
 public NotificationProcessor(
     INotificationRepository repository,
     INotificationFactory factory,
     ILogger <NotificationProcessor> logger)
 {
     _repository = repository;
     _factory    = factory;
     _logger     = logger;
 }
 public NotificationService
 (
     IUnitOfWork unitOfWork,
     INotificationFactory notificationFactory,
     INotificationRepository notificationRepository
 )
 {
     _unitOfWork             = unitOfWork;
     _notificationFactory    = notificationFactory;
     _notificationRepository = notificationRepository;
 }
Exemplo n.º 7
0
        public ServiceActionsHandler(IClientsManagement clientsManagement, INotificationFactory notificationFactory)
        {
            _clientsManagement   = clientsManagement;
            _notificationFactory = notificationFactory;

            _serviceActionsQueueProcessingTimer           = new Timer(1000);
            _serviceActionsQueueProcessingTimer.Elapsed  += _executeActionFromQueueOnTimerElapsed;
            _serviceActionsQueueProcessingTimer.Enabled   = true;
            _serviceActionsQueueProcessingTimer.AutoReset = false;
            _serviceActionsQueueProcessingTimer.Start();
        }
Exemplo n.º 8
0
 public TagService(ITagRepository repo,
                   IEventAggregator eventAggregator,
                   INotificationFactory notificationFactory,
                   IIndexerFactory indexerFactory,
                   IIndexerProxyFactory indexerProxyFactory)
 {
     _repo                = repo;
     _eventAggregator     = eventAggregator;
     _notificationFactory = notificationFactory;
     _indexerFactory      = indexerFactory;
     _indexerProxyFactory = indexerProxyFactory;
 }
Exemplo n.º 9
0
 public TagService(ITagRepository repo,
                   IEventAggregator eventAggregator,
                   IDelayProfileService delayProfileService,
                   INotificationFactory notificationFactory,
                   IReleaseProfileService releaseProfileService,
                   ISeriesService seriesService)
 {
     _repo                  = repo;
     _eventAggregator       = eventAggregator;
     _delayProfileService   = delayProfileService;
     _notificationFactory   = notificationFactory;
     _releaseProfileService = releaseProfileService;
     _seriesService         = seriesService;
 }
Exemplo n.º 10
0
 /// <summary>
 ///     Create new instance.
 /// </summary>
 public NotificationService(INotificationClient notificationClient,
                            INotificationRegistrationRepository notificationRegistrationRepository,
                            DispatchManager dispatchManager,
                            IUserRepository userRepository,
                            INotificationFactory notificationFactory,
                            ILogger <NotificationService> logger)
 {
     _notificationClient = notificationClient ?? throw new ArgumentNullException(nameof(notificationClient));
     _notificationRegistrationRepository = notificationRegistrationRepository ?? throw new ArgumentNullException(nameof(notificationRegistrationRepository));
     _dispatchManager     = dispatchManager ?? throw new ArgumentNullException(nameof(dispatchManager));
     _userRepository      = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _notificationFactory = notificationFactory ?? throw new ArgumentNullException(nameof(notificationFactory));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 11
0
        public UserConfigurationWindowViewModel(
            IMonitors monitors,
            INotificationSettings notificationSettings,
            IEventAggregator eventAggregator,
            INotificationFactory notificationFactory)
        {
            this.monitors             = monitors;
            this.notificationSettings = notificationSettings;
            this.eventAggregator      = eventAggregator;
            this.notificationFactory  = notificationFactory;

            CancelCommand = new DelegateCommand(OnCancel);
            SaveCommand   = new DelegateCommand(OnSave);
        }
Exemplo n.º 12
0
        public Notifications(
            IEventAggregator eventAggregator,
            INotificationFactory notificationFactory)
        {
            this.eventAggregator     = eventAggregator;
            this.notificationFactory = notificationFactory;

            this.eventAggregator
            .GetEvent <NotificationEvents.CloseNotification>()
            .Subscribe(OnClosed);

            this.eventAggregator
            .GetEvent <NotificationEvents.ClickNotification>()
            .Subscribe(OnClicked);
        }
Exemplo n.º 13
0
 public TagService(ITagRepository repo,
                   IEventAggregator eventAggregator,
                   IDelayProfileService delayProfileService,
                   ImportListFactory importListFactory,
                   INotificationFactory notificationFactory,
                   IReleaseProfileService releaseProfileService,
                   IArtistService artistService)
 {
     _repo                  = repo;
     _eventAggregator       = eventAggregator;
     _delayProfileService   = delayProfileService;
     _importListFactory     = importListFactory;
     _notificationFactory   = notificationFactory;
     _releaseProfileService = releaseProfileService;
     _artistService         = artistService;
 }
Exemplo n.º 14
0
 public TagService(ITagRepository repo,
                   IEventAggregator eventAggregator,
                   IDelayProfileService delayProfileService,
                   IImportListFactory importListFactory,
                   INotificationFactory notificationFactory,
                   IRestrictionService restrictionService,
                   IMovieService movieService)
 {
     _repo                = repo;
     _eventAggregator     = eventAggregator;
     _delayProfileService = delayProfileService;
     _importListFactory   = importListFactory;
     _notificationFactory = notificationFactory;
     _restrictionService  = restrictionService;
     _movieService        = movieService;
 }
Exemplo n.º 15
0
        public NotificationService(
            IEFRepository <Notification> notificationRepository,
            IDateTimeService dateTimeService,
            INotificationFactory notificationFactory,
            IUnitOfWork unitOfWork,
            IUserService userService)
        {
            Guard.WhenArgument(notificationRepository, "NotificationRepository").IsNull().Throw();
            Guard.WhenArgument(dateTimeService, "DateTimeService").IsNull().Throw();
            Guard.WhenArgument(notificationFactory, "NotificationFactory").IsNull().Throw();
            Guard.WhenArgument(unitOfWork, "UnitOfWork").IsNull().Throw();
            Guard.WhenArgument(userService, "UserService").IsNull().Throw();

            this.notificationRepository = notificationRepository;
            this.dateTimeService        = dateTimeService;
            this.notificationFactory    = notificationFactory;
            this.unitOfWork             = unitOfWork;
            this.userService            = userService;
        }
Exemplo n.º 16
0
 public NotificationService(INotificationServiceDependencies dependencies)
 {
     _notificationListViewModel = dependencies.NotificationListViewModel;
     _notificationFactory = dependencies.NotificationFactory;
 }
Exemplo n.º 17
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public DefaultNotificationService(INotificationFactory notificationFactory, IBrewgrRepository repository)
 {
     this.NotificationFactory = notificationFactory;
     this.Repository          = repository;
 }
Exemplo n.º 18
0
 public GameService(ICardService cardService, INotificationFactory notificationFactory)
 {
     _cardService         = cardService;
     _notificationFactory = notificationFactory;
 }
 public NotificationManager(IUnitOfWork unitOfWork, IAuthenticationService authService, INotificationFactory factory)
 {
     _unitOfWork  = unitOfWork;
     _authService = authService;
     _factory     = factory;
 }
Exemplo n.º 20
0
 public HubService(INotificationFactory factory, INotificationRepository repository, IHubContext <INotificationHub> notificationHub)
 {
     _factory         = factory;
     _repository      = repository;
     _notificationHub = notificationHub;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public DefaultNotificationService(INotificationFactory notificationFactory, IBrewgrRepository repository)
		{
			this.NotificationFactory = notificationFactory;
			this.Repository = repository;
		}
Exemplo n.º 22
0
 public SlackUrlCheck(INotificationFactory notificationFactory, ILocalizationService localizationService)
     : base(localizationService)
 {
     _notificationFactory = notificationFactory;
 }
 public FriendshipManagementService(IUnitOfWork unitOfWork, INotificationFactory notificationFactory, IDateTimeService dateTimeService)
 {
     _unitOfWork          = unitOfWork;
     _notificationFactory = notificationFactory;
     _dateTimeService     = dateTimeService;
 }
Exemplo n.º 24
0
 public NotificationSchemaModule(INotificationFactory notificationFactory)
     : base("notification/schema")
 {
     _notificationFactory = notificationFactory;
     GetResourceAll       = GetSchema;
 }
 public NotificationService(IContractService contractService, INotificationFactory notificationFactory, INotificationRepository notificationRepository)
 {
     _contractService        = contractService;
     _notificationFactory    = notificationFactory;
     _notificationRepository = notificationRepository;
 }
Exemplo n.º 26
0
 public CustomerController(ICustomerService cityService, INotificationFactory notificationFactory)
 {
     this.CustomerService     = cityService;
     this.NotificationFactory = notificationFactory;
 }
Exemplo n.º 27
0
 public RegisterClientAction(Guid clientId, IClientsManagement clientsManagement, INotificationFactory notificationFactory)
 {
     _clientId            = clientId;
     _clientsManagement   = clientsManagement;
     _notificationFactory = notificationFactory;
 }
Exemplo n.º 28
0
 public SampleOperationAction(IClientsManagement clientsManagement, INotificationFactory notificationFactory)
 {
     _clientsManagement   = clientsManagement;
     _sampleOperations    = new SampleOperations();
     _notificationFactory = notificationFactory;
 }
Exemplo n.º 29
0
 public GenderController(IGenderService cityService, INotificationFactory notificationFactory)
 {
     this.service             = cityService;
     this.NotificationFactory = notificationFactory;
 }
Exemplo n.º 30
0
 public ClassificationController(IClassificationService cityService, INotificationFactory notificationFactory)
 {
     this.service             = cityService;
     this.NotificationFactory = notificationFactory;
 }
 protected override void Context()
 {
     _notificationFactory = A.Fake <INotificationFactory>();
     sut = new ValidationEngine(_notificationFactory);
 }
Exemplo n.º 32
0
 public NotificationService(INotificationFactory notificationFactory, Logger logger)
 {
     _notificationFactory = notificationFactory;
     _logger = logger;
 }
 public NotificationServiceDependencies(INotificationListViewModel notificationListViewModel, INotificationFactory notificationFactory)
 {
     NotificationListViewModel = notificationListViewModel;
     NotificationFactory = notificationFactory;
 }