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


C# ICommandExecutor类代码示例

本文整理汇总了C#中ICommandExecutor的典型用法代码示例。如果您正苦于以下问题:C# ICommandExecutor类的具体用法?C# ICommandExecutor怎么用?C# ICommandExecutor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: RemoteWebDriver

        /// <summary>
        /// Initializes a new instance of the <see cref="RemoteWebDriver"/> class
        /// </summary>
        /// <param name="commandExecutor">An <see cref="ICommandExecutor"/> object which executes commands for the driver.</param>
        /// <param name="desiredCapabilities">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
        public RemoteWebDriver(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
        {
            this.executor = commandExecutor;
            this.StartClient();
            this.StartSession(desiredCapabilities);
            this.mouse = new RemoteMouse(this);
            this.keyboard = new RemoteKeyboard(this);

            if (this.capabilities.HasCapability(CapabilityType.SupportsApplicationCache))
            {
                object appCacheCapability = this.capabilities.GetCapability(CapabilityType.SupportsApplicationCache);
                if (appCacheCapability is bool && (bool)appCacheCapability)
                {
                    this.appCache = new RemoteApplicationCache(this);
                }
            }

            if (this.capabilities.HasCapability(CapabilityType.SupportsLocationContext))
            {
                object locationContextCapability = this.capabilities.GetCapability(CapabilityType.SupportsLocationContext);
                if (locationContextCapability is bool && (bool)locationContextCapability)
                {
                this.locationContext = new RemoteLocationContext(this);
                }
            }

            if (this.capabilities.HasCapability(CapabilityType.SupportsWebStorage))
            {
                object webContextCapability = this.capabilities.GetCapability(CapabilityType.SupportsWebStorage);
                if (webContextCapability is bool && (bool)webContextCapability)
                {
                    this.storage = new RemoteWebStorage(this);
                }
            }
        }
开发者ID:DawidJanczak,项目名称:selenium,代码行数:40,代码来源:RemoteWebDriver.cs

示例2: SliderCommandService

 public SliderCommandService(ISliderService sliderService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
   _sliderService = sliderService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:SliderCommandService.cs

示例3: CommandExecutorContext

		public CommandExecutorContext(ICommandExecutor executor, CommandLine commandLine, CommandTreeNode commandNode, object parameter) : base(executor, null, commandNode, parameter)
		{
			if(commandLine == null)
				throw new ArgumentNullException("commandLine");

			_commandLine = commandLine;
		}
开发者ID:Flagwind,项目名称:Zongsoft.CoreLibrary,代码行数:7,代码来源:CommandExecutorContext.cs

示例4: CutoffModule

 public CutoffModule(IEpisodeService episodeService, IEpisodeCutoffService episodeCutoffService, ISeriesRepository seriesRepository, ICommandExecutor commandExecutor)
     : base(episodeService, commandExecutor, "wanted/cutoff")
 {
     _episodeCutoffService = episodeCutoffService;
     _seriesRepository = seriesRepository;
     GetResourcePaged = GetCutoffUnmetEpisodes;
 }
开发者ID:niel,项目名称:NzbDrone,代码行数:7,代码来源:CutoffModule.cs

示例5: Setup

 public void Setup()
 {
     _commandExecutor = MockRepository.GenerateMock<ICommandExecutor>();
     _messageManager = MockRepository.GenerateMock<IMessageManager>();
     _referrerProvider = MockRepository.GenerateMock<IReferrerProvider>();
     _controller = new DummyExecuteController( _commandExecutor, _messageManager, _referrerProvider );
 }
开发者ID:RendaniTshinakaho,项目名称:PseudoCQRS,代码行数:7,代码来源:BaseExecuteControllerTests.cs

示例6: PersonCommandService

 public PersonCommandService(IPersonService personService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
    _personService = personService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:PersonCommandService.cs

示例7: ExchangeRateCommandService

 public ExchangeRateCommandService(IExchangeRateService exchangeRateService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
   _exchangeRateService = exchangeRateService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:ExchangeRateCommandService.cs

示例8: WindowsFeatureService

 public WindowsFeatureService(ICommandExecutor commandExecutor, INugetService nugetService, IFileSystem fileSystem)
 {
     _commandExecutor = commandExecutor;
     _nugetService = nugetService;
     _fileSystem = fileSystem;
     set_cmd_args_dictionaries();
 }
开发者ID:pkdevboxy,项目名称:choco,代码行数:7,代码来源:WindowsFeatureService.cs

示例9: PersonReportService

 public PersonReportService(ICommandExecutor executor, IRepository<Domain.Entity.User> userRepository, IPersonService personService)
 {
   _executor = executor;
   _personService = personService;
   _userRepository = userRepository;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:PersonReportService.cs

示例10: TypeMemberCommandService

 public TypeMemberCommandService(ITypeMemberService typeMemberService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
   _typeMemberService = typeMemberService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:TypeMemberCommandService.cs

示例11: ContentMenuCommandService

 public ContentMenuCommandService(IContentMenuService contentMenuService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
   _contentMenuService = contentMenuService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:ContentMenuCommandService.cs

示例12: MissingModule

 public MissingModule(IEpisodeService episodeService, ISeriesRepository seriesRepository, ICommandExecutor commandExecutor)
     : base(episodeService, commandExecutor, "wanted/missing")
 {
     _episodeService = episodeService;
     _seriesRepository = seriesRepository;
     GetResourcePaged = GetMissingEpisodes;
 }
开发者ID:niel,项目名称:NzbDrone,代码行数:7,代码来源:MissingModule.cs

示例13: RedownloadFailedDownloadService

 public RedownloadFailedDownloadService(IConfigService configService, IEpisodeService episodeService, ICommandExecutor commandExecutor, Logger logger)
 {
     _configService = configService;
     _episodeService = episodeService;
     _commandExecutor = commandExecutor;
     _logger = logger;
 }
开发者ID:Kiljoymccoy,项目名称:NzbDrone,代码行数:7,代码来源:RedownloadFailedDownloadService.cs

示例14: WebSiteLinkCommandService

 public WebSiteLinkCommandService(IWebSiteLinkService webSiteLinkService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
   _webSiteLinkService = webSiteLinkService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
开发者ID:johnpipo1712,项目名称:Misuka,代码行数:7,代码来源:WebSiteLinkCommandService.cs

示例15: CommandServicePresenter

   public CommandServicePresenter(IView view, IService service,
 ICommandExecutor executor)
   {
       _view = view;
         _service = service;
         _executor = executor;
   }
开发者ID:butaji,项目名称:Sapphire,代码行数:7,代码来源:CommandServicePresenter.cs


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