private void Initialize() { this.validationService = new ValidationService(); this.telnetService = new TelnetService(); this.configuration = new UserServiceConfiguration().UserProfileConfiguration; this.appSettings = new AppSettings(); this.context = SynchronizationContext.Current ?? new SynchronizationContext(); }
public IActionResult StartTelnet(int id, [FromServices] ITelnetService telnet) { return(AppServiceOrBadRequest( id, AppServiceTypes.Telnet, telnet )); }