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
Type | Name |
---|---|
System.String | baseUrl |
System.Nullable<Action<ServiceStack.JsonApiClient>> | configure |
AddBlazorApiClient(IServiceCollection, String)
View Source
Declaration
public static IHttpClientBuilder AddBlazorApiClient(this IServiceCollection services, string baseUrl)
Returns
IHttpClientBuilder
Parameters
Type | Name |
---|---|
IServiceCollection | services |
System.String | baseUrl |
AddBlazorApiClient(IServiceCollection, String, Nullable<Action<HttpClient>>)
View Source
Declaration
public static IHttpClientBuilder AddBlazorApiClient(this IServiceCollection services, string baseUrl, Action<HttpClient>? configure)
Returns
IHttpClientBuilder
Parameters
Type | Name |
---|---|
IServiceCollection | services |
System.String | baseUrl |
System.Nullable<Action<HttpClient>> | configure |
AddLocalStorage(IServiceCollection)
View Source
Declaration
public static IServiceCollection AddLocalStorage(this IServiceCollection services)
Returns
IServiceCollection
Parameters
Type | Name |
---|---|
IServiceCollection | services |