Exemplo n.º 1
0
 protected static Task <IEnumerable <CodeActionOperation> > GetOperationsAsync(
     CodeActionWithOptions actionWithOptions,
     object options,
     CancellationToken cancellationToken
     )
 {
     return(Task.Run(
                () => actionWithOptions.GetOperationsAsync(options, cancellationToken),
                cancellationToken
                ));
 }
Exemplo n.º 2
0
 protected Task <IEnumerable <CodeActionOperation> > GetOperationsAsync(CodeActionWithOptions actionWithOptions, object options, CancellationToken cancellationToken)
 {
     return(Task.Run(
                async() => await actionWithOptions.GetOperationsAsync(options, cancellationToken).ConfigureAwait(false), cancellationToken));
 }