Пример #1
0
        static async Task Main(string[] args)
        {
            //while (!System.Diagnostics.Debugger.IsAttached)
            //{
            //	await Task.Delay(100);
            //}

            var server = new LangServer(Console.OpenStandardInput(), Console.OpenStandardOutput(), new LoggerFactory());

            server.AddHandler(new FacilityServiceDefinitionDocumentHandler(server));

            await server.Initialize();

            await server.WaitForExit;
        }
Пример #2
0
        private static async Task Main()
        {
            ////while (!System.Diagnostics.Debugger.IsAttached)
            ////{
            ////	await Task.Delay(100);
            ////}

            var server = new LangServer(Console.OpenStandardInput(), Console.OpenStandardOutput(), new LoggerFactory());

            var serviceInfos = new Dictionary <Uri, ServiceInfo>();

            server.AddHandler(new FsdSyncHandler(server, serviceInfos));
            server.AddHandler(new FsdDefinitionHandler(server, serviceInfos));
            server.AddHandler(new FsdHoverHandler(server, serviceInfos));

            await server.Initialize();

            await server.WaitForExit;
        }