Amazon DynamoDB · Types · Routing, paging cookies and capabilities

ArxRouterBuilder

Definition

Namespace
ARX.SDK.Services
Package
ARX.SDK
C#
public sealed class ArxRouterBuilder<TService>

Declares a router's routes, for Create{TService}.

Methods

  • ArxRouterBuilder<TService> Route(string routeKey, Func<IServiceProvider, TService> factory)

    A route whose service the router makes on first use, and disposes with itself.

    Parameter Type Description
    routeKeystringThe key callers pass to For.
    factoryFunc<IServiceProvider, TService>Makes the service; it gets the service provider given to Create{TService} (null without one).
  • ArxRouterBuilder<TService> Route(string routeKey, Func<TService> factory)

    A route whose service the router makes on first use, and disposes with itself.

    Parameter Type Description
    routeKeystringThe key that picks this service.
    factoryFunc<TService>Makes the service for this key.
  • ArxRouterBuilder<TService> Route(string routeKey, TService service)

    A route to a service the application made and owns: the router never disposes it.

    Parameter Type Description
    routeKeystringThe key that picks this service.
    serviceTServiceThe service for this key.
  • ArxRouterBuilder<TService> KeyComparer(StringComparer comparer)

    How route keys compare: ordinal and case-sensitive by default.

    Parameter Type Description
    comparerStringComparerHow keys are compared (for example OrdinalIgnoreCase); ordinal by default.