示例#1
0
 public RestClient(HttpClient httpClient,
                   NavigationManager navigationManager,
                   IAuthDataStorage authDataStorage)
 {
     _httpClient        = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
     _navigationManager = navigationManager;
     _authDataStorage   = authDataStorage;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CareBuilderControllerManager" /> class.
 /// </summary>
 /// <param name="healthLibraryService">The health library service.</param>
 /// <param name="vitalsService"></param>
 /// <param name="authDataStorage">The authentication data storage.</param>
 /// <param name="customerContext">The customer context.</param>
 public CareBuilderControllerManager(
     IHealthLibraryService healthLibraryService,
     IVitalsService vitalsService,
     IAuthDataStorage authDataStorage,
     ICustomerContext customerContext)
 {
     this.healthLibraryService = healthLibraryService;
     this.vitalsService        = vitalsService;
     this.authDataStorage      = authDataStorage;
     this.customerContext      = customerContext;
     this.logger = NLog.LogManager.GetCurrentClassLogger();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerUsersManager" /> class.
 /// </summary>
 /// <param name="usersService">The users service.</param>
 /// <param name="customersService">The customers service.</param>
 /// <param name="customerUsersService">The customer users service.</param>
 /// <param name="emailManager">The email manager.</param>
 /// <param name="authDataStorage">The authentication data storage.</param>
 public CustomerUsersManager(
     IUsersService usersService,
     ICustomersService customersService,
     ICustomerUsersService customerUsersService,
     IEmailManager emailManager,
     IAuthDataStorage authDataStorage)
 {
     this.usersService         = usersService;
     this.customerUsersService = customerUsersService;
     this.customersService     = customersService;
     this.emailManager         = emailManager;
     this.authDataStorage      = authDataStorage;
 }
示例#4
0
 public SitesControllerManager(IAuthDataStorage authDataStorage)
 {
     this.authDataStorage = authDataStorage;
 }
示例#5
0
 public AuthStateProvider(IAuthDataStorage authService)
 {
     _authService = authService;
 }
示例#6
0
 public RegisterViewModel(IAuthService authService,
                          IAuthDataStorage authDataStorage)
 {
     _authService     = authService;
     _authDataStorage = authDataStorage;
 }
示例#7
0
 public AuthService(RestClient restClient,
                    IAuthDataStorage authDataStorage)
 {
     _restClient      = restClient;
     _authDataStorage = authDataStorage;
 }
示例#8
0
 public LoginViewModel(IAuthService authService,
                       IAuthDataStorage authDataStorage)
 {
     _authService     = authService;
     _authDataStorage = authDataStorage;
 }