Class ProtoHostBuilderExtensions

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll
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

services IServiceCollection
factory IWebBackendFactory

Returns

IServiceCollection

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

builder IProtoHostBuilder
factory IWebBackendFactory

Returns

IProtoHostBuilder

AddWebMiddleware<TMiddleware>(IProtoHostBuilder)

public static IProtoHostBuilder AddWebMiddleware<TMiddleware>(this IProtoHostBuilder builder) where TMiddleware : class, IWebOperationMiddleware

Parameters

builder IProtoHostBuilder

Returns

IProtoHostBuilder

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

builder IProtoHostBuilder
timing WebWaitTiming
timeout TimeSpan?
pollInterval TimeSpan?
operations WebOperationKind[]

Returns

IProtoHostBuilder

Type Parameters

TCondition