예제 #1
0
 public static Task <IKernelCommandResult> SendAsync(
     this IKernel kernel,
     IKernelCommand command)
 {
     return(kernel.SendAsync(command, CancellationToken.None));
 }
예제 #2
0
 public static string Serialize(IKernelCommand command) => Serialize(Create(command));
예제 #3
0
 public KernelCommandNotSupportedException(IKernelCommand command, IKernel kernel)
     : base($"Command type {command} not supported by {kernel}")
 {
 }
예제 #4
0
 protected KernelEventBase(IKernelCommand command = null)
 {
     Command = command ?? KernelInvocationContext.Current?.Command;
 }
예제 #5
0
 private KernelInvocationContext(IKernelCommand command)
 {
     Command = command;
     Result  = new KernelCommandResult(_events);
 }
 protected void DeferCommand(IKernelCommand command)
 {
     _compositeKernel.DeferCommand(command);
 }
예제 #7
0
 public CommandHandled(IKernelCommand command) : base(command)
 {
 }
예제 #8
0
 public SignatureHelpReceived(IKernelCommand command) : base(command)
 {
 }
예제 #9
0
 public DiagnosticsReceived(IKernelCommand command) : base(command)
 {
 }
예제 #10
0
 protected override Task HandleAsync(IKernelCommand command, KernelPipelineContext context)
 {
     return(Handle(command, context));
 }
예제 #11
0
 internal override Task HandleInternalAsync(IKernelCommand command, KernelInvocationContext context)
 {
     return(HandleAsync(command, context));
 }
예제 #12
0
 protected DiagnosticEventBase(
     IKernelCommand command = null) : base(command)
 {
 }
예제 #13
0
 public DiagnosticLogEntryProduced(
     string message,
     IKernelCommand command = null) : base(command)
 {
     Message = message;
 }
예제 #14
0
            public void WriteToInput(IKernelCommand command, int correlationId)
            {
                var message = ToStreamKernelCommand(command, correlationId);

                _input.OnNext(message.Serialize());
            }
예제 #15
0
 public PackageAdded(IKernelCommand command) : this(command.Id)
 {
 }
 public CompletionRequestReceived(IKernelCommand command) : base(command)
 {
 }
예제 #17
0
 public CommandFailed(
     string message,
     IKernelCommand command) : this(null, command, message)
 {
 }
예제 #18
0
파일: KernelBase.cs 프로젝트: godsayyou/try
 public async Task SendOnContextAsync(
     IKernelCommand command,
     KernelPipelineContext invocationContext)
 {
     await Pipeline.InvokeAsync(command, invocationContext);
 }
예제 #19
0
 public CompletionRequestCompleted(IEnumerable <CompletionItem> completionList, IKernelCommand command) : base(command)
 {
     CompletionList = completionList ?? throw new ArgumentNullException(nameof(completionList));
 }
예제 #20
0
파일: KernelBase.cs 프로젝트: godsayyou/try
 protected internal abstract Task HandleAsync(
     IKernelCommand command,
     KernelPipelineContext context);
예제 #21
0
 public Task SendAsync(IKernelCommand command)
 {
     return(SendAsync(command, CancellationToken.None));
 }
예제 #22
0
 public StreamHandler(KernelInvocationContext context, IKernelCommand command)
 {
     _context    = context;
     _command    = command;
     _progresses = new ConcurrentDictionary <int, DisplayedValue>();
 }
예제 #23
0
 public DiagnosticsReceived(IKernelCommand command) : this(command.Id)
 {
 }
예제 #24
0
 public HoverPlainTextProduced(IKernelCommand command, string content, LinePositionSpan?range = null)
     : base(command, content, range)
 {
 }
예제 #25
0
파일: KernelBase.cs 프로젝트: 0xblack/try
 public KernelOperation(IKernelCommand command, TaskCompletionSource <IKernelCommandResult> taskCompletionSource)
 {
     Command = command;
     TaskCompletionSource = taskCompletionSource;
 }
예제 #26
0
 public SignatureHelpReceived(IKernelCommand command) : this(command.Id)
 {
 }
예제 #27
0
 protected KernelCommandEnvelope(IKernelCommand command)
 {
     _command = command ?? throw new ArgumentNullException(nameof(command));
 }
 protected KernelCommandBase()
 {
     Parent = KernelInvocationContext.Current?.Command;
 }