public LanguageManagerService(ILanguageService languageService, IJsInteropService jsInteropService,
                               ILocalStorageManagerService localStorageManagerService)
 {
     _languageService            = languageService;
     _jsInteropService           = jsInteropService;
     _localStorageManagerService = localStorageManagerService;
 }
Esempio n. 2
0
 public LocalLoginService(ILocalAuthenticationStateProvider localAuthenticationStateProvider, ILocalStorageManagerService localStorageManagerService, ITimeService timeService, StaticStateService staticStateService)
 {
     _localAuthenticationStateProvider = localAuthenticationStateProvider;
     _localStorageManagerService       = localStorageManagerService;
     _timeService        = timeService;
     _staticStateService = staticStateService;
 }
Esempio n. 3
0
        public AuthenticationDataService(HttpClient httpClient, IConfiguration configuration, ILocalStorageManagerService localStorageManagerService)
        {
            Configuration = configuration;
            LocalStorageManagerService = localStorageManagerService;
            this.UrlApi = Configuration["APPPaths:BestPathAPI"] + "Accounts/";

            this._httpClient = httpClient;
        }
        public RestDataService(HttpClient httpClient, IConfiguration configuration, IJSRuntime JSRuntime, ILocalStorageManagerService localStorageManagerService, string partialUrl = null)
        {
            if (string.IsNullOrEmpty(partialUrl))
            {
                partialUrl = typeof(TModel).Name.Replace("Model", "");
            }

            this.LocalStorageManagerService = localStorageManagerService;
            Configuration    = configuration;
            this.UrlApi      = Configuration["APPPaths:BestPathAPI"] + partialUrl + "/";
            this._httpClient = httpClient;
            _jSRuntime       = JSRuntime;
            GetToken();
        }
Esempio n. 5
0
 public ReviewDataService(HttpClient httpClient, IConfiguration configuration, IJSRuntime JSRuntime, ILocalStorageManagerService localStorageManagerService) : base(httpClient, configuration, JSRuntime, localStorageManagerService, "Review")
 {
     GetByFilterSelector = x => new Review
     {
         Id            = x.Id,
         ReviewComment = x.ReviewComment,
         Stars         = x.Stars
     };
 }
 public CitiesDataService(HttpClient httpClient, IConfiguration configuration, IJSRuntime JSRuntime, ILocalStorageManagerService localStorageManagerService) : base(httpClient, configuration, JSRuntime, localStorageManagerService, "cities")
 {
     GetByFilterSelector = x => new City
     {
         Id               = x.Id,
         CityName         = x.CityName,
         DestinationPoint = x.DestinationPoint,
         MuseumType       = x.MuseumType,
         NeedsMuseum      = x.NeedsMuseum,
         NeedsRestaurant  = x.NeedsRestaurant,
         RestaurantType   = x.RestaurantType,
         StartPoint       = x.StartPoint,
         Location         = x.Location,
         UserId           = x.UserId
     };
 }