src/fursvp.domain/DependencyInjection.cs
/// <summary>
/// Registers services for use with the Fursvp Domain.
/// </summary>
/// <param name="services">The service collection.</param>
Registers services for use with the Fursvp Domain.
Registers services for use with the Fursvp Domain .
public static void AddDomainServices(this IServiceCollection services)
        {
            services.AddSingleton<IProvideDateTime, UtcDateTimeProvider>();
            services.AddSingleton<IValidateTimeZone, ValidateTimeZone>();
            services.AddSingleton<IValidateEmail, ValidateEmail>();
            services.AddSingleton<IEventService, EventService>();
            services.AddSingleton<IReadAuthorize<Event>, ReadAuthorizeEvent<Event, Member>>();
            services.AddSingleton<IReadAuthorize<Member>, ReadAuthorizeMember<Member>>();
            services.AddSingleton<IWriteAuthorize<Event>, WriteAuthorizeEvent>();
            services.AddSingleton<IWriteAuthorizeMember, WriteAuthorizeMember>();
            services.AddSingleton<IValidate<Event>, ValidateEvent>();
            services.AddSingleton<IValidateMember, ValidateMember>();
        }
public static void AddDomainServices ( this IServiceCollection services ) { services . AddSingleton < IProvideDateTime , UtcDateTimeProvider > ( ) ; services . AddSingleton < IValidateTimeZone , ValidateTimeZone > ( ) ; services . AddSingleton < IValidateEmail , ValidateEmail > ( ) ; services . AddSingleton < IEventService , EventService > ( ) ; services . AddSingleton < IReadAuthorize < Event > , ReadAuthorizeEvent < Event , Member > > ( ) ; services . AddSingleton < IReadAuthorize < Member > , ReadAuthorizeMember < Member > > ( ) ; services . AddSingleton < IWriteAuthorize < Event > , WriteAuthorizeEvent > ( ) ; services . AddSingleton < IWriteAuthorizeMember , WriteAuthorizeMember > ( ) ; services . AddSingleton < IValidate < Event > , ValidateEvent > ( ) ; services . AddSingleton < IValidateMember , ValidateMember > ( ) ; }
Registers services for use with the Fursvp Domain.
Registers services for use with the Fursvp Domain .
IServiceCollection
this
services
The service collection.
The service collection .