本文整理汇总了C#中IApplicationContext类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationContext类的具体用法?C# IApplicationContext怎么用?C# IApplicationContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationContext类属于命名空间,在下文中一共展示了IApplicationContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Gallery
public Gallery(IApplicationContext context, IScriptEngine engine)
{
_context = context;
_scriptEngine = engine;
Size = 200;
}
示例2: SimulationOperator
public SimulationOperator(IApplicationContext appContext, IGeoVectorData simulationData)
{
this.m_AppContext = appContext;
this.m_SelectionHelper = ServiceHelper.Lookup<IGeoSelectionHelper>(this.m_AppContext);
this.m_GisAnalyEvent = ServiceHelper.Lookup<IAnalyDispEvent>(this.m_AppContext) as GisAnalyEvent;
this.m_SimulationData = simulationData;
}
示例3: CreateAssemblyEnum
public static extern int CreateAssemblyEnum(
out IAssemblyEnum ppEnum,
IApplicationContext pAppCtx,
IAssemblyName pName,
uint dwFlags,
int pvReserved
);
示例4: NancyBootstrapper
public NancyBootstrapper(IApplicationContext applicationContext, IStatisticsManager statisticsManager, IPoolManager poolManager, IConfigManager configManager)
{
_applicationContext = applicationContext;
_statisticsManager = statisticsManager;
_poolManager = poolManager;
_configManager = configManager;
}
示例5: Start
public void Start(IApplicationContext ctx, bool rollBack = false)
{
InvokeCallback(ctx, WORKFLOW_START_EVENT);
Step step = _currentStep ?? _firstStep.Clone();
DoForward(ctx, step, null, rollBack);
}
示例6: RunExample
protected override void RunExample(IApplicationContext ctx)
{
var sender = ctx.GetObject<Sender>();
sender.Run();
//to let background tasks to finish
Thread.Sleep(3000);
}
示例7: MoveMapOperator
public MoveMapOperator(IApplicationContext appContext, GeoMapMgr geoMapMgr, GeoTileDrawMgr tileMgr)
{
this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
this.m_Cursor = new Cursor(Huawei.UNet.Common.GlobalResource.GlobalResource.move.GetHicon());
this.m_GeoMapMgr = geoMapMgr;
this.m_TileMgr = tileMgr;
}
示例8: FileSystem
public FileSystem(ScriptEngine scriptEngine, IApplicationContext context)
{
_scriptEngine = scriptEngine;
_context = context;
ReadFsLog();
}
示例9: FileSystem
public FileSystem(IScriptEngine scriptEngine, IApplicationContext io)
{
_scriptEngine = scriptEngine;
_io = io;
ReadFsLog();
}
示例10: LteDefinedFunctionFactory
//进入平台时调用此方法
public LteDefinedFunctionFactory(IApplicationContext appContext)
{
this.m_AppContext = appContext;
this.m_SpecialStudyList = new List<string>();
string[] collection = new string[] { "Best Server", "PUSCH MCS", "PDSCH MCS", "RPDSCH MCS", "RPUSCH MCS" };
this.m_SpecialStudyList.AddRange(collection);
}
示例11: MainForm
public MainForm(IApplicationContext applicationContext, IBooksOrderer booksOrderer)
{
_booksOrderer = booksOrderer;
Context = applicationContext;
InitializeComponent();
}
示例12: SetUp
public void SetUp()
{
applicationContext = new XmlApplicationContext("spring-config.xml");
personRepository = (IRepository<Person>)applicationContext.GetObject("PersonRepository");
addressRepository = (IRepository<Address>)applicationContext.GetObject("AddressRepository");
contRepository = (IRepository<ContBancar>)applicationContext.GetObject("ContBancarRepository");
}
示例13: SetUp
public void SetUp()
{
//LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter();
ctx =
new XmlApplicationContext("assembly://Spring.Data.Tests/Spring.Data/AutoDeclarativeTxTests.xml");
}
示例14: Run
/// <summary>
/// Loads the application
/// </summary>
public void Run()
{
_logger.Log("Creating Unity container", Category.Debug, Priority.Low);
_container = CreateContainer();
if (Container == null)
{
throw new InvalidOperationException(Properties.Resources.NullContainerException);
}
_logger.Log("Configuring container", Category.Debug, Priority.Low);
ConfigureContainer();
_logger.Log("Configuring region adapters", Category.Debug, Priority.Low);
ConfigureRegionAdapterMappings();
_logger.Log("Creating shell", Category.Debug, Priority.Low);
DependencyObject shell = CreateShell();
if (shell != null)
{
RegionManager.SetRegionManager(shell, (IRegionManager)_container.GetObject("IRegionManager"));
}
_logger.Log("Initializing modules", Category.Debug, Priority.Low);
InitializeModules();
_logger.Log("Bootstrapper sequence completed", Category.Debug, Priority.Low);
}
示例15: SetUp
public void SetUp()
{
string configLocation =
ReadOnlyXmlTestResource.GetFilePath("objectNameAutoProxyCreatorTests.xml",
typeof (ObjectNameAutoProxyCreatorTests));
ctx = new XmlApplicationContext(configLocation);
}