Ejemplo n.º 1
0
        public static ISharpPlugBuilder AddSharpPlugCore(this IServiceCollection services)
        {
            var builder = new DefaultSharpPlugBuilder(services);

            builder.Register();

            return(builder);
        }
Ejemplo n.º 2
0
        public static ISharpPlugBuilder AddSharpPlugCore(this IServiceCollection services, Action <SharpPlogCoreOptions> setupAction = null)
        {
            var builder = new DefaultSharpPlugBuilder(services);
            var options = new SharpPlogCoreOptions();

            setupAction?.Invoke(options);
            builder.Register(options.ClassSuffix.ToArray(), options.DiAssembly.ToArray());
            return(builder);
        }