本文整理汇总了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>();
}
示例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>();
}
示例3: Main
// -------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------
public Main(IFactory factory)
: base(factory)
{
this.factory = factory;
this.config = factory.Resolve<IConfig>();
}
示例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);
}
示例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;
}
示例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;
}
示例7: Main
// -------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------
public Main(IFactory factory)
: base(factory)
{
this.modManager = factory.Resolve<IMCModManager>();
this.modLookup = factory.Resolve<INEModLookup>();
}
示例8: D3ViewerMainViewModel
// -------------------------------------------------------------------
// Constructor
// -------------------------------------------------------------------
public D3ViewerMainViewModel(IFactory factory)
{
this.main = factory.Resolve<ID3ViewerMain>();
}