3 instantiations of ServiceDescriptor
Microsoft.CodeAnalysis.Remote.Workspaces (3)
ServiceDescriptor.cs (3)
64=> new(CreateMoniker(componentName, simpleName, suffix), componentName, simpleName, options, featureDisplayNameProvider, clientInterface); 67=> new(CreateMoniker(componentName, simpleName, suffix), componentName, simpleName, RemoteSerializationOptions.Default, featureDisplayNameProvider, clientInterface: null); 73=> new ServiceDescriptor(this);
24 references to ServiceDescriptor
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\BrokeredServiceBase.FactoryBase.cs (1)
99var descriptor = ServiceDescriptors.Instance.GetServiceDescriptorForServiceFactory(typeof(TService));
Microsoft.CodeAnalysis.Remote.Workspaces (22)
BrokeredServiceConnection.cs (2)
46private readonly ServiceDescriptor _serviceDescriptor; 54ServiceDescriptor serviceDescriptor,
ProjectSystem\WorkspaceProjectFactoryServiceDescriptor.cs (2)
10public static readonly ServiceDescriptor ServiceDescriptor = ServiceDescriptor.CreateInProcServiceDescriptor(ServiceDescriptors.ComponentName, ServiceName, suffix: "", ServiceDescriptors.GetFeatureDisplayName);
ServiceDescriptor.cs (3)
54private ServiceDescriptor(ServiceDescriptor copyFrom) 63public static ServiceDescriptor CreateRemoteServiceDescriptor(string componentName, string simpleName, string suffix, RemoteSerializationOptions options, Func<string, string> featureDisplayNameProvider, Type? clientInterface) 66public static ServiceDescriptor CreateInProcServiceDescriptor(string componentName, string simpleName, string suffix, Func<string, string> featureDisplayNameProvider)
ServiceDescriptors.cs (12)
93private readonly ImmutableDictionary<Type, (ServiceDescriptor descriptorCoreClr64, ServiceDescriptor descriptorCoreClr64ServerGC)> _descriptors; 119private (ServiceDescriptor descriptorCoreClr64, ServiceDescriptor descriptorCoreClr64ServerGC) CreateDescriptors(Type serviceInterface, Type? callbackInterface) 124var descriptorCoreClr64 = ServiceDescriptor.CreateRemoteServiceDescriptor(_componentName, simpleName, SuffixCoreClr + Suffix64, Options, _featureDisplayNameProvider, callbackInterface); 125var descriptorCoreClr64ServerGC = ServiceDescriptor.CreateRemoteServiceDescriptor(_componentName, simpleName, SuffixCoreClr + Suffix64 + SuffixServerGC, Options, _featureDisplayNameProvider, callbackInterface); 134public ServiceDescriptor GetServiceDescriptorForServiceFactory(Type serviceType) 137public ServiceDescriptor GetServiceDescriptor(Type serviceType, RemoteProcessConfiguration configuration) 169public ImmutableDictionary<Type, (ServiceDescriptor descriptorCoreClr64, ServiceDescriptor descriptorCoreClr64ServerGC)> Descriptors
ServiceHubRemoteHostClient.cs (1)
114var descriptor = descriptors.GetServiceDescriptor(typeof(T), Configuration);
SolutionAssetProvider.cs (2)
22internal static ServiceDescriptor ServiceDescriptor { get; } = ServiceDescriptor.CreateInProcServiceDescriptor(ServiceDescriptors.ComponentName, ServiceName, suffix: "", ServiceDescriptors.GetFeatureDisplayName);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\InProcRemostHostClient.cs (1)
60var descriptor = ServiceDescriptors.Instance.GetServiceDescriptor(typeof(T), RemoteProcessConfiguration.ServerGC);