public static void UseEntryPoints(
     this IContainerBuilder builder,
     Lifetime lifetime,
     Action <EntryPointsBuilder> configuration)
 {
     EntryPointsBuilder.EnsureDispatcherRegistered(builder);
     configuration(new EntryPointsBuilder(builder, lifetime));
 }
Ejemplo n.º 2
0
        public static void UseEntryPoints(
            this IContainerBuilder builder,
            Lifetime lifetime,
            Action <EntryPointsBuilder> configuration)
        {
            var entryPoints = new EntryPointsBuilder(builder, lifetime);

            configuration(entryPoints);
        }
 public static RegistrationBuilder RegisterEntryPoint <T>(this IContainerBuilder builder, Lifetime lifetime = Lifetime.Singleton)
 {
     EntryPointsBuilder.EnsureDispatcherRegistered(builder);
     return(builder.Register <T>(lifetime).AsImplementedInterfaces());
 }