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; }
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; }
public ProfileStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory) : base(formatters.Query, localStorage, logFactory, "profile") { }
public ProfileStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory) : base(formatters, jsRuntime, logFactory, "profile") { }
public CurrencyStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory) : base(formatters.Query, jsRuntime, logFactory, "currencies") { }
public CategoryStorage(FormatterContainer formatters, IJSRuntime jsRuntime, ILogFactory logFactory) : base(formatters, jsRuntime, logFactory, "categories") { }
public CurrencyStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory) : base(formatters.Query, localStorage, logFactory, "currencies") { }
public UserPropertyStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory) : base(formatters.Query, localStorage, logFactory, "userProperties") { }
public CategoryStorage(FormatterContainer formatters, ILocalStorageService localStorage, ILogFactory logFactory) : base(formatters.Query, localStorage, logFactory, "categories") { }