コード例 #1
0
ファイル: Autofac.cs プロジェクト: stackthatcode/Monster
        public static IContainer BuildContainer()
        {
            var builder = new ContainerBuilder();

            builder.RegisterType <ShopifyDataFeeder>();

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

            return(builder.Build());
        }
コード例 #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());
        }