Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateSystemAccountRequestHandler"/> class.
        /// </summary>
        /// <param name="configProvider">The config provider.</param>
        /// <param name="systemAcccountFactory">The system acccount factory.</param>
        public CreateSystemAccountRequestHandler(IConfigurationPropertiesProvider configProvider, ISystemAccountFactory systemAcccountFactory)
        {
            _configProvider        = configProvider;
            _systemAcccountFactory = systemAcccountFactory;

            LoadConfiguration();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="GetAllReportsRequestHandler"/> class.
        /// </summary>
        /// <param name="reportRepository">The report repository.</param>
        /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
        public GetAllReportsRequestHandler(IReportRepository reportRepository, IConfigurationPropertiesProvider configurationPropertiesProvider)
        {
            _reportRepository = reportRepository;
            _configurationPropertiesProvider = configurationPropertiesProvider;

            ServicePointManager.ServerCertificateValidationCallback += ValidateRemoteCertificate;
        }
Esempio n. 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="SystemAccountIdentityServiceManager" /> class.
 /// </summary>
 /// <param name="appSettingsConfiguration">The app settings configuration.</param>
 public SystemAccountIdentityServiceManager(IConfigurationPropertiesProvider appSettingsConfiguration)
 {
     _baseAddress =
         new Uri(((FederatedAuthentication.WSFederationAuthenticationModule ?? new WSFederationAuthenticationModule()).Issuer.Replace("issue/wsfed", "")));
     _userName   = appSettingsConfiguration.GetProperty <string> (IdentityServerUserName);
     _password   = appSettingsConfiguration.GetProperty <string> (IdentityServerPassword);
     _expiration = DateTime.MinValue;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImapClientProvider"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 /// <param name="sessionProvider">The session provider.</param>
 /// <param name="userInformationDtoFactory">The user information dto factory.</param>
 public ImapClientProvider(
     IConfigurationPropertiesProvider configurationPropertiesProvider,
     ISessionProvider sessionProvider,
     IUserInformationDtoFactory userInformationDtoFactory)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
     _sessionProvider = sessionProvider;
     _userInformationDtoFactory = userInformationDtoFactory;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImapClientProvider"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 /// <param name="sessionProvider">The session provider.</param>
 /// <param name="userInformationDtoFactory">The user information dto factory.</param>
 public ImapClientProvider(
     IConfigurationPropertiesProvider configurationPropertiesProvider,
     ISessionProvider sessionProvider,
     IUserInformationDtoFactory userInformationDtoFactory)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
     _sessionProvider           = sessionProvider;
     _userInformationDtoFactory = userInformationDtoFactory;
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SendC32RequestHandler"/> class.
 /// </summary>
 /// <param name="builder">The builder.</param>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 /// <param name="mailMessageSender">The mail message sender.</param>
 public SendC32RequestHandler(
     IC32Builder builder,
     IConfigurationPropertiesProvider configurationPropertiesProvider,
     IMailMessageSender mailMessageSender)
 {
     _builder = builder;
     _configurationPropertiesProvider = configurationPropertiesProvider;
     _mailMessageSender = mailMessageSender;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PerformanceLoggingRequestProcessor"/> class.
 /// </summary>
 /// <param name="serviceLayerConfiguration">The service layer configuration.</param>
 /// <param name="cacheManager">The cache manager.</param>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 /// <param name="sessionProvider">The session provider.</param>
 public PerformanceLoggingRequestProcessor(
     ServiceLayerConfiguration serviceLayerConfiguration, 
     ICacheManager cacheManager, 
     IConfigurationPropertiesProvider configurationPropertiesProvider, 
     ISessionProvider sessionProvider )
     : base(serviceLayerConfiguration, cacheManager, sessionProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
     _webServiceCallPerformanceLimitInMilliseconds =
         _configurationPropertiesProvider.GetPropertyInt ( SettingKeyNames.WebServiceCallPerformanceLimitInMilliseconds );
     _requestHandlerPerformanceLimitInMilliseconds =
         _configurationPropertiesProvider.GetPropertyInt ( SettingKeyNames.AgathaRequestHandlerPerformanceLimitInMilliseconds );
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PerformanceLoggingRequestProcessor"/> class.
 /// </summary>
 /// <param name="serviceLayerConfiguration">The service layer configuration.</param>
 /// <param name="cacheManager">The cache manager.</param>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 /// <param name="sessionProvider">The session provider.</param>
 public PerformanceLoggingRequestProcessor(
     ServiceLayerConfiguration serviceLayerConfiguration,
     ICacheManager cacheManager,
     IConfigurationPropertiesProvider configurationPropertiesProvider,
     ISessionProvider sessionProvider)
     : base(serviceLayerConfiguration, cacheManager, sessionProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
     _webServiceCallPerformanceLimitInMilliseconds =
         _configurationPropertiesProvider.GetPropertyInt(SettingKeyNames.WebServiceCallPerformanceLimitInMilliseconds);
     _requestHandlerPerformanceLimitInMilliseconds =
         _configurationPropertiesProvider.GetPropertyInt(SettingKeyNames.AgathaRequestHandlerPerformanceLimitInMilliseconds);
 }
        /// <summary>
        ///     Initializes a new instance of the <see cref="SystemAccountIdentityServiceManager" /> class.
        /// </summary>
        /// <param name="appSettingsConfiguration">The app settings configuration.</param>
        public SystemAccountIdentityServiceManager(IConfigurationPropertiesProvider appSettingsConfiguration)
        {
            var issuerUri = new Uri((FederatedAuthentication.WSFederationAuthenticationModule ?? new WSFederationAuthenticationModule()).Issuer);
            var url       = issuerUri.AbsoluteUri.Replace("issue/wsfed", string.Empty);

            if (url.EndsWith("//"))
            {
                url = url.Substring(0, url.Length - 1);
            }
            _baseAddress = new Uri(url);
            _userName    = appSettingsConfiguration.GetProperty <string> (IdentityServerUserName);
            _password    = appSettingsConfiguration.GetProperty <string> (IdentityServerPassword);
            _expiration  = DateTime.MinValue;
        }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmtpMailMessageSender"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public SmtpMailMessageSender(IConfigurationPropertiesProvider configurationPropertiesProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="C32ToPopHealthPoster"/> class.
 /// </summary>
 /// <param name="c32Builder">The C32 builder.</param>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public C32ToPopHealthPoster(IC32Builder c32Builder, IConfigurationPropertiesProvider configurationPropertiesProvider)
 {
     _c32Builder       = c32Builder;
     _requestUriString = configurationPropertiesProvider.GetProperty(PopHealthServiceAddress);
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NcsCriptBuilder"/> class.
 /// </summary>
 /// <param name="configProvider">The config provider.</param>
 /// <param name="sessionProvider">The session provider.</param>
 public NcsCriptBuilder( IConfigurationPropertiesProvider configProvider, ISessionProvider sessionProvider )
 {
     _configProvider = configProvider;
     _session = sessionProvider.GetSession ();
 }
Esempio n. 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportService"/> class.
 /// </summary>
 public ReportService()
 {
     _configurationPropertiesProvider = IoC.CurrentContainer.Resolve<IConfigurationPropertiesProvider>();
 }
Esempio n. 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmtpMailMessageSender"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public SmtpMailMessageSender(IConfigurationPropertiesProvider configurationPropertiesProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }
Esempio n. 15
0
 /// <summary>
 /// Initializes static members of the <see cref="TempClassDuringMigration"/> class.
 /// </summary>
 static TempClassDuringMigration()
 {
     ConfigurationPropertiesProvider = IoC.CurrentContainer.Resolve<IConfigurationPropertiesProvider> ();
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes static members of the <see cref="TempClassDuringMigration"/> class.
 /// </summary>
 static TempClassDuringMigration()
 {
     ConfigurationPropertiesProvider = IoC.CurrentContainer.Resolve <IConfigurationPropertiesProvider> ();
 }
        ////private readonly IStaffRepository _staffRepository;
        ////private readonly ISystemAccountFactory _systemAcccountFactory;

        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="LinkSystemAccountRequestHandler"/> class.
        /// </summary>
        /// <param name="configProvider">The config provider.</param>
        public LinkSystemAccountRequestHandler(IConfigurationPropertiesProvider configProvider)
        {
            _configProvider = configProvider;
            LoadConfiguration();
        }
Esempio n. 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AesEncryptionUtility"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public AesEncryptionUtility( IConfigurationPropertiesProvider configurationPropertiesProvider )
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }
Esempio n. 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportService"/> class.
 /// </summary>
 public ReportService()
 {
     _configurationPropertiesProvider = IoC.CurrentContainer.Resolve <IConfigurationPropertiesProvider>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MsSql2008PersistenceConfigurerProvider"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public MsSql2008PersistenceConfigurerProvider(IConfigurationPropertiesProvider configurationPropertiesProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }
Esempio n. 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetTimeOutIntervalRequestHandler"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public GetTimeOutIntervalRequestHandler(IConfigurationPropertiesProvider configurationPropertiesProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }
Esempio n. 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NcsCriptBuilder"/> class.
 /// </summary>
 /// <param name="configProvider">The config provider.</param>
 /// <param name="sessionProvider">The session provider.</param>
 public NcsCriptBuilder(IConfigurationPropertiesProvider configProvider, ISessionProvider sessionProvider)
 {
     _configProvider = configProvider;
     _session        = sessionProvider.GetSession();
 }
Esempio n. 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="C32ToPopHealthPoster"/> class.
 /// </summary>
 /// <param name="c32Builder">The C32 builder.</param>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public C32ToPopHealthPoster( IC32Builder c32Builder, IConfigurationPropertiesProvider configurationPropertiesProvider )
 {
     _c32Builder = c32Builder;
     _requestUriString = configurationPropertiesProvider.GetProperty ( PopHealthServiceAddress );
 }
Esempio n. 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AesEncryptionUtility"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public AesEncryptionUtility(IConfigurationPropertiesProvider configurationPropertiesProvider)
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MsSql2008PersistenceConfigurerProvider"/> class.
 /// </summary>
 /// <param name="configurationPropertiesProvider">The configuration properties provider.</param>
 public MsSql2008PersistenceConfigurerProvider( IConfigurationPropertiesProvider configurationPropertiesProvider )
 {
     _configurationPropertiesProvider = configurationPropertiesProvider;
 }