public static IHalSupportConfigurator WithHalSupport <THalBuildConfiguration>(this IKeyGeneratorConfigurator configurator, Func <IServiceProvider, THalBuildConfiguration> halBuildConfigurationFactory, ServiceLifetime serviceLifeTime = ServiceLifetime.Scoped) where THalBuildConfiguration : class, IHalBuildConfiguration { return(new HalSupportConfigurator <THalBuildConfiguration>(configurator, halBuildConfigurationFactory, serviceLifeTime)); }
public static IKeyGeneratorConfigurator WithKeyGenerator <TKey, TAggregateRoot>(this IKeyGeneratorConfigurator configurator, Func <IServiceProvider, IKeyGenerator <TKey, TAggregateRoot> > keyGeneratorFactory, ServiceLifetime serviceLifetime = ServiceLifetime.Scoped) where TKey : IEquatable <TKey> where TAggregateRoot : class, IAggregateRoot <TKey> { return(new KeyGeneratorConfigurator <TKey, TAggregateRoot, IKeyGenerator <TKey, TAggregateRoot> >(configurator, keyGeneratorFactory, serviceLifetime)); }