ServiceCollectionModuleExtensions Class
Namespace: PTS
Assembly: PTS.Modules.Domain.dll
Static extension class with helper methods for services in modules.
Syntax
public static class ServiceCollectionModuleExtensions
Inheritance
System.Object
ServiceCollectionModuleExtensions
Methods
AddModuleSeedWork(IServiceCollection)
Attempts to add services that implement IBusinessComponent and ISeedWork to service collection found in assemblies via reflection.
Services already added to IServiceCollection will not be overriden.
Declaration
public static IServiceCollection AddModuleSeedWork(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | A reference to the current instance of |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()