ClientRemotingExtensions Type

Extension methods to enable support for remoting in ProgramComponent.

Static members

Static member Description

ClientRemotingExtensions.AddBoleroRemoting(services, configureHttpClient, ?configureSerialization)

Full Usage: ClientRemotingExtensions.AddBoleroRemoting(services, configureHttpClient, ?configureSerialization)

Parameters:
    services : IServiceCollection - The DI service collection.
    configureHttpClient : HttpClient -> unit - Callback that configures the HttpClient.
    ?configureSerialization : JsonSerializerOptions -> unit - Callback that configures the JSON serialization for remote arguments and return values.

Returns: IHttpClientBuilder The HttpClient builder for remote calls.

Enable support for the given remote service in ProgramComponent when running in WebAssembly.

services : IServiceCollection

The DI service collection.

configureHttpClient : HttpClient -> unit

Callback that configures the HttpClient.

?configureSerialization : JsonSerializerOptions -> unit

Callback that configures the JSON serialization for remote arguments and return values.

Returns: IHttpClientBuilder

The HttpClient builder for remote calls.

ClientRemotingExtensions.AddBoleroRemoting(services, env, ?configureSerialization)

Full Usage: ClientRemotingExtensions.AddBoleroRemoting(services, env, ?configureSerialization)

Parameters:
Returns: IHttpClientBuilder The HttpClient builder for remote calls.

Enable support for the given remote service in ProgramComponent when running in WebAssembly.

services : IServiceCollection

The DI service collection.

env : IWebAssemblyHostEnvironment

The WebAssembly host environment.

?configureSerialization : JsonSerializerOptions -> unit

Callback that configures the JSON serialization for remote arguments and return values.

Returns: IHttpClientBuilder

The HttpClient builder for remote calls.

ClientRemotingExtensions.AddBoleroRemoting(services, configureHttpClient, ?configureSerialization)

Full Usage: ClientRemotingExtensions.AddBoleroRemoting(services, configureHttpClient, ?configureSerialization)

Parameters:
    services : IServiceCollection - The DI service collection.
    configureHttpClient : HttpClient -> unit - Callback that configures the HttpClient.
    ?configureSerialization : JsonSerializerOptions -> unit - Callback that configures the JSON serialization for remote arguments and return values.

Returns: IHttpClientBuilder The HttpClient builder for remote calls.

Enable support for remoting in ProgramComponent when running in WebAssembly.

services : IServiceCollection

The DI service collection.

configureHttpClient : HttpClient -> unit

Callback that configures the HttpClient.

?configureSerialization : JsonSerializerOptions -> unit

Callback that configures the JSON serialization for remote arguments and return values.

Returns: IHttpClientBuilder

The HttpClient builder for remote calls.

ClientRemotingExtensions.AddBoleroRemoting(services, env, ?configureSerialization)

Full Usage: ClientRemotingExtensions.AddBoleroRemoting(services, env, ?configureSerialization)

Parameters:
Returns: IHttpClientBuilder The HttpClient builder for remote calls.

Enable support for remoting in ProgramComponent when running in WebAssembly.

services : IServiceCollection

The DI service collection.

env : IWebAssemblyHostEnvironment

The WebAssembly host environment.

?configureSerialization : JsonSerializerOptions -> unit

Callback that configures the JSON serialization for remote arguments and return values.

Returns: IHttpClientBuilder

The HttpClient builder for remote calls.