Interface IServiceFactory
Defines an interface for requesting service instances
Namespace: ImageVault.Common.Services
Assembly: ImageVault.Common.dll
Syntax
public interface IServiceFactory
Methods
GetService(Type)
Gets a service instance of the specified type
Declaration
object GetService(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
Type | serviceType |
Returns
Type | Description |
---|---|
Object |
GetService<T>()
Gets a service instance of the specified type
Declaration
T GetService<T>()
where T : IService
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |