Interface IServiceRepository
Provides access to imported services.
Namespace: Snowflake.Loader
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IServiceRepository
Properties
Services
Gets a list of available service types.
Declaration
IEnumerable<string> Services { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Get<T>()
Gets the given service
Declaration
T Get<T>()
where T : class
Returns
Type | Description |
---|---|
T | The available services |
Type Parameters
Name | Description |
---|---|
T | The requested service |
Exceptions
Type | Condition |
---|---|
System. |
The service has not been imported or you do not have permissions to access the service. |
ToServiceProvider()
Returns a System.
Declaration
IServiceProvider ToServiceProvider()
Returns
Type | Description |
---|---|
System. |
A System. |