public AppStartupController(IHubRegistrationService hubRegistrationService,
                             IUserAuthenticationService userAuthenticationService,
                             IOptionsMonitor <Auth0Config> auth0ConfigAccessor)
 {
     _hubRegistrationService    = hubRegistrationService;
     _userAuthenticationService = userAuthenticationService;
     _auth0ConfigAccessor       = auth0ConfigAccessor;
 }
Пример #2
0
 public static Task<UpdateRegistrationResponseModel> UpdateHubRegistration(
     this IHubRegistrationService hubRegistrationService,
     UpdateRegistrationRequestModel updateRegistrationRequestModel)
 {
     return hubRegistrationService.UpdateHubRegistration(updateRegistrationRequestModel.Handle,
         updateRegistrationRequestModel.Platform,
         updateRegistrationRequestModel.RegistrationId,
         updateRegistrationRequestModel.Username);
 }
Пример #3
0
 public static Task<HubRegistrationModel> CreateHubRegistration(
     this IHubRegistrationService hubRegistrationService,
     RegistrationRequestModel registrationRequestModel)
 {
     return hubRegistrationService.CreateHubRegistration(registrationRequestModel.Handle);
 }