public ViewRefreshFromRemoteEventHandler(
     ViewsHolder viewHolder,
     IClientNotifier clientNotifier)
 {
     _viewHolder     = viewHolder;
     _clientNotifier = clientNotifier;
 }
Пример #2
0
 public NewClientConnectedHandler(
     ViewHolder viewHolder,
     IClientNotifier clientNotifier)
 {
     _viewHolder     = viewHolder;
     _clientNotifier = clientNotifier;
 }
 public ViewRefreshFromCustomerQueueEventHandler(
     ViewHolder viewHolder,
     IClientNotifier clientNotifier)
 {
     _viewHolder     = viewHolder;
     _clientNotifier = clientNotifier;
 }
 public SystemSettingService(ISystemSettingRepository repo, IUnitOfWork unitOfWork
                             , IMemoryCache memoryCache, IClientNotifier clientNotifier) : base(repo, unitOfWork)
 {
     _repo           = repo;
     _memoryCache    = memoryCache;
     _clientNotifier = clientNotifier;
 }
Пример #5
0
 public AmendmentService(IAmendmentRepository repository, IUnitOfWork unitOfWork, IClientNotifier clientNotifier, IScreenControlService screenControlService
                         , IUserService userService) : base(repository, unitOfWork)
 {
     _repository           = repository;
     _unitOfWork           = unitOfWork;
     _clientNotifier       = clientNotifier;
     _screenControlService = screenControlService;
     _userService          = userService;
 }
 public ScreenControlService(IClientNotifier clientNotifier, IAmendmentRepository amendmentRepository, IAmendmentBodyRepository amendmentBodyRepository, IUnitOfWork unitOfWork, IMapper mapper, IUserService userService)
 {
     _clientNotifier          = clientNotifier;
     _amendmentRepository     = amendmentRepository;
     _amendmentBodyRepository = amendmentBodyRepository;
     _unitOfWork  = unitOfWork;
     _mapper      = mapper;
     _userService = userService;
 }
 public QuerySideInitializer(
     IEventStore eventStore,
     ViewsHolder viewHolder,
     IDomainEventBus domainEventBus,
     IClientNotifier clientNotifier)
 {
     _eventStore     = eventStore;
     _viewHolder     = viewHolder;
     _domainEventBus = domainEventBus;
     _clientNotifier = clientNotifier;
 }
Пример #8
0
 internal AsyncPeer(UserId id, X509Certificate2 certificate, IApi api, IClientNotifier notifier, Logger logger)
 {
     _id = id;
     _localCertificate = certificate;
     _peers            = new Dictionary <UserId, RemotePeer>();
     _syncContext      = new EngineSyncContext();
     _requestQueue     = new RequestQueue(api);
     _api      = api;
     _notifier = notifier;
     _logger   = logger;
 }
Пример #9
0
 public ClientOperationsDispatcher(
     ISiteStorage siteStorage,
     ITrackingTimer trackingTimer,
     IIdGenerator idGenerator,
     IClientNotifier clientNotifier)
 {
     _siteStorage    = siteStorage;
     _trackingTimer  = trackingTimer;
     _idGenerator    = idGenerator;
     _clientNotifier = clientNotifier;
 }
 public QuerySideInitializer(
     IEventStoreSubscription <CustomerQueueSubscription> customerQueueEventStoreSubscription,
     IDomainEventBus domainEventBus,
     IClientNotifier clientNotifier,
     ViewHolder viewHolder)
 {
     _customerQueueEventStoreSubscription = customerQueueEventStoreSubscription;
     _domainEventBus = domainEventBus;
     _clientNotifier = clientNotifier;
     _viewHolder     = viewHolder;
 }
        public ConfigurationService(
            IConfigurationRepository configurationRepository,
            IClientNotifier clientNotifier)
        {
            this.configurationRepository = configurationRepository;
            this.clientNotifier = clientNotifier;
            var settings = ServerSettings.Current();

            systemKey = settings.App.SystemKey ?? "system";
            defaultKey = settings.App.DefaultKey ?? "default";
        }
        public ImageServiceClientManager(IImageService imageService, IClientNotifier notifyer, Action autoUpdateCallback)
        {
            ImageServiceProxy = imageService;
            Notifier = notifyer;
            faultProcessor = new NotifierExceptionProcessor(notifyer);

            if (autoUpdateCallback != null)
            {
                callBackAction = autoUpdateCallback;
                StartUpdateThread();
            }
        }
Пример #13
0
        public ImageServiceClientManager(IImageService imageService, IClientNotifier notifyer, Action autoUpdateCallback)
        {
            ImageServiceProxy = imageService;
            Notifier          = notifyer;
            faultProcessor    = new NotifierExceptionProcessor(notifyer);

            if (autoUpdateCallback != null)
            {
                callBackAction = autoUpdateCallback;
                StartUpdateThread();
            }
        }
Пример #14
0
 internal AsyncPeer(IApi api, IClientNotifier notifier, Logger logger)
 {
     _waitingCommands = new Dictionary <string, List <WaitingCommandContainer> >();
     _packers         = new Dictionary <string, Packer>();
     _syncContext     = new EngineSyncContext();
     _requestQueue    = new RequestQueue(api);
     _api             = api;
     _diffieHellman   = new ECDiffieHellmanCng(KeySize);
     _diffieHellman.KeyDerivationFunction = ECDiffieHellmanKeyDerivationFunction.Hash;
     _diffieHellman.HashAlgorithm         = CngAlgorithm.Sha256;
     _notifier = notifier;
     _logger   = logger;
 }
Пример #15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Controller"/> class.
        /// </summary>
        public Controller(IClientNotifier notifier)
        {
            this.model    = new MultiModel(this);
            this.notifier = notifier;

            //initialize the dictionary
            this.commandSet = new Dictionary <string, ICommand>();
            this.commandSet.Add("start", new StartCommand(model));
            this.commandSet.Add("list", new ListCommand(model));
            this.commandSet.Add("join", new JoinCommand(model));
            this.commandSet.Add("play", new PlayCommand(model));
            this.commandSet.Add("close", new CloseCommand(model));
        }
Пример #16
0
        public AsyncClient(string id, IApi api, IClientNotifier notifier, Logger logger)
        {
            Id = id;

            _api                 = api;
            _requestQueue        = new RequestQueue(api);
            _requestQueue.Error += OnRequestQueueError;
            _notifier            = notifier;

            _timer        = new Timer(OnTimer, null, SystemTimerInterval, -1);
            _reconnect    = true;
            _reconnecting = false;
            _logger       = logger;
        }
Пример #17
0
        public AsyncClient(UserId id, CertificatesStorage trustedCertificates, X509Certificate2 certificate, IApi api, IClientNotifier notifier, Logger logger)
            : base(trustedCertificates, certificate, logger)
        {
            Id = id;

            _api                 = api;
            _requestQueue        = new RequestQueue(api);
            _requestQueue.Error += OnRequestQueueError;
            _notifier            = notifier;

            _reconnect    = true;
            _reconnecting = false;
            _logger       = logger;
        }
Пример #18
0
 public PlayersController(IPlayerService playerService, IClientNotifier clientNotifier)
 {
     this.playerService  = playerService;
     this.clientNotifier = clientNotifier;
 }
Пример #19
0
 public NotifierExceptionProcessor(IClientNotifier notifier)
 {
     Notifier = notifier;
 }
Пример #20
0
 public ClientCertificatesStorage(string path, IClientNotifier notifier, Logger logger)
     : base(path, logger)
 {
     _notifier = notifier;
 }
Пример #21
0
 public ExternalEventHandler(ICommandRouter commandRouter, IClientNotifier clientNotifier)
 {
     _commandRouter  = commandRouter;
     _clientNotifier = clientNotifier;
 }
 public NotifierExceptionProcessor(IClientNotifier notifier)
 {
     Notifier = notifier;
 }
Пример #23
0
 public TimerAction(ISiteStatusChecker siteStatusChecker, ISiteStorage siteStorage, IClientNotifier clientNotifier)
 {
     _siteStatusChecker = siteStatusChecker;
     _siteStorage       = siteStorage;
     _clientNotifier    = clientNotifier;
 }
Пример #24
0
 public LobbiesController(ILobbyService lobbyService, IClientNotifier clientNotifier)
 {
     this.lobbyService   = lobbyService;
     this.clientNotifier = clientNotifier;
 }
Пример #25
0
 public SolutionCommandHandler(ISolutionWriteRepository solutionWriteRepository, IClientNotifier clientNotifier)
 {
     _solutionWriteRepository = solutionWriteRepository;
     _clientNotifier          = clientNotifier;
 }
Пример #26
0
 public AddMessageHandler(IMapperService mapper, GaverContext context, IClientNotifier clientNotifier)
 {
     this.mapper     = mapper;
     this.context    = context;
     _clientNotifier = clientNotifier;
 }
Пример #27
0
 public static string GetLastError(this IClientNotifier notifier)
 {
     return(((WebNotifier)notifier).LastError);
 }
Пример #28
0
 public static string GetLastMessage(this IClientNotifier notifier)
 {
     return(((WebNotifier)notifier).LastMessage);
 }
Пример #29
0
 public static string GetLastWarning(this IClientNotifier notifier)
 {
     return(((WebNotifier)notifier).LastWarning);
 }