C# Class x42.Feature.Setup.FeatureRegistration

Default implementation of a representation of a registered feature of the Server.
Inheritance: IFeatureRegistration
Mostra file Open project: x42protocol/xServer Class Usage Examples

Public Properties

Property Type Description
ConfigureServicesDelegates List>

Public Methods

Method Description
BuildFeature ( IServiceCollection serviceCollection ) : void
DependOn ( ) : IFeatureRegistration
EnsureDependencies ( List featureRegistrations ) : void
FeatureRegistration ( ) : System

Initializes the instance of the object.

FeatureServices ( Action configureServices ) : IFeatureRegistration
UseStartup ( ) : IFeatureRegistration

Private Methods

Method Description
FeatureStartup ( IServiceCollection serviceCollection, Type startupType ) : void

A feature can use specified method to configure its services. The specified method needs to have the following signature to be invoked: void ConfigureServices(IServiceCollection serviceCollection).

Method Details

BuildFeature() public method

public BuildFeature ( IServiceCollection serviceCollection ) : void
serviceCollection IServiceCollection
return void

DependOn() public method

public DependOn ( ) : IFeatureRegistration
return IFeatureRegistration

EnsureDependencies() public method

public EnsureDependencies ( List featureRegistrations ) : void
featureRegistrations List
return void

FeatureRegistration() public method

Initializes the instance of the object.
public FeatureRegistration ( ) : System
return System

FeatureServices() public method

public FeatureServices ( Action configureServices ) : IFeatureRegistration
configureServices Action
return IFeatureRegistration

UseStartup() public method

public UseStartup ( ) : IFeatureRegistration
return IFeatureRegistration

Property Details

ConfigureServicesDelegates public_oe property

List of delegates to configure services of the feature.
public List> ConfigureServicesDelegates
return List>