public async Task SendAsync(KernelEvent kernelEvent, CancellationToken cancellationToken) { await _sender.SendAsync("kernelEventFromServer", KernelEventEnvelope.Serialize(KernelEventEnvelope.Create(kernelEvent)), cancellationToken : cancellationToken); }
public CommandOrEvent(KernelEvent kernelEvent, bool isParseError = false) { Command = null; Event = kernelEvent ?? throw new ArgumentNullException(nameof(kernelEvent)); IsParseError = isParseError; }
public Task SendAsync(KernelEvent kernelEvent, CancellationToken cancellationToken) { throw new NotImplementedException(); }
protected abstract void OnKernelEventReceived( KernelEvent @event, JupyterRequestContext context);