public static Task <IKernelCommandResult> SendAsync( this IKernel kernel, IKernelCommand command) { return(kernel.SendAsync(command, CancellationToken.None)); }
public static string Serialize(IKernelCommand command) => Serialize(Create(command));
public KernelCommandNotSupportedException(IKernelCommand command, IKernel kernel) : base($"Command type {command} not supported by {kernel}") { }
protected KernelEventBase(IKernelCommand command = null) { Command = command ?? KernelInvocationContext.Current?.Command; }
private KernelInvocationContext(IKernelCommand command) { Command = command; Result = new KernelCommandResult(_events); }
protected void DeferCommand(IKernelCommand command) { _compositeKernel.DeferCommand(command); }
public CommandHandled(IKernelCommand command) : base(command) { }
public SignatureHelpReceived(IKernelCommand command) : base(command) { }
public DiagnosticsReceived(IKernelCommand command) : base(command) { }
protected override Task HandleAsync(IKernelCommand command, KernelPipelineContext context) { return(Handle(command, context)); }
internal override Task HandleInternalAsync(IKernelCommand command, KernelInvocationContext context) { return(HandleAsync(command, context)); }
protected DiagnosticEventBase( IKernelCommand command = null) : base(command) { }
public DiagnosticLogEntryProduced( string message, IKernelCommand command = null) : base(command) { Message = message; }
public void WriteToInput(IKernelCommand command, int correlationId) { var message = ToStreamKernelCommand(command, correlationId); _input.OnNext(message.Serialize()); }
public PackageAdded(IKernelCommand command) : this(command.Id) { }
public CompletionRequestReceived(IKernelCommand command) : base(command) { }
public CommandFailed( string message, IKernelCommand command) : this(null, command, message) { }
public async Task SendOnContextAsync( IKernelCommand command, KernelPipelineContext invocationContext) { await Pipeline.InvokeAsync(command, invocationContext); }
public CompletionRequestCompleted(IEnumerable <CompletionItem> completionList, IKernelCommand command) : base(command) { CompletionList = completionList ?? throw new ArgumentNullException(nameof(completionList)); }
protected internal abstract Task HandleAsync( IKernelCommand command, KernelPipelineContext context);
public Task SendAsync(IKernelCommand command) { return(SendAsync(command, CancellationToken.None)); }
public StreamHandler(KernelInvocationContext context, IKernelCommand command) { _context = context; _command = command; _progresses = new ConcurrentDictionary <int, DisplayedValue>(); }
public DiagnosticsReceived(IKernelCommand command) : this(command.Id) { }
public HoverPlainTextProduced(IKernelCommand command, string content, LinePositionSpan?range = null) : base(command, content, range) { }
public KernelOperation(IKernelCommand command, TaskCompletionSource <IKernelCommandResult> taskCompletionSource) { Command = command; TaskCompletionSource = taskCompletionSource; }
public SignatureHelpReceived(IKernelCommand command) : this(command.Id) { }
protected KernelCommandEnvelope(IKernelCommand command) { _command = command ?? throw new ArgumentNullException(nameof(command)); }
protected KernelCommandBase() { Parent = KernelInvocationContext.Current?.Command; }