Interface IStreamedServiceStartup
Provides functionality to stream service registration based on ConnectionType
Namespace: LemonEdge.Client.Core.Context
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IStreamedServiceStartup
Methods
ConfigureServices(IServiceCollection, IConfiguration)
Configures an IServiceCollection with the required services
Declaration
void ConfigureServices(IServiceCollection services, IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to add to |
IConfiguration | configuration |
InitialiseServices(IServiceProvider)
Initialises current ".Instance" singletons that should be deprecated.
Declaration
void InitialiseServices(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | provider |
SetConnectionType(ConnectionType?)
Specifies which ConnectionType to register service implementations for. If no connectionType is set, the default behavior will configure both Service and Database service implementations.
Declaration
void SetConnectionType(ConnectionType? connectionType)
Parameters
Type | Name | Description |
---|---|---|
ConnectionType? | connectionType |
TearDown(IServiceProvider)
Tears down anything that needs tearing down TODO: Remove with host restarter work
Declaration
void TearDown(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | provider |