Skip to main content

BlazorClient

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public static class BlazorClient

Properties

MessageHandlerFactory

View Source
Declaration
public static Func<HttpMessageHandler>? MessageHandlerFactory { get; set; }

Methods

Create(String, Nullable<Action<JsonApiClient>>)

View Source
Declaration
public static JsonApiClient Create(string baseUrl, Action<JsonApiClient>? configure = null)
Returns

ServiceStack.JsonApiClient

Parameters
TypeName
System.StringbaseUrl
System.Nullable<Action<ServiceStack.JsonApiClient>>configure

AddBlazorApiClient(IServiceCollection, String)

View Source
Declaration
public static IHttpClientBuilder AddBlazorApiClient(this IServiceCollection services, string baseUrl)
Returns

IHttpClientBuilder

Parameters
TypeName
IServiceCollectionservices
System.StringbaseUrl

AddBlazorApiClient(IServiceCollection, String, Nullable<Action<HttpClient>>)

View Source
Declaration
public static IHttpClientBuilder AddBlazorApiClient(this IServiceCollection services, string baseUrl, Action<HttpClient>? configure)
Returns

IHttpClientBuilder

Parameters
TypeName
IServiceCollectionservices
System.StringbaseUrl
System.Nullable<Action<HttpClient>>configure

AddLocalStorage(IServiceCollection)

View Source
Declaration
public static IServiceCollection AddLocalStorage(this IServiceCollection services)
Returns

IServiceCollection

Parameters
TypeName
IServiceCollectionservices