コード例 #1
0
ファイル: Program.cs プロジェクト: Uenoga/EndlessClient
        private static void SetupDependencies()
        {
            var dependencyRegistrar = new DependencyRegistrar(_unityContainer = new UnityContainer());
            var containers          = new IDependencyContainer[] { new IODependencyContainer() };

            dependencyRegistrar.RegisterDependencies(containers);
            dependencyRegistrar.InitializeDependencies(containers.OfType <IInitializableContainer>().ToArray());

            _pubProvider     = _unityContainer.Resolve <IPubFileProvider>();
            _mapFileProvider = _unityContainer.Resolve <IMapFileProvider>();
        }