Esempio n. 1
0
 public ApaleoSetupService(IApaleoClientsFactory apaleoIntegrationClientsFactory, IOptions <IntegrationConfig> integrationConfig)
 {
     _integrationConfig    = Check.NotNull(integrationConfig, nameof(integrationConfig));
     _apaleoClientsFactory = Check.NotNull(apaleoIntegrationClientsFactory, nameof(apaleoIntegrationClientsFactory));
     _apaleoIntegrationTargetsUrlDictionary = new Dictionary <ApaleoIntegrationTarget, Uri>
     {
         {
             ApaleoIntegrationTarget.AccountMenuApps,
             new Uri($"{_integrationConfig.Value.IntegrationBaseAddress}{AppConstants.AccountLevelUrlAbsolutePath}")
         },
         {
             ApaleoIntegrationTarget.PropertyMenuApps,
             new Uri($"{_integrationConfig.Value.IntegrationBaseAddress}{AppConstants.PropertyLevelUrlAbsolutePath}")
         },
         {
             ApaleoIntegrationTarget.ReservationDetailsTab,
             new Uri($"{_integrationConfig.Value.IntegrationBaseAddress}{AppConstants.ReservationLevelUrlAbsolutePath}")
         }
     };
 }
Esempio n. 2
0
 public TraceService(ITraceRepository traceRepository, IRequestContext requestContext, IApaleoClientsFactory apaleoClientsFactory)
 {
     _traceRepository      = Check.NotNull(traceRepository, nameof(traceRepository));
     _requestContext       = Check.NotNull(requestContext, nameof(requestContext));
     _apaleoClientsFactory = Check.NotNull(apaleoClientsFactory, nameof(apaleoClientsFactory));
 }
 public ApaleoRolesCollectorService(IApaleoClientsFactory apaleoClientsFactory, ILogger <ApaleoRolesCollectorService> logger)
 {
     _logger = Check.NotNull(logger, nameof(logger));
     _apaleoClientsFactory = Check.NotNull(apaleoClientsFactory, nameof(apaleoClientsFactory));
 }