Passive Services
Implementing Service Contracts
IServiceImplementation
public class MyService : IBarcodeGeneratorService {
/// <summary>
/// The name of the service
/// </summary>
public String ServiceName => "My own IBarcodeGeneratorService service";
/// <summary>
/// Generate a barcode from the specified identifier
/// </summary>
public Stream Generate<TEntity>(IEnumerable<IdentifierBase<TEntity>> identifers){
// Do Stuff Here
}
}ServiceProviderAttribute
Service Lifecycle
Singleton Services
PerCall Services
Last updated
Was this helpful?