public RazorOmniSharpRequestInvokerTest() { Options = new RequestInvokerOptions( requestTimeout: TimeSpan.FromSeconds(10), supportContentModified: false, concurrency: int.MaxValue); OutputHandler = new TestOutputHandler(); RequestRouter = new TestRequestRouter(routeDelay: TimeSpan.Zero); RequestDescriptor = new TestRequestDescriptor("textDocument/didOpen"); Request = new Request(id: "serial", RequestDescriptor.Default.Method, @params: null); NotificationDescriptor = new TestRequestDescriptor("textDocument/didChange"); Notification = new Notification(NotificationDescriptor.Default.Method, @params: null); }
public RazorOmniSharpRequestInvoker( RequestInvokerOptions options, IOutputHandler outputHandler, IRequestRouter <IHandlerDescriptor?> requestRouter, IRequestProcessIdentifier requestProcessIdentifier, ILoggerFactory loggerFactory) { _requestTimeout = options.RequestTimeout; _outputHandler = outputHandler; _requestRouter = requestRouter; _requestProcessIdentifier = requestProcessIdentifier; _requestScheduler = new JsonRpcRequestScheduler(loggerFactory); _logger = loggerFactory.CreateLogger <RazorOmniSharpRequestInvoker>(); }