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


C# IApplicationContext类代码示例

本文整理汇总了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;
        }
开发者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: 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

示例13: 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

示例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);
        }
开发者ID:jfromaniello,项目名称:prismcontrib,代码行数:34,代码来源:SpringBootstrapper.cs

示例15: SetUp

 public void SetUp()
 {
     string configLocation =
         ReadOnlyXmlTestResource.GetFilePath("objectNameAutoProxyCreatorTests.xml",
                                             typeof (ObjectNameAutoProxyCreatorTests));
     ctx = new XmlApplicationContext(configLocation);
 }
开发者ID:ouyangyl,项目名称:MySpringNet,代码行数:7,代码来源:ObjectNameAutoProxyCreatorTests.cs


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