Esempio n. 1
0
        public ServicesHoster(ILogger <ServicesHoster> logger,
                              IRetryConfiguration retryConfiguration,
                              AudioUpdateNotificationServiceBase audioUpdateService,
                              IRemoteConfigurationService remoteConfigurationService,
                              IExaminationInstanceConfiguration instanceConfiguration,
                              Func <ChannelBase, SubscriptionActionsServiceClient> clientCreator,
                              IExaminationHostedServicesConfiguration hostedServiceConfiguration,
                              ISubscriptionActionsConfiguration subscriptionActionsConfiguration,
                              IExaminationAudioProcessingService examinationAudioProcessingService,
                              IExaminationDependentServicesConfiguration dependentServicesConfiguration)
            : base(logger,
                   instanceConfiguration,
                   retryConfiguration,
                   hostedServiceConfiguration.ExaminationActionsConfiguration,
                   subscriptionActionsConfiguration,
                   clientCreator)
        {
            this.logger = logger;
            this.instanceConfiguration             = instanceConfiguration;
            this.remoteConfigurationService        = remoteConfigurationService;
            this.dependentServicesConfiguration    = dependentServicesConfiguration;
            this.examinationAudioProcessingService = examinationAudioProcessingService;

            server = new Server
            {
                Services =
                {
                    BindService(audioUpdateService)
                },
                Ports =
                {
                    new ServerPort(hostedServiceConfiguration.ExaminationActionsConfiguration.Ip, hostedServiceConfiguration.ExaminationActionsConfiguration.Port, ServerCredentials.Insecure)
                }
            };
        }
Esempio n. 2
0
 public ExaminationIntegrationActionsProxy(IRetryConfiguration retryConfiguration,
                                           ILogger <ExaminationIntegrationActionsProxy> logger,
                                           IExaminationDependentServicesConfiguration dependentServices,
                                           Func <ChannelBase, AudioUpdateNotificationServiceClient> clientCreator)
     : base(dependentServices.ExaminationIntegrationConfiguration, retryConfiguration, logger, clientCreator)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Instantiates the class using retry configuration.
 /// </summary>
 /// <param name="retryConfiguration">Retry configuration.</param>
 public ElementActionRetrier(IRetryConfiguration retryConfiguration) : base(retryConfiguration)
 {
     HandledExceptions = new List <Type>
     {
         typeof(StaleElementReferenceException),
         typeof(InvalidElementStateException)
     };
 }
Esempio n. 4
0
 public CommunicationProxyBase(ICommunicationConfigurationSettings communicationConfiguration,
                               IRetryConfiguration retryConfiguration,
                               ILogger <CommunicationProxyBase <TClient> > logger,
                               Func <ChannelBase, TClient> clientCreator)
 {
     this.communicationConfiguration = communicationConfiguration;
     this.logger             = logger;
     this.retryConfiguration = retryConfiguration;
     this.clientCreator      = clientCreator;
 }
 public SubscriptionActions(ILogger <SubscriptionActions> logger,
                            IInstanceConfiguration instanceConfiguration,
                            IRetryConfiguration retryConfiguration,
                            ICommunicationConfigurationSettings hostedService,
                            ICommunicationConfigurationSettings dependentService,
                            Func <ChannelBase, SubscriptionActionsServiceClient> clientCreator)
     : base(dependentService, retryConfiguration, logger, clientCreator)
 {
     this.logger                = logger;
     this.hostedService         = hostedService;
     this.instanceConfiguration = instanceConfiguration;
     this.retryConfiguration    = retryConfiguration;
 }
 /// <summary>
 /// Instantiates the class using retry configuration.
 /// </summary>
 /// <param name="retryConfiguration">Retry configuration.</param>
 public ActionRetrier(IRetryConfiguration retryConfiguration)
 {
     this.retryConfiguration = retryConfiguration;
 }