protected Kernel(string name) { if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(name)); } Name = name; SubmissionParser = new SubmissionParser(this); _disposables = new CompositeDisposable(); Pipeline = new KernelCommandPipeline(this); AddCaptureConsoleMiddleware(); AddSetKernelMiddleware(); AddDirectiveMiddlewareAndCommonCommandHandlers(); _disposables.Add(Disposable.Create( () => _kernelEvents.OnCompleted() )); }
protected KernelBase() { _disposables = new CompositeDisposable(); Pipeline = new KernelCommandPipeline(this); AddSetKernelMiddleware(); AddDirectiveMiddlewareAndCommonCommandHandlers(); }
protected KernelBase() { _disposables = new CompositeDisposable(); Pipeline = new KernelCommandPipeline(this); AddSetKernelMiddleware(); AddCaptureConsoleMiddleware(); AddDirectiveMiddlewareAndCommonCommandHandlers(); _disposables.Add(_kernelEvents); }
protected KernelBase() { _disposables = new CompositeDisposable(); Pipeline = new KernelCommandPipeline(this); AddSetKernelMiddleware(); AddDirectiveMiddlewareAndCommonCommandHandlers(); _disposables.Add(_idleState.IdleState.Subscribe(idle => { if (idle) { PublishEvent(new KernelIdle()); } else { PublishEvent(new KernelBusy()); } })); }