Ejemplo n.º 1
0
 IDebugAdapterClientRegistry IJsonRpcHandlerRegistry <IDebugAdapterClientRegistry> .AddHandler(JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options) =>
 AddHandler(handlerFunc, options);
Ejemplo n.º 2
0
 public sealed override T AddHandler(string method, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options = null)
 {
     Handlers.Add(JsonRpcHandlerDescription.Named(method, handlerFunc, options));
     return((T)(object)this);
 }
 public IDisposable Add(string method, JsonRpcHandlerFactory factory, JsonRpcHandlerOptions options) => Add(method, factory(_resolverContext), options);
Ejemplo n.º 4
0
 IDebugAdapterServerRegistry IJsonRpcHandlerRegistry <IDebugAdapterServerRegistry> .
 AddHandler(string method, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options) => AddHandler(method, handlerFunc, options);
Ejemplo n.º 5
0
 ILanguageServerRegistry IJsonRpcHandlerRegistry <ILanguageServerRegistry> .AddHandler(JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options) =>
 AddHandler(handlerFunc, options);
 public LspHandlerDescriptorDisposable Add(JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options)
 {
     var(descriptors, compositeDisposable) = AddHandler(handlerFactory(_resolverContext), null);
     return(new LspHandlerDescriptorDisposable(descriptors, compositeDisposable));
 }
Ejemplo n.º 7
0
 public LspHandlerDescriptorDisposable Add(string method, JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options)
 {
     var(descriptors, cd) = AddHandler(method, handlerFactory(_serviceProvider), options);
     return(new LspHandlerDescriptorDisposable(descriptors, cd));
 }
Ejemplo n.º 8
0
 public abstract T AddHandler(JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions options = null);
Ejemplo n.º 9
0
 IDisposable IHandlersManager.Add(string method, JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions?options) =>
 Add(method, handlerFactory(_resolverContext), options);
Ejemplo n.º 10
0
 public LspHandlerDescriptorDisposable Add(JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options)
 {
     var(descriptors, compositeDisposable) = AddHandler(handlerFactory(_serviceProvider), null);
     return(new LspHandlerDescriptorDisposable(descriptors, compositeDisposable));
 }
Ejemplo n.º 11
0
 public abstract T AddHandler(string method, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options = null);
 IDisposable IHandlersManager.Add(JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options) => Add(handlerFactory(_resolverContext), options);
 public LspHandlerDescriptorDisposable Add(string method, JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options)
 {
     var(descriptors, cd) = AddHandler(method, handlerFactory(_resolverContext), options);
     return(new LspHandlerDescriptorDisposable(descriptors, cd));
 }
Ejemplo n.º 14
0
 public sealed override T AddHandler(JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options = null)
 {
     Handlers.Add(JsonRpcHandlerDescription.Infer(handlerFunc, options));
     return((T)(object)this);
 }
Ejemplo n.º 15
0
 IDisposable IHandlersManager.Add(JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options) => Add(handlerFactory(_serviceProvider), options);
 public JsonRpcHandlerFactoryDescription(string method, JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options) : base(options)
 {
     Method         = method;
     HandlerFactory = handlerFactory;
 }
Ejemplo n.º 17
0
 IDisposable IHandlersManager.Add(string method, JsonRpcHandlerFactory handlerFactory, JsonRpcHandlerOptions options) =>
 Add(method, handlerFactory(_serviceProvider), options);
Ejemplo n.º 18
0
 ILanguageServerRegistry IJsonRpcHandlerRegistry <ILanguageServerRegistry> .AddHandler(string method, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options) =>
 AddHandler(method, handlerFunc, options);
 public IDisposable Add(JsonRpcHandlerFactory factory, JsonRpcHandlerOptions options) => Add(factory(_resolverContext), options);
 public static IServiceCollection AddJsonRpcHandler(this IServiceCollection services, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions options = null)
 {
     services.AddSingleton(JsonRpcHandlerDescription.Named(null, handlerFunc, options));
     return(services);
 }
 IDebugAdapterClientRegistry IJsonRpcHandlerRegistry <IDebugAdapterClientRegistry> .
 AddHandler(string method, JsonRpcHandlerFactory handlerFunc, JsonRpcHandlerOptions?options)
 {
     return(AddHandler(method, handlerFunc, options));
 }