Пример #1
0
        private async Task RegisterAsync(string solutionFilePath)
        {
            try
            {
                string serverName = GetServerName(solutionFilePath);
                Log.Debug($"Register: {serverName}");

                apiIpcServer?.Dispose();
                apiIpcServer = new ApiIpcServer(serverName);

                await apiIpcServer.PublishServiceAsync <IVsExtensionApi>(vsExtensionApiService);

                Log.Debug($"Registered: {serverName}");
            }
            catch (Exception e)
            {
                Log.Error($"Error {e}");
                throw;
            }
        }