Ejemplo n.º 1
0
 public CreateStravaSubscription(IStravaSubscriptionService stravaSubscriptionService, IConfiguration configuration)
 {
     this.stravaSubscriptionService = stravaSubscriptionService;
     this.HostName     = configuration["SportClubsChallengeAzureFunctionsUrl"];
     this.ClientId     = configuration["StravaClientId"];
     this.ClientSecret = configuration["StravaClientSecret"];
 }
Ejemplo n.º 2
0
 public StravaAdminController(
     IStravaSubscriptionService stravaSubscriptionService,
     IHttpContextAccessor httpContextAccessor,
     IEventHandler eventHandler,
     ILogger <StravaAdminController> logger)
 {
     _stravaSubscriptionService = stravaSubscriptionService;
     _httpContextAccessor       = httpContextAccessor;
     _eventHandler = eventHandler;
     _logger       = logger;
 }
Ejemplo n.º 3
0
 public StravaUpdateService(
     IStravaSubscriptionService stravaSubscriptionService,
     IIntegrationRepository integrationRepository,
     IEventPublisher eventPublisher,
     IOperationContext operationContext,
     IDateTimeProvider dateTimeProvider,
     ILogger <StravaIntegrationService> logger)
 {
     _stravaSubscriptionService = stravaSubscriptionService;
     _integrationRepository     = integrationRepository;
     _eventPublisher            = eventPublisher;
     _operationContext          = operationContext;
     _dateTimeProvider          = dateTimeProvider;
     _logger = logger;
 }
Ejemplo n.º 4
0
 public StravaController(
     IIntegrationService integrationService,
     IStravaAuthenticationService stravaAuthenticationService,
     IStravaSubscriptionService stravaSubscriptionService,
     IStravaUpdateService stravaUpdateService,
     IUserOperationContext operationContext,
     ILogger <StravaController> logger)
 {
     _integrationService          = integrationService;
     _stravaAuthenticationService = stravaAuthenticationService;
     _stravaSubscriptionService   = stravaSubscriptionService;
     _stravaUpdateService         = stravaUpdateService;
     _operationContext            = operationContext;
     _logger = logger;
 }
 public ViewStravaSubscription(IStravaSubscriptionService stravaSubscriptionService, IConfiguration configuration)
 {
     this.stravaSubscriptionService = stravaSubscriptionService;
     this.ClientId     = configuration["StravaClientId"];
     this.ClientSecret = configuration["StravaClientSecret"];
 }