Exemplo n.º 1
0
 public JsonLocalStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory, string key)
 {
     Ensure.NotNull(formatters, "formatters");
     Ensure.NotNull(jsRuntime, "jsRuntime");
     Ensure.NotNull(logFactory, "logFactory");
     Ensure.NotNullOrEmpty(key, "key");
     this.formatters = formatters;
     this.jsRuntime  = jsRuntime;
     this.log        = logFactory.Scope(GetType().Name);
     this.key        = key;
 }
Exemplo n.º 2
0
 public ApiClient(ApiVersionChecker versionChecker, HttpClient http, CommandMapper commandMapper, QueryMapper queryMapper, IExceptionHandler exceptionHandler, ApiAuthenticationStateProvider authenticationState, ILogFactory logFactory, Json json, FormatterContainer formatters)
 {
     Ensure.NotNull(versionChecker, "versionChecker");
     Ensure.NotNull(http, "http");
     Ensure.NotNull(commandMapper, "commandMapper");
     Ensure.NotNull(queryMapper, "queryMapper");
     Ensure.NotNull(exceptionHandler, "exceptionHandler");
     Ensure.NotNull(authenticationState, "authenticationState");
     Ensure.NotNull(logFactory, "logFactory");
     Ensure.NotNull(json, "json");
     Ensure.NotNull(formatters, "formatters");
     this.versionChecker      = versionChecker;
     this.http                = http;
     this.commandMapper       = commandMapper;
     this.queryMapper         = queryMapper;
     this.exceptionHandler    = exceptionHandler;
     this.authenticationState = authenticationState;
     this.log        = logFactory.Scope("ApiClient");
     this.json       = json;
     this.formatters = formatters;
 }
Exemplo n.º 3
0
 public ProfileStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory)
     : base(formatters.Query, localStorage, logFactory, "profile")
 {
 }
Exemplo n.º 4
0
 public ProfileStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory)
     : base(formatters, jsRuntime, logFactory, "profile")
 {
 }
Exemplo n.º 5
0
 public CurrencyStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory)
     : base(formatters.Query, jsRuntime, logFactory, "currencies")
 {
 }
Exemplo n.º 6
0
 public CategoryStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory)
     : base(formatters, jsRuntime, logFactory, "categories")
 {
 }
Exemplo n.º 7
0
 public CurrencyStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory)
     : base(formatters.Query, localStorage, logFactory, "currencies")
 {
 }
Exemplo n.º 8
0
 public UserPropertyStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory)
     : base(formatters.Query, localStorage, logFactory, "userProperties")
 {
 }
Exemplo n.º 9
0
 public CategoryStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory)
     : base(formatters.Query, localStorage, logFactory, "categories")
 {
 }