public static DenormalizerConfiguration SetDenormalizerAssemblies(this DenormalizerConfiguration config, params Assembly[] assemblies) { Precondition.For(() => config).NotNull(); Precondition.For(() => assemblies).NotNull().True(x => x.Any()); config.DenormalizerAssemblies = assemblies; return(config); }
public static IServiceCollection AddDenormalizers(this IServiceCollection services, DenormalizerConfiguration config) { Precondition.For(() => services).NotNull(); Precondition.For(() => config).NotNull(); services.AddSingleton(config); return(services); }
public static IServiceCollection AddDenormalizers(this IServiceCollection services, DenormalizerConfiguration config) { Precondition.For(() => services).NotNull(); Precondition.For(() => config).NotNull(); Precondition.For(() => config.Subscriber).NotNull(); Precondition.For(() => config.Activator).NotNull(); Precondition.For(() => config.StreamPositionGateway).NotNull(); services.AddSingleton(config); return(services); }