/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/LspServices/ExportLspServiceFactoryAttribute.cs
21 строка
1 KB
Cyrus Najmabadi
Seal certain types in LSP layer
08 май 2025, 23:13
08 май 2025, 23:13
48b3103
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Composition; namespace Microsoft.CodeAnalysis.LanguageServer; /// <summary> /// Exports an <see cref="ILspServiceFactory"/> that is used by LSP server instances /// to create new instances of the <see cref="ILspService"/> each time an LSP server is started. /// /// The services created by the <see cref="ILspServiceFactory"/> are disposed of by <see cref="LspServices"/> /// when the LSP server instance shuts down. /// </summary> [AttributeUsage(AttributeTargets.Class, AllowMultiple = false), MetadataAttribute] internal class ExportLspServiceFactoryAttribute( Type serviceType, string contractName, WellKnownLspServerKinds serverKind = WellKnownLspServerKinds.Any) : AbstractExportLspServiceAttribute( serviceType, contractName, contractType: typeof(ILspServiceFactory), isStateless: false, serverKind);