• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ICommandExecutor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: OrderingHistoryCommandService

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


示例17: VagrantService

        public VagrantService(ICommandExecutor commandExecutor, IFileSystem fileSystem, IConfigurationSettings configuration)
        {
            _commandExecutor = commandExecutor;
            _fileSystem = fileSystem;
            _configuration = configuration;

            var vagrantFound = false;
            var customVagrantPath = _configuration.PathToVagrant;
            if (!string.IsNullOrWhiteSpace(customVagrantPath))
            {
                if (!_fileSystem.file_exists(customVagrantPath))
                {
                    this.Log().Warn("Unable to find vagrant at the path specified. Using default instance.");
                }
                else
                {
                    this.Log().Warn("Using custom vagrant path at '{0}'.".format_with(customVagrantPath));
                    vagrantFound = true;
                    _vagrantExecutable = customVagrantPath;
                }
            }

            if (!vagrantFound)
            {
                _vagrantExecutable = @"C:\HashiCorp\Vagrant\bin\vagrant.exe";
                if (!_fileSystem.file_exists(_vagrantExecutable))
                {
                    _vagrantExecutable = _fileSystem.get_executable_path("vagrant.exe");
                }
            }

            //use_vagrant_directly();
        }
开发者ID:pkdevboxy,项目名称:package-verifier,代码行数:33,代码来源:VagrantService.cs


示例18: AutomaticUninstallerService

 public AutomaticUninstallerService(IChocolateyPackageInformationService packageInfoService, IFileSystem fileSystem, IRegistryService registryService, ICommandExecutor commandExecutor)
 {
     _packageInfoService = packageInfoService;
     _fileSystem = fileSystem;
     _registryService = registryService;
     _commandExecutor = commandExecutor;
     WaitForCleanup = true;
 }
开发者ID:tirolo,项目名称:choco,代码行数:8,代码来源:AutomaticUninstallerService.cs


示例19: UpdateSummonersWorker

        public UpdateSummonersWorker(ICommandExecutor commandExecutor, IUpdateSummonerQueue updateSummonerQueue)
        {
            Guard.NotNull(commandExecutor, nameof(commandExecutor));
            Guard.NotNull(updateSummonerQueue, nameof(updateSummonerQueue));

            this._commandExecutor = commandExecutor;
            this._updateSummonerQueue = updateSummonerQueue;
        }
开发者ID:LeagueLogbook,项目名称:Logbook,代码行数:8,代码来源:UpdateSummonersWorker.cs


示例20: EpisodeModule

        public EpisodeModule(ICommandExecutor commandExecutor, IEpisodeService episodeService)
            : base(episodeService, commandExecutor)
        {
            _episodeService = episodeService;

            GetResourceAll = GetEpisodes;
            UpdateResource = SetMonitored;
        }
开发者ID:BO45,项目名称:NzbDrone,代码行数:8,代码来源:EpisodeModule.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ICommandFactory类代码示例发布时间:2022-05-24
下一篇:
C# ICommandContext类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap