Class MorpheoServiceExtensions
Extension methods for registering Morpheo services in the dependency injection container.
Inherited Members
Namespace: Morpheo.Core
Assembly: Morpheo.Core.dll
Syntax
public static class MorpheoServiceExtensions
Methods
| Edit this page View SourceAddMorpheo(IServiceCollection, Action<IMorpheoBuilder>?)
Adds Morpheo core services to the service collection.
Declaration
public static IMorpheoBuilder AddMorpheo(this IServiceCollection services, Action<IMorpheoBuilder>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection. |
| Action<IMorpheoBuilder> | configure | Optional delegate to configure the builder. |
Returns
| Type | Description |
|---|---|
| IMorpheoBuilder | The Morpheo builder. |
AddWindowsPrinting(IServiceCollection)
Adds Windows-specific printing services.
Declaration
public static IServiceCollection AddWindowsPrinting(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The service collection. |
Configure(IMorpheoBuilder, Action<MorpheoOptions>)
Configures Morpheo options (e.g., NodeName, Port) via the Builder.
Declaration
public static IMorpheoBuilder Configure(this IMorpheoBuilder builder, Action<MorpheoOptions> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| IMorpheoBuilder | builder | The Morpheo builder. |
| Action<MorpheoOptions> | configure | The configuration delegate. |
Returns
| Type | Description |
|---|---|
| IMorpheoBuilder | The Morpheo builder. |