AppSurface Search
API Reference

ConsumerFixture

Type

AppSurfaceDocsConsumerFixtureHost

Source

Creates the real ASP.NET Core consumer host used to verify AppSurface Docs Razor Class Library precedence.

Remarks

The fixture deliberately owns conventional Views/_ViewStart.cshtml and Views/Shared/_Layout.cshtml files. AppSurface Docs views must retain their package shell when this host is the application, while hosts remain free to deliberately override the package-specific layout path.

Method

RunAsync

Task RunAsync(string[] args)

Runs the consumer fixture until the host shuts down.

Parameters

  • args
    Command-line arguments forwarded to AppSurface Web startup.

Returns

A task that completes when the host exits.

Method

CreateBuilder

IHostBuilder CreateBuilder(string[] args, IEnvironmentProvider? environmentProvider = null)

Creates a consumer host builder without starting it.

Parameters

  • args
    Command-line arguments forwarded to AppSurface Web startup.
  • environmentProvider
    Optional environment provider used by AppSurface startup decisions before the generic host is built.

Returns

A configured host builder whose application identity is the consumer fixture assembly.

Type

ConsumerFixtureDocsCompositionModule

Source

Maps either the fixture's legacy Docs surface or its named public/internal product pair.

Remarks

This module is a dependency rather than the fixture root because WebStartup{TModule} maps dependency endpoints before root endpoints. That keeps RazorWire transport mapping ahead of Docs mapping and makes legacy Docs service registration precede the consumer theme-preference adapter.

Type

ConsumerFixtureProofAuth

Source

Names the deliberately simple header-authentication contract used only by the executable multi-instance consumer fixture.

Remarks

The fixture demonstrates where a real host supplies authentication and authorization. It is not a production authentication implementation: a request carrying UserHeaderName is treated as an authenticated reader so automated walkthroughs can prove the public/internal route boundary without an external identity provider.