Class ProtoHostBuilderExtensions
public static class ProtoHostBuilderExtensions
- Inheritance
-
ProtoHostBuilderExtensions
- Inherited Members
Methods
AddWebBackend(IServiceCollection, IWebBackendFactory)
Registers the web backend services. Shared by the host and application registration paths.
public static IServiceCollection AddWebBackend(this IServiceCollection services, IWebBackendFactory factory)
Parameters
servicesIServiceCollectionfactoryIWebBackendFactory
Returns
AddWebBackend(IProtoHostBuilder, IWebBackendFactory)
Registers the web backend for the host. Sessions are not declared here; a test creates them on
demand by name via Proto.Context.Web(name), so the sessions are per-test rather than per-run.
public static IProtoHostBuilder AddWebBackend(this IProtoHostBuilder builder, IWebBackendFactory factory)
Parameters
builderIProtoHostBuilderfactoryIWebBackendFactory
Returns
AddWebMiddleware<TMiddleware>(IProtoHostBuilder)
public static IProtoHostBuilder AddWebMiddleware<TMiddleware>(this IProtoHostBuilder builder) where TMiddleware : class, IWebOperationMiddleware
Parameters
builderIProtoHostBuilder
Returns
Type Parameters
TMiddleware
AddWebWait<TCondition>(IProtoHostBuilder, WebWaitTiming, TimeSpan?, TimeSpan?, params WebOperationKind[])
public static IProtoHostBuilder AddWebWait<TCondition>(this IProtoHostBuilder builder, WebWaitTiming timing, TimeSpan? timeout = null, TimeSpan? pollInterval = null, params WebOperationKind[] operations) where TCondition : class, IWebWaitCondition
Parameters
builderIProtoHostBuildertimingWebWaitTimingtimeoutTimeSpan?pollIntervalTimeSpan?operationsWebOperationKind[]
Returns
Type Parameters
TCondition