Ejemplo n.º 1
0
        public static IContainer BuildContainer()
        {
            var builder = new ContainerBuilder();

            builder.RegisterType <ShopifyDataFeeder>();

            MiddleAutofac.Build(builder);
            FoundationWebAutofac.RegisterOwinAuthentication(builder);

            return(builder.Build());
        }
Ejemplo n.º 2
0
        public static IContainer BuildContainer(bool sentryEnabled = false)
        {
            var builder = new ContainerBuilder();

            MiddleAutofac.Build(builder, sentryEnabled);

            // TODO: Why is this necessary? Can't we just use a stub object i.e. it's not getting invoked?
            //
            FoundationWebAutofac.RegisterOwinAuthentication(builder);

            return(builder.Build());
        }