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


C# IContext.Install方法代码示例

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


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

示例1: Start

 public void Start()
 {
     context = new Context ();
     context.Install<UnitySingleContextBundle> () // Install MVCS Framework
         .Configure<HelloWorldConfig> () // Setup our hello world config
         .Configure (new TransformContextView (this.transform)); // Set this transform to boot up the application when it's alive
 }
开发者ID:robotlegs-sharp,项目名称:unity-hello-world,代码行数:7,代码来源:HelloWorld.cs

示例2: Start

 public void Start()
 {
     // A parent context, handles relationship of child / parent communication
     // It becomes parent when it's child contexts boot up and find that this context's view is parent of them
     parentContext = new Context ();
     parentContext.Install<UnityMultiContextBundle> () // Install MVCS Framework
         .Configure(new TransformContextView(transform));
 }
开发者ID:robotlegs-sharp,项目名称:unity-hello-world,代码行数:8,代码来源:ParentContext.cs

示例3: Start

 public void Start()
 {
     context = new Context ();
     context.Install<UnityMultiContextBundle> () // Install MVCS Framework
         .Configure<SendMessageConfig>() // Configure Send Message Mediation
         .Configure<MessageEventReceive>() // Receives message events from the channel and passes it to it's own event dispatcher
         .Configure<HelloWorldMappingConfig>() // Sets up the hello world model & mediator
         .Configure<AddReceiveMessageButton>() // Adds the receive message view
         .Configure<AddHelloWorldButtons>() // Adds the hello world click and display button
         .Configure (new TransformContextView (this.transform)); // Set this transform to boot up the application when it's alive
 }
开发者ID:robotlegs-sharp,项目名称:unity-hello-world,代码行数:11,代码来源:ContextA.cs

示例4: Extend

		/*============================================================================*/
		/* Public Functions                                                           */
		/*============================================================================*/

		public void Extend(IContext context)
		{
			/**
			 * Robotlegs
			 */
			context.LogLevel = LogLevel.INFO;

			context.Install(typeof(ConsoleLoggingExtension));
			context.Install(typeof(VigilanceExtension));
			context.Install(typeof(InjectableLoggerExtension));
			context.Install(typeof(EventDispatcherExtension));
			context.Install(typeof(ModularityExtension));
			context.Install(typeof(DirectCommandMapExtension));
			context.Install(typeof(EventCommandMapExtension));
			context.Install(typeof(LocalEventMapExtension));
			context.Install(typeof(ViewManagerExtension));
			context.Install(typeof(MediatorMapExtension));
			context.Install(typeof(ViewProcessorMapExtension));

			context.Configure(typeof(FallbackContainerConfig));
		}
开发者ID:mikecann,项目名称:robotlegs-sharp-framework,代码行数:25,代码来源:MVCSBundle.cs

示例5: Extend

		/*============================================================================*/
		/* Public Functions                                                           */
		/*============================================================================*/

		public void Extend (IContext context)
		{
			context.LogLevel = LogLevel.INFO;

			if (Application.isEditor)
			{
				context.Install (typeof(UnitySingletonsExtension));
				context.Install (typeof(UnityMediatorManagerExtension));
			}

			context.Install(typeof(DebugLoggingExtension));
			context.Install(typeof(VigilanceExtension));
			context.Install(typeof(InjectableLoggerExtension));
			context.Install(typeof(UnityParentFinderExtension));
			context.Install(typeof(ContextViewExtension));
			context.Install(typeof(ContextViewTransformExtension));
			context.Install(typeof(EventDispatcherExtension));
			context.Install(typeof(ModularityExtension));
			context.Install(typeof(DirectCommandMapExtension));
			context.Install(typeof(EventCommandMapExtension));
			context.Install(typeof(LocalEventMapExtension));
			context.Install(typeof(ViewManagerExtension));
			context.Install(typeof(MediatorMapExtension));
			context.Install(typeof(ViewProcessorMapExtension));
			context.Install(typeof(StageCrawlerExtension));
			context.Install(typeof(StageSyncExtension));
			context.Install(typeof(UnityViewStateWatcherExtension));

			context.Configure(typeof(UnityStageCrawlerConfig));
			context.Configure(typeof(ContextViewListenerConfig));
		}
开发者ID:mikecann,项目名称:robotlegs-sharp-framework,代码行数:35,代码来源:UnityMVCSBundle.cs


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