public void Stop() { if (!_running) { return; } _pc = 0; _events.DebugLeave -= EventsOnDebugLeave; _events.DebugEnter -= EventsOnDebugEnter; _events.MemoryChanged -= EventsOnMemoryChanged; _events.Stop(_debugTarget); _server.UnknownData -= ServerOnUnknownData; _server.DebuggerAttached -= ServerDebuggerAttached; // Start the debug server _server.Stop(); _debugTarget = null; _target = null; _state = State.None; DebugStateChanged?.Invoke(); _running = false; }
public void Start(ITransport transport) { if (_running) { return; } _state = State.None; _target = ATServiceProvider.GetService <STargetService, ITargetService>(); _debugTarget = _target.GetCurrentTarget(); _pc = 0; _ramSpace = _debugTarget.Device.GetAddressSpace("data"); _events.DebugLeave += EventsOnDebugLeave; _events.DebugEnter += EventsOnDebugEnter; _events.MemoryChanged += EventsOnMemoryChanged; _events.Start(_debugTarget); _server.SetTransport(transport); _server.UnknownData += ServerOnUnknownData; _server.DebuggerAttached += ServerDebuggerAttached; // Start the debug server _server.Start(); _output.Activate(Output.SDSerialOutputPane); DebugStateChanged?.Invoke(); _running = true; }
/// <summary> /// Initializes a new instance of the <see cref="TargetsController" /> class /// </summary> /// <param name="mapper"><see cref="IMapper"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> public TargetsController( IMapper mapper, ITargetService targetService) { this.mapper = mapper; this.targetService = targetService; }
public ScriptExecutionService( ITargetService targetService, ICredentialService credentialService, IVariableService variableService, ITargetCommandSender targetCommandSender, IScriptRunner scriptRunner) { if (targetService == null) { throw new ArgumentNullException("targetService"); } _targetService = targetService; if (credentialService == null) { throw new ArgumentNullException("credentialService"); } _credentialService = credentialService; if (targetCommandSender == null) { throw new ArgumentNullException("targetCommandSender"); } _targetCommandSender = targetCommandSender; if (scriptRunner == null) { throw new ArgumentNullException("scriptRunner"); } _scriptRunner = scriptRunner; }
public void SetUp() { IKernel kernel = new StandardKernel(new NinjectSettings {LoadExtensions = false}); kernel.Load(new LinFuModule()); kernel.Load(new TransactionalAnnotationTestModule()); _targetService = kernel.Get<ITargetService>(); _interceptor = (TestTransactionInterceptor) kernel.Get<ITransactionInterceptor>(); }
internal ClusterLocator(TargetClientConfig clientConfig, ITargetService targetService) { if (clientConfig.DecisioningMethod == DecisioningMethod.ServerSide) { return; } this.FetchLocation(targetService); }
protected ScopedProcessor(IServiceScopeFactory serviceScopeFactory, ITargetService targetService, IStatuService statuService , IHttpClientFactory clientFactory, IEmailSender emailSender) : base() { _serviceScopeFactory = serviceScopeFactory; _targetService = targetService; _statuService = statuService; _clientFactory = clientFactory; _emailSender = emailSender; }
/// <summary> /// Initializes a new instance of the <see cref="TargetsController" /> class /// </summary> /// <param name="mapper"><see cref="IMapper"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> public TargetsController( IMapper mapper, ITargetService targetService, IRootDomainService rootDomainService) { this.mapper = mapper; this.targetService = targetService; this.rootDomainService = rootDomainService; }
/// <summary> /// Initializes a new instance of the <see cref="AgentService" /> class /// </summary> /// <param name="unitOfWork"><see cref="IUnitOfWork"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> /// <param name="connectorService"><see cref="IConnectorService"/></param> /// <param name="scriptEngineService"><see cref="IScriptEngineService"/></param> public AgentService(IUnitOfWork unitOfWork, ITargetService targetService, IConnectorService connectorService, IScriptEngineService scriptEngineService) : base(unitOfWork) { this.targetService = targetService; this.connectorService = connectorService; this.scriptEngineService = scriptEngineService; }
/// <summary> /// Initializes a new instance of the <see cref="NotesController" /> class /// </summary> /// <param name="mapper"><see cref="IMapper"/></param> /// <param name="notesService"><see cref="INotesService"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> /// <param name="subdomainService"><see cref="ISubdomainService"/></param> public NotesController( IMapper mapper, INotesService notesService, ITargetService targetService, ISubdomainService subdomainService) { this.mapper = mapper; this.notesService = notesService; this.targetService = targetService; this.subdomainService = subdomainService; }
/// <summary> /// Initializes a new instance of the <see cref="NotesController" /> class /// </summary> /// <param name="notesService"><see cref="INotesService"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> /// <param name="rootDomainService"><see cref="IRootDomainService"/></param> /// <param name="subdomainService"><see cref="ISubdomainService"/></param> public NotesController( INotesService notesService, ITargetService targetService, IRootDomainService rootDomainService, ISubdomainService subdomainService) { this.notesService = notesService; this.targetService = targetService; this.rootDomainService = rootDomainService; this.subdomainService = subdomainService; }
/// <summary> /// Initializes a new instance of the <see cref="SubdomainsController" /> class /// </summary> /// <param name="mapper"><see cref="IMapper"/></param> /// <param name="subdomainService"><see cref="ISubdomainService"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> /// <param name="labelService"><see cref="ILabelService"/></param> public SubdomainsController( IMapper mapper, ISubdomainService subdomainService, ITargetService targetService, ILabelService labelService) { this.mapper = mapper; this.subdomainService = subdomainService; this.targetService = targetService; this.labelService = labelService; }
public UserController(IUserService userService, IUserDealerMapService userDealerMapService, IDealerManpowerTargetService manpowerTargetService, IDealerManpowerService manpowerService, IMasterService masterService, ITargetService targetService) { this.userService = userService; this.userDealerMapService = userDealerMapService; this.manpowerTargetService = manpowerTargetService; this.manpowerService = manpowerService; this.masterService = masterService; this.targetService = targetService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
/// <summary> /// Initializes a new instance of the <see cref="AgentsController" /> class /// </summary> /// <param name="mapper"><see cref="IMapper"/></param> /// <param name="agentService"><see cref="IAgentService"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> /// <param name="categoryService"><see cref="ICategoryService"/></param> /// <param name="subdomainService"><see cref="ISubdomainService"/></param> public AgentsController( IMapper mapper, IAgentService agentService, ITargetService targetService, ICategoryService categoryService, ISubdomainService subdomainService) { this.mapper = mapper; this.agentService = agentService; this.targetService = targetService; this.categoryService = categoryService; this.subdomainService = subdomainService; }
public ReportController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService, IUserRegionStateService regionStateService) { _manpowerService = manpowerService; _userService = userService; _profileService = profileService; _masterService = masterService; _competencyProfileMapService = competencyProfileMapService; _trainingProfileMapService = trainingProfileMapService; _manpowerTargetService = manpowerTargetService; _userDealerMapServiceService = userDealerMapServiceService; _targetService = targetService; _dealerManpowerService = dealerManpowerService; _regionStateService = regionStateService; }
public UserController(IUserService userService, IUserDealerMapService userDealerMapService, IDealerManpowerTargetService manpowerTargetService, IDealerManpowerService manpowerService, IMasterService masterService, ITargetService targetService, IProfileService profileService, ICompetencyProfileMapService competencyProfileMapService) { _userService = userService; _userDealerMapService = userDealerMapService; _manpowerTargetService = manpowerTargetService; _manpowerService = manpowerService; _masterService = masterService; _targetService = targetService; _profileService = profileService; _competencyProfileMapService = competencyProfileMapService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
public ValidationController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService) { this.manpowerService = manpowerService; this.userService = userService; this.profileService = profileService; this.masterService = masterService; this.competencyProfileMapService = competencyProfileMapService; this.trainingProfileMapService = trainingProfileMapService; this.attritionProfileMapService = attritionProfileMapService; this.manpowerTargetService = manpowerTargetService; this.userDealerMapServiceService = userDealerMapServiceService; this.targetService = targetService; this.salaryService = salaryService; this.dealerManpowerService = dealerManpowerService; this.dsmDseTargetMapService = dsmDseTargetMapService; }
/// <summary> /// Initializes a new instance of the <see cref="AgentRunnerService" /> class /// </summary> /// <param name="unitOfWork"><see cref="IUnitOfWork"/></param> /// <param name="agentService"><see cref="IAgentService"/></param> /// <param name="targetService"><see cref="ITargetService"/></param> /// <param name="rootDomainService"><see cref="IRootDomainService"/></param> /// <param name="subdomainService"><see cref="ISubdomainService"/></param> /// <param name="agentRunnerProvider"><see cref="IAgentRunnerProvider"/></param> /// <param name="agentBackgroundService"><see cref="IAgentBackgroundService"/></param> /// <param name="agentRunService"><see cref="IAgentRunService"/></param> public AgentRunnerService(IUnitOfWork unitOfWork, IAgentService agentService, ITargetService targetService, IRootDomainService rootDomainService, ISubdomainService subdomainService, IAgentRunnerProvider agentRunnerProvider, IAgentBackgroundService agentBackgroundService, IAgentRunService agentRunService) : base(unitOfWork) { this.agentService = agentService; this.targetService = targetService; this.rootDomainService = rootDomainService; this.subdomainService = subdomainService; this.agentRunnerProvider = agentRunnerProvider; this.agentBackgroundService = agentBackgroundService; this.agentRunService = agentRunService; }
public DealerController(IDealerManpowerService manpowerService, IUserService userService, IProfileService profileService, IMasterService masterService, ICompetencyProfileMapService competencyProfileMapService, ITrainingProfileMapService trainingProfileMapService, IAttritionProfileMapService attritionProfileMapService, IDealerManpowerTargetService manpowerTargetService, IUserDealerMapService userDealerMapServiceService, ITargetService targetService, IManpowerSalaryService salaryService, IDealerManpowerService dealerManpowerService, IDsmDseTargetMapService dsmDseTargetMapService) { this.manpowerService = manpowerService; this.userService = userService; this.profileService = profileService; this.masterService = masterService; this.competencyProfileMapService = competencyProfileMapService; this.trainingProfileMapService = trainingProfileMapService; this.attritionProfileMapService = attritionProfileMapService; this.manpowerTargetService = manpowerTargetService; this.userDealerMapServiceService = userDealerMapServiceService; this.targetService = targetService; this.salaryService = salaryService; this.dealerManpowerService = dealerManpowerService; this.dsmDseTargetMapService = dsmDseTargetMapService; if (System.Web.HttpContext.Current.Session["BreadcrumbList"] == null) { System.Web.HttpContext.Current.Session["BreadcrumbList"] = new List<BreadcrumbModel>(); } }
private async Task FetchLocationAsync(ITargetService targetService) { var request = new TargetDeliveryRequest.Builder() .SetDecisioningMethod(DecisioningMethod.ServerSide) .SetContext(new Context(ChannelType.Web)) .Build(); var response = await targetService.ExecuteRequestAsync(request); var tntId = response.Response?.Id?.TntId; if (response.Status < HttpStatusCode.OK || response.Status >= HttpStatusCode.Ambiguous || tntId == null) { return; } Interlocked.Exchange(ref this.locationHint, CookieUtils.LocationHintFromTntId(tntId)); }
public DeploymentModule( IExceptionHandler exceptionHandler, IApplicationSettings applicationSettings, ISystemClock systemClock, IConsoleWrapper <DeploymentModule> consoleWrapper, ITargetService targetService, IDeploymentService deploymentService) : base(exceptionHandler) { ActionDictionary .Add(builder => builder.Add("add", AddDeployment) .Add("list", ListDeployments)); DefaultAction = GetDeployment; RequiresArguments = true; WriteLineAsyncAction = (format, args, logLevel) => consoleWrapper.WriteLineAsync(format, true, logLevel, args); this.applicationSettings = applicationSettings; this.systemClock = systemClock; this.consoleWrapper = consoleWrapper; this.targetService = targetService; this.deploymentService = deploymentService; }
public TargetModule( ISystemClock systemClock, IExceptionHandler exceptionHandler, IConsoleWrapper <TargetModule> consoleWrapper, ICacheState <DateTimeOffset> cacheState, ITargetTypeService targetTypeService, ITargetService targetService, IDeploymentCache deploymentCache) : base(exceptionHandler) { ActionDictionary.Add(builder => builder .Add("add", AddTarget) .Add("list", ListTargets)); WriteLineAsyncAction = (format, args, logLevel) => consoleWrapper.WriteLineAsync(format, true, logLevel, args); DefaultAction = GetTarget; RequiresArguments = true; this.systemClock = systemClock; this.consoleWrapper = consoleWrapper; this.cacheState = cacheState; this.targetTypeService = targetTypeService; this.targetService = targetService; this.deploymentCache = deploymentCache; }
public ScriptExecutionService( ITargetService targetService, ICredentialService credentialService, IVariableService variableService, ITargetCommandSender targetCommandSender, IScriptRunner scriptRunner) { if (targetService == null) throw new ArgumentNullException("targetService"); _targetService = targetService; if (credentialService == null) throw new ArgumentNullException("credentialService"); _credentialService = credentialService; if (targetCommandSender == null) throw new ArgumentNullException("targetCommandSender"); _targetCommandSender = targetCommandSender; if (scriptRunner == null) throw new ArgumentNullException("scriptRunner"); _scriptRunner = scriptRunner; }
public ResilienceController(ITargetService targetService) { _targetService = targetService; }
public HomeController(ITargetService targetService, ITargetLogService targetLogService, IMapper mapper) { this._targetService = targetService; this._targetLogService = targetLogService; this._mapper = mapper; }
public TypeWithVirtual(ITargetService service) { _service = service; }
public GetErrorCommand(ITargetService targets) : base(targets, "get last error") { }
public TargetController(ITargetService targetService, IMapper mapper, UserManager <AppUser> userManager, ICustomLogger customLogger) : base(userManager) { _targetService = targetService; _mapper = mapper; _customLogger = customLogger; }
public TargetController() { IBaseRepository rep = Helper.GetRepository(); service = new TargetService(rep); }
public UserRoleCommands(ITargetService targets) { Targets = targets ?? throw new ArgumentNullException(nameof(targets)); }
public Target(ITargetService service, ILogger logger) { _service = service; _logger = logger; }
public DeploymentJobExecutionService( IDeploymentJobService deploymentJobService, IDeploymentJobStepService deploymentJobStepService, IDeploymentJobStepTargetService deploymentJobStepTargetService, IDeploymentPlanStepService deploymentPlanStepService, ITargetGroupService targetGroupService, ITargetGroupEnvironmentService targetGroupEnvironmentService, IProjectTargetService projectTargetService, ITargetService targetService, ICredentialService credentialService, IScriptService scriptService, IScriptExecutionService scriptExecutionService, IProjectEnvironmentService projectEnvironmentService, IVariableService variableService) { if (deploymentJobService == null) throw new ArgumentNullException("deploymentJobService"); _deploymentJobService = deploymentJobService; if (deploymentJobStepService == null) throw new ArgumentNullException("deploymentJobStepService"); _deploymentJobStepService = deploymentJobStepService; if (deploymentJobStepTargetService == null) throw new ArgumentNullException("deploymentJobStepTargetService"); _deploymentJobStepTargetService = deploymentJobStepTargetService; if (deploymentPlanStepService == null) throw new ArgumentNullException("deploymentPlanStepService"); _deploymentPlanStepService = deploymentPlanStepService; if (targetGroupService == null) throw new ArgumentNullException("targetGroupService"); _targetGroupService = targetGroupService; if (targetGroupEnvironmentService == null) throw new ArgumentNullException("targetGroupEnvironmentService"); _targetGroupEnvironmentService = targetGroupEnvironmentService; if (projectTargetService == null) throw new ArgumentNullException("projectTargetService"); _projectTargetService = projectTargetService; if (targetService == null) throw new ArgumentNullException("targetService"); _targetService = targetService; if (credentialService == null) throw new ArgumentNullException("credentialService"); _credentialService = credentialService; if (scriptService == null) throw new ArgumentNullException("scriptService"); _scriptService = scriptService; if (scriptExecutionService == null) throw new ArgumentNullException("scriptExecutionService"); _scriptExecutionService = scriptExecutionService; if (projectEnvironmentService == null) throw new ArgumentNullException("projectEnvironmentService"); _projectEnvironmentService = projectEnvironmentService; if (variableService == null) throw new ArgumentNullException("variableService"); _variableService = variableService; }
public ListApplicationCommand(ITargetService targets) : base(targets, "lists application registered in the platform") { }
public TypeWithDependency(ITargetService service) { _service = service; }
public ScheduledProcessor(IServiceScopeFactory serviceScopeFactory, ITargetService targetService, IStatuService statuService , IHttpClientFactory clientFactory, IEmailSender emailSender) : base(serviceScopeFactory, targetService, statuService, clientFactory, emailSender) { _schedule = CrontabSchedule.Parse(Schedule); _nextRun = _schedule.GetNextOccurrence(DateTime.Now); }
public TestCommands(ITargetService targets, ITestService server) { Targets = targets ?? throw new ArgumentNullException(nameof(targets)); Server = server ?? throw new ArgumentNullException(nameof(server)); }
public RegisterCommand(ITargetService targets) : base(targets, "register command target") { Server = targets ?? throw new System.ArgumentNullException(nameof(targets)); }
public ListUserGroupCommand(ITargetService targets) : base(targets, "lists user groups registered in the platform") { }