当前位置: 首页>>代码示例>>C#>>正文


C# IFactory.Resolve方法代码示例

本文整理汇总了C#中IFactory.Resolve方法的典型用法代码示例。如果您正苦于以下问题:C# IFactory.Resolve方法的具体用法?C# IFactory.Resolve怎么用?C# IFactory.Resolve使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IFactory的用法示例。


在下文中一共展示了IFactory.Resolve方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Main

 // -------------------------------------------------------------------
 // Constructor
 // -------------------------------------------------------------------
 public Main(IFactory factory)
     : base(factory)
 {
     this.config = factory.Resolve<IConfig>();
     this.logic = factory.Resolve<IBuildLogic>();
     this.configRuntime = factory.Resolve<ICrystalBuildConfigurationRunTime>();
 }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:10,代码来源:Main.cs

示例2: Main

        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------
        public Main(IFactory factory)
            : base(factory)
        {
            this.compiler = factory.Resolve<ICompiler>();
            this.compilerState = factory.Resolve<ICompilationState>();

            this.includes = new List<CarbonDirectory>();
            this.jobs = new Dictionary<CompilationJob, int>();
            this.includeJobDictionary = new Dictionary<string, CompilationJob>();
        }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:13,代码来源:Main.cs

示例3: Main

        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------
        public Main(IFactory factory)
            : base(factory)
        {
            this.factory = factory;

            this.config = factory.Resolve<IConfig>();
        }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:10,代码来源:Main.cs

示例4: Main

        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------
        public Main(IFactory factory)
            : base(factory)
        {
            this.data = factory.Resolve<IMainData>();
            this.simulations = new List<Simulation>();
            this.simulationFiles = new List<CarbonFile>();

            this.dataPath = new CarbonDirectory(string.Empty);
        }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:12,代码来源:Main.cs

示例5: ColladaMinecraft

        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------
        public ColladaMinecraft(IFactory factory)
            : base(factory)
        {
            this.arguments = factory.Resolve<ICommandLineArguments>();

            this.modelBoundingBox = new BoundingBox(new Vector3(0), new Vector3(0));

            this.blocks = new Dictionary<Block, Block>();

            this.mode = ProcessingMode.ColladaToSchematic;
        }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:14,代码来源:ColladaMinecraft.cs

示例6: Main

        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------
        public Main(IFactory factory)
            : base(factory)
        {
            this.factory = factory;

            this.config = factory.Resolve<IConfig>();

            this.existingMetaFiles = new List<CarbonFile>();

            this.configFile = new CarbonFile(Constants.ConfigFileName);

            this.mode = MetaUtilityMode.Check;
        }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:16,代码来源:Main.cs

示例7: Main

 // -------------------------------------------------------------------
 // Constructor
 // -------------------------------------------------------------------
 public Main(IFactory factory)
     : base(factory)
 {
     this.modManager = factory.Resolve<IMCModManager>();
     this.modLookup = factory.Resolve<INEModLookup>();
 }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:9,代码来源:Main.cs

示例8: D3ViewerMainViewModel

 // -------------------------------------------------------------------
 // Constructor
 // -------------------------------------------------------------------
 public D3ViewerMainViewModel(IFactory factory)
 {
     this.main = factory.Resolve<ID3ViewerMain>();
 }
开发者ID:Craiel,项目名称:CarbonProjects,代码行数:7,代码来源:D3ViewerMainViewModel.cs


注:本文中的IFactory.Resolve方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。