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


C# Controller.Start方法代码示例

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


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

示例1: Main

        public static void Main(string[] args)
        {
            /*var argsList = args.ToList();
            if (argsList.Contains("--seed"))
            {
                if (!AppEnvDebug)
                    throw new Exception("Running DB seeds is a debug only feature");

                var seedToRun = argsList.ElementAt(argsList.IndexOf("--seed") + 1);
                //AppDatabase.SeedsRunner.RunSeed(seedToRun);
                //AccountDatabase.SeedsRunner.RunSeed(seedToRun);
                return;
            }*/
            
            if (AppEnvDebug)
            {
                // Allow self-signed SSL certs in debug mode
                ServicePointManager.ServerCertificateValidationCallback +=
                        (sender, certificate, chain, sslPolicyErrors) => true;
            }

            AppModel.Init();
            
            _controller = new Controller();
            _controller.Start();
        }
开发者ID:bowmark,项目名称:allauth.desktop,代码行数:26,代码来源:Program.cs

示例2: Start

 public static void Start(string name)
 {
     var controller = new Controller
                          {
                              Configuration = @"config.xml",
                              CcTrayPassword = GetKey("CcTrayPassword", "**Fish22"),
                              CcTrayUsername = GetKey("CcTrayUsername", "owainp"),
                              HttpTimeout = Convert.ToInt32(GetKey("HttpTimeout", "20")),
                              PollTime = Convert.ToInt32(GetKey("PollTime", "10")),
                              CcTrayUrl = GetKey("CcTrayUrl", "http://build.london.ttldev.local:8153/go/cctray.xml")
                          };
     controller.Start();
 }
开发者ID:perryofpeek,项目名称:CCSkype,代码行数:13,代码来源:EntryPoint.cs

示例3: test

 public void test()
 {
     var controller = new Controller();
     var stopperMock = MockRepository.GenerateMock<IStopper>();
     stopperMock.Expect(x => x.Stop).Return(false).Repeat.Once();
     stopperMock.Expect(x => x.Stop).Return(true).Repeat.Once();
     controller.Container.Kernel.AddComponentInstance<IStopper>(stopperMock);
     controller.CcTrayUrl = "http://localhost/Cctray.xml";
     controller.CcTrayUsername = "username";
     controller.CcTrayPassword = "password";
     controller.HttpTimeout = 30;
     controller.PollTime = 1;
     controller.Configuration = @"TestData/Config/RealUsers.xml";
     controller.Start();
     stopperMock.VerifyAllExpectations();
 }
开发者ID:perryofpeek,项目名称:CCSkype,代码行数:16,代码来源:With_Start.cs

示例4: Playground

		public void Playground()
		{
			ClientSetting clientSetting = new ClientSetting
			{
				Enabled = true,
				Name = "local api",
				Ping = new PingSetting
				{
					Interval = 5000
				}
			};

			Controller controller = new Controller(clientSetting, null, null, null);

			controller.Start();

			Thread.Sleep(Timeout.Infinite);
		}
开发者ID:jeremy001181,项目名称:Rbi.Property.HealthMonitoring,代码行数:18,代码来源:ControllerTests.cs


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