Class ArcApplicationExtensions
- Namespace
- Cratis.Arc
- Assembly
- Cratis.Arc.Core.dll
Extension methods for ArcApplication.
public static class ArcApplicationExtensions
- Inheritance
-
ArcApplicationExtensions
- Inherited Members
Methods
RunAsync(ArcApplication)
Runs the application and blocks until shutdown.
public static Task RunAsync(this ArcApplication app)
Parameters
appArcApplicationThe ArcApplication.
Returns
- Task
A task representing the application lifetime.
UseCratisArc(ArcApplication)
Activates Cratis Arc on the ArcApplication, mapping the identity, introspection, command, and query endpoints. Calling it more than once is a no-op. This activates Arc only; when you use event sourcing, also activate the Chronicle client.
public static ArcApplication UseCratisArc(this ArcApplication app)
Parameters
appArcApplicationThe ArcApplication.
Returns
- ArcApplication
The ArcApplication for continuation.
Exceptions
- InvalidIntrospectionConfiguration
Discovery is enabled and authentication is explicitly required, but no handler is configured.
UsePathBase(ArcApplication, string)
Configures a base path for all endpoints being mapped.
public static ArcApplication UsePathBase(this ArcApplication app, string pathBase)
Parameters
appArcApplicationThe ArcApplication.
pathBasestringThe base path to use for all endpoints.
Returns
- ArcApplication
The ArcApplication for continuation.