本文整理汇总了C#中IApplicationContext类的典型用法代码示例。如果您正苦于以下问题:C# IApplicationContext类的具体用法?C# IApplicationContext怎么用?C# IApplicationContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IApplicationContext类属于命名空间,在下文中一共展示了IApplicationContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Gallery
public Gallery(IApplicationContext context, IScriptEngine engine)
{
_context = context;
_scriptEngine = engine;
Size = 200;
}
开发者ID:Fedorm,项目名称:core-master,代码行数:7,代码来源:Gallery.cs
示例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;
}
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:SimulationOperator.cs
示例3: CreateAssemblyEnum
public static extern int CreateAssemblyEnum(
out IAssemblyEnum ppEnum,
IApplicationContext pAppCtx,
IAssemblyName pName,
uint dwFlags,
int pvReserved
);
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:7,代码来源:NuGenFusion.cs
示例4: NancyBootstrapper
public NancyBootstrapper(IApplicationContext applicationContext, IStatisticsManager statisticsManager, IPoolManager poolManager, IConfigManager configManager)
{
_applicationContext = applicationContext;
_statisticsManager = statisticsManager;
_poolManager = poolManager;
_configManager = configManager;
}
开发者ID:carloslozano,项目名称:CoiniumServ,代码行数:7,代码来源:NancyBootstrapper.cs
示例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);
}
开发者ID:Fedorm,项目名称:core-master,代码行数:7,代码来源:Workflow.cs
示例6: RunExample
protected override void RunExample(IApplicationContext ctx)
{
var sender = ctx.GetObject<Sender>();
sender.Run();
//to let background tasks to finish
Thread.Sleep(3000);
}
开发者ID:Suremaker,项目名称:Spring.FluentContext,代码行数:7,代码来源:ComplexExample.cs
示例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;
}
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:MoveMapOperator.cs
示例8: FileSystem
public FileSystem(ScriptEngine scriptEngine, IApplicationContext context)
{
_scriptEngine = scriptEngine;
_context = context;
ReadFsLog();
}
开发者ID:Fedorm,项目名称:core-master,代码行数:7,代码来源:FileSystem.cs
示例9: FileSystem
public FileSystem(IScriptEngine scriptEngine, IApplicationContext io)
{
_scriptEngine = scriptEngine;
_io = io;
ReadFsLog();
}
开发者ID:Fedorm,项目名称:core-master,代码行数:7,代码来源:FileSystem.cs
示例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);
}
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:LteDefinedFunctionFactory.cs
示例11: MainForm
public MainForm(IApplicationContext applicationContext, IBooksOrderer booksOrderer)
{
_booksOrderer = booksOrderer;
Context = applicationContext;
InitializeComponent();
}
开发者ID:edgarmesquita,项目名称:fgv-technical-evaluation,代码行数:7,代码来源:MainForm.cs
示例12: TrafficMapFunctionImp
public TrafficMapFunctionImp(IApplicationContext context, TrafficMapView trafficMapView)
{
this.m_Context = context;
this.m_TrafficMapView = trafficMapView;
this.m_TrafficMapModelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
this.m_GisPolygonAssist = this.m_TrafficMapModelService.GeoProvider.PolygonRegionAssist;
}
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:TrafficMapFunctionImp.cs
示例13: Intercept
/// <summary>
/// Intercepts the given <see cref="ControlCollection"/> by dynamically deriving
/// the original type and let it implement <see cref="ISupportsWebDependencyInjection"/>.
/// </summary>
/// <param name="defaultApplicationContext">the ApplicationContext to be set on the collection instance.</param>
/// <param name="ctlAccessor">a wrapper around the owner control instance.</param>
/// <param name="ctlColAccessor">a wrapper around the collection instance.</param>
/// <returns><value>true</value>, if interception was successful. <value>false</value> otherwise</returns>
public bool Intercept(IApplicationContext defaultApplicationContext,
ControlAccessor ctlAccessor, ControlCollectionAccessor ctlColAccessor)
{
Type collectionType = ctlColAccessor.GetTargetType();
if (collectionType.IsSealed ||
!ReflectionUtils.IsTypeVisible(collectionType, DynamicProxyManager.ASSEMBLY_NAME))
// || (null == collectionType.GetConstructor(new Type[] {typeof (Control)}))
{
return false;
}
// this will enhance the collection's type and create a new instance of this type with fields copied from original collection
try
{
ControlCollection childControls = InterceptCollection(ctlAccessor.GetTarget(), ctlColAccessor.GetTarget() );
((ISupportsWebDependencyInjection)childControls).DefaultApplicationContext = defaultApplicationContext;
ctlAccessor.Controls = childControls;
}
catch
{
// this may happen, if the ControlCollection doesn't contain a standard-ctor ControlCollection( Control owner)
return false;
}
return true;
}
开发者ID:fuadm,项目名称:spring-net,代码行数:33,代码来源:InterceptControlCollectionStrategy.cs
示例14: Camera
public Camera(ScriptEngine scriptEngine, IApplicationContext context)
{
_scriptEngine = scriptEngine;
_context = context;
Size = 200;
}
开发者ID:Fedorm,项目名称:core-master,代码行数:7,代码来源:Camera.cs
示例15: GeometryTextOperator
public GeometryTextOperator(List<IGeoVectorData> datas, GeoMapMgr mapMgr, IApplicationContext appContext)
{
this.m_VectorDatas = datas;
this.m_Helper = ServiceHelper.Lookup<IGeoSelectionHelper>(appContext);
this.m_GeoEntityRegionMgr = new GeoEntityRegionMgr(this.m_VectorDatas, mapMgr, this.m_Helper);
this.InitContextMenuStrip();
}
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:GeometryTextOperator.cs
示例16: RegisterContextIfNeeded
private void RegisterContextIfNeeded(IApplicationContext childContext)
{
if (!ContextRegistry.IsContextRegistered(childContext.Name))
{
ContextRegistry.RegisterContext(childContext);
}
}
开发者ID:fgq841103,项目名称:spring-net,代码行数:7,代码来源:SpringWebApiDependencyResolver.cs
示例17: CellMapPropertiesFrm
public CellMapPropertiesFrm(IApplicationContext context, List<NetWorkType> netTypeList)
{
this.m_AllTerminal = new Dictionary<string, Terminal>();
this.m_AllMobility = new Dictionary<string, Mobility>();
this.m_CellNamesInLowercase = new List<string>();
this.m_ServiceContext = null;
this.m_TrafficService = null;
this.modelService = null;
this.m_CellDataGridViewDict = new Dictionary<int, Dictionary<int, List<object>>>();
this.inNode = null;
this.m_ServiceList = null;
this.m_TerminalList = null;
this.m_OldMapName = string.Empty;
this.components = null;
this.m_ServiceContext = context;
this.m_TrafficService = context.Lookup(typeof(ITrafficService).FullName) as ITrafficService;
this.modelService = context.Lookup(typeof(ITrafficMapModelService).FullName) as ITrafficMapModelService;
this.m_TrafficMapAutomation = context.Lookup(typeof(ITrafficMapFunction).FullName) as ITrafficMapFunction;
this.m_netWorkTypeList = netTypeList;
this.m_TrafficForMap = this.m_ServiceContext.Lookup(typeof(ITrafficForMap).FullName) as ITrafficForMap;
this.InitializeComponent();
this.InitCellMap();
this.m_OldMapName = this.m_Map.Name;
this.m_IsNodeAdded = false;
this.Text = TrafficMapResource.TRAFFICMAP_CELL_PROPERTY;
this.LoadCellMapProperty();
this.btnApply.Enabled = false;
}
开发者ID:xiaoyj,项目名称:Space,代码行数:28,代码来源:CellMapPropertiesFrm.cs
示例18: RunExample
protected override void RunExample(IApplicationContext ctx)
{
IFactory factory = ctx.GetObject<IFactory>("standardFactory");
IFactory roboticFactory = ctx.GetObject<IFactory>("roboticFactory");
BuildHouseUsing(factory);
BuildHouseUsing(roboticFactory);
}
开发者ID:Suremaker,项目名称:Spring.FluentContext,代码行数:8,代码来源:AdvancedPropertySetterInjectionExample.cs
示例19: 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");
}
开发者ID:hazzik,项目名称:nh-contrib-everything,代码行数:7,代码来源:HibernateStartedTest.cs
示例20: SetUp
public void SetUp()
{
//LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter();
ctx =
new XmlApplicationContext("assembly://Spring.Data.Tests/Spring.Data/AutoDeclarativeTxTests.xml");
}
开发者ID:ouyangyl,项目名称:MySpringNet,代码行数:7,代码来源:AutoDeclarativeTxTests.cs
注:本文中的IApplicationContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论