コード例 #1
0
ファイル: Bootstrapper.cs プロジェクト: interemit/miriwork
        private static BoundedContextManager CreateBoundedContextManager(IServiceCollection services,
                                                                         MiriworkConfiguration miriworkConfiguration, Type[] boundedContextTypes)
        {
            var boundedContextManager = new BoundedContextManager(miriworkConfiguration);

            boundedContextManager.Init(boundedContextTypes);

            services.AddSingleton <IMiriBoundedContextsAccessor>(boundedContextManager);

            return(boundedContextManager);
        }