Пример #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)
                }
            };
        }
 public ExaminationAudioProcessingService(
     ILogger <ExaminationAudioProcessingService> logger,
     IExaminationHostedServicesConfiguration hostedServices,
     IExaminationIntegrationActionsProxy examinationIntegrationActionsProxy,
     IExaminationAudioSynchronizationConfiguration examinationAudioSynchronizationConfiguration)
 {
     this.logger         = logger;
     this.hostedServices = hostedServices;
     this.examinationIntegrationActionsProxy           = examinationIntegrationActionsProxy;
     this.examinationAudioSynchronizationConfiguration = examinationAudioSynchronizationConfiguration;
 }