protected override async Task HandleSubmitCode(
            SubmitCode command,
            KernelInvocationContext context)
        {
            var scriptContent = new ScriptContent(command.Code);

            await context.DisplayAsync(scriptContent);
        }
Beispiel #2
0
        public async Task HandleAsync(
            SubmitCode command,
            KernelInvocationContext context)
        {
            var scriptContent = new ScriptContent(command.Code);

            await context.DisplayAsync(scriptContent);
        }
        public virtual Task ExecuteClientScript(string code, KernelInvocationContext context)
        {
            var scriptContent = new ScriptContent(code);

            context.Display(scriptContent);

            return(Task.CompletedTask);
        }
        public Task HandleAsync(
            SubmitCode command,
            KernelInvocationContext context)
        {
            var scriptContent = new ScriptContent(command.Code);

            context.Display(scriptContent);

            return(Task.CompletedTask);
        }