Table of Contents

Class EndpointServiceCollectionExtensions

Namespace
The.Web
Assembly
Instagile.Web.dll
public static class EndpointServiceCollectionExtensions
Inheritance
EndpointServiceCollectionExtensions
Inherited Members

Methods

AddTheEndpoint(IServiceCollection)

Provides the services required for MapTheFramework() to add RPC endpoints.

public static IServiceCollection AddTheEndpoint(this IServiceCollection source)

Parameters

source IServiceCollection

Returns

IServiceCollection

AddTheEndpoint(IServiceCollection, Func<IServiceProvider, IAuthentication>)

Provides the services required for MapTheFramework() to add RPC endpoints.

public static IServiceCollection AddTheEndpoint(this IServiceCollection source, Func<IServiceProvider, IAuthentication> getAuthentication)

Parameters

source IServiceCollection
getAuthentication Func<IServiceProvider, IAuthentication>

Returns

IServiceCollection

AddTheEndpoint(IServiceCollection, string)

Provides the services required for MapTheFramework() to add RPC endpoints.

public static IServiceCollection AddTheEndpoint(this IServiceCollection source, string sharedSecret)

Parameters

source IServiceCollection
sharedSecret string

Returns

IServiceCollection

AddTheEndpoint(IServiceCollection, IAuthentication)

Provides the services required for MapTheFramework() to add RPC endpoints.

public static IServiceCollection AddTheEndpoint(this IServiceCollection source, IAuthentication authentication)

Parameters

source IServiceCollection
authentication IAuthentication

Returns

IServiceCollection

AddTheEndpointCore(IServiceCollection, Func<IServiceProvider, IEndpoint>)

public static IServiceCollection AddTheEndpointCore(this IServiceCollection source, Func<IServiceProvider, IEndpoint> provide)

Parameters

source IServiceCollection
provide Func<IServiceProvider, IEndpoint>

Returns

IServiceCollection

AddTheEndpointCore(IServiceCollection, Func<IServiceProvider, RPCOptions, IEndpoint>)

public static IServiceCollection AddTheEndpointCore(this IServiceCollection source, Func<IServiceProvider, RPCOptions, IEndpoint> provide)

Parameters

source IServiceCollection
provide Func<IServiceProvider, RPCOptions, IEndpoint>

Returns

IServiceCollection

AddTheNamedEndpoint(IServiceCollection, string)

Provides the services required for MapTheFramework() to add an extra endpoint using a named framework instance.

public static IServiceCollection AddTheNamedEndpoint(this IServiceCollection source, string name)

Parameters

source IServiceCollection
name string

Returns

IServiceCollection

AddTheNamedEndpoint(IServiceCollection, string, Func<IServiceProvider, object?, IAuthentication>)

Provides the services required for MapTheFramework() to add an extra endpoint using a named framework instance.

public static IServiceCollection AddTheNamedEndpoint(this IServiceCollection source, string name, Func<IServiceProvider, object?, IAuthentication> getAuthentication)

Parameters

source IServiceCollection
name string
getAuthentication Func<IServiceProvider, object, IAuthentication>

Returns

IServiceCollection

AddTheNamedEndpoint(IServiceCollection, string, string)

Provides the services required for MapTheFramework() to add an extra endpoint using a named framework instance.

public static IServiceCollection AddTheNamedEndpoint(this IServiceCollection source, string name, string sharedSecret)

Parameters

source IServiceCollection
name string
sharedSecret string

Returns

IServiceCollection

AddTheNamedEndpoint(IServiceCollection, string, IAuthentication)

Provides the services required for MapTheFramework() to add an extra endpoint using a named framework instance.

public static IServiceCollection AddTheNamedEndpoint(this IServiceCollection source, string name, IAuthentication authentication)

Parameters

source IServiceCollection
name string
authentication IAuthentication

Returns

IServiceCollection

AddTheNamedEndpointCore(IServiceCollection, string, Func<IServiceProvider, object?, IEndpoint>)

public static IServiceCollection AddTheNamedEndpointCore(this IServiceCollection source, string name, Func<IServiceProvider, object?, IEndpoint> provide)

Parameters

source IServiceCollection
name string
provide Func<IServiceProvider, object, IEndpoint>

Returns

IServiceCollection

AddTheNamedEndpointCore(IServiceCollection, string, Func<IServiceProvider, object?, RPCOptions, IEndpoint>)

public static IServiceCollection AddTheNamedEndpointCore(this IServiceCollection source, string name, Func<IServiceProvider, object?, RPCOptions, IEndpoint> provide)

Parameters

source IServiceCollection
name string
provide Func<IServiceProvider, object, RPCOptions, IEndpoint>

Returns

IServiceCollection

AddTheProxyEndpoint(IServiceCollection, string, string?)

Provides the services required for MapTheFramework() to proxy RPCs to a server through the WebEndpoint HTTP client, vouching for each caller's ASP.NET Core identity with a shared secret.

public static IServiceCollection AddTheProxyEndpoint(this IServiceCollection source, string sharedSecret, string? name = null)

Parameters

source IServiceCollection
sharedSecret string
name string

Returns

IServiceCollection

Remarks

Register the server's endpoint with an EndpointSignedAuthentication that checks the same secret. Procedures registered as Procedure services are proxied along with WellKnownProcedures.