public void Configure( IApplicationBuilder app, IHostingEnvironment env, LifetimeManager lifetimeManager, InterpreterManager interpreterManager, SecurityManager securityManager ) { lifetimeManager.Initialize(); interpreterManager.Initialize(); app.UseWebSockets(new WebSocketOptions { ReplaceFeature = true, KeepAliveInterval = TimeSpan.FromMilliseconds(1000000000), ReceiveBufferSize = 0x10000 }); var routeBuilder = new RouteBuilder(app, new RouteHandler(RemoteUriHelper.HandlerAsync)); routeBuilder.MapRoute("help_and_shiny", "remoteuri"); app.UseRouter(routeBuilder.Build()); app.UseBasicAuthentication(options => { options.Events = new BasicEvents { OnSignIn = securityManager.SignInAsync }; }); app.Use((context, next) => { if (!context.User.Identity.IsAuthenticated) { return context.Authentication.ChallengeAsync(); } else { return next(); } }); app.UseMvc(); }
public Interpreter(InterpreterManager manager, string id, string path, string binPath, Version version) { Manager = manager; Id = id; Path = path; BinPath = binPath; Version = version; }
public Interpreter(InterpreterManager manager, string id, string name, string path, string binPath, Version version) { Manager = manager; Id = id; Name = name; Path = path; BinPath = binPath; Version = version; }
public Interpreter(InterpreterManager manager, string id, string name, IRInterpreterInfo rInterpreterInfo) { Manager = manager; Id = id; Name = name; Path = rInterpreterInfo.InstallPath; BinPath = rInterpreterInfo.BinPath; Version = rInterpreterInfo.Version; RInterpreterInfo = rInterpreterInfo; }
public SessionManager( InterpreterManager interpManager, IOptions<LoggingOptions> loggingOptions, ILogger<Session> sessionLogger, ILogger<MessagePipe> messageLogger, ILogger<Process> hostOutputLogger ) { _interpManager = interpManager; _loggingOptions = loggingOptions.Value; _sessionLogger = sessionLogger; if (_loggingOptions.LogPackets) { _messageLogger = messageLogger; } if (_loggingOptions.LogHostOutput) { _hostOutputLogger = hostOutputLogger; } }
public InterpretersController(InterpreterManager interpManager) { _interpManager = interpManager; }
public SessionsController(InterpreterManager interpManager, SessionManager sessionManager) { _interpManager = interpManager; _sessionManager = sessionManager; }