Interface IBrokeredServiceManifest
- Namespace
- Microsoft.ServiceHub.Framework.Services
- Assembly
- Microsoft.ServiceHub.Framework.dll
Exposes details about availability of services proffered to the client. Obtainable from the RemoteBrokeredServiceManifest service.
[JsonRpcContract]
[GenerateShape(IncludeMethods = MethodShapeFlags.PublicInstance)]
[JsonRpcProxyMapping(typeof(Microsoft_ServiceHub_Framework_Services_IBrokeredServiceManifest_Proxy))]
[TypeShapeProvider(typeof(IBrokeredServiceManifest.__LocalTypeShapeProvider__))]
public interface IBrokeredServiceManifest
Remarks
The results are based on the caller. For example if an instance of this service is obtained by a Live Share guest the results from method calls may vary from an instance of this service obtained by a Codespaces client.
Methods
GetAvailableServicesAsync(CancellationToken)
Gets the list of services that are available from an IServiceBroker.
ValueTask<IReadOnlyCollection<ServiceMoniker>> GetAvailableServicesAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA cancellation token.
Returns
- ValueTask<IReadOnlyCollection<ServiceMoniker>>
A collection of service monikers.
GetAvailableVersionsAsync(string, CancellationToken)
Gets the collection of versions available for the specified service from an IServiceBroker.
ValueTask<ImmutableSortedSet<Version?>> GetAvailableVersionsAsync(string serviceName, CancellationToken cancellationToken)
Parameters
serviceNamestringThe Name from the ServiceMoniker for the service to get information about.
cancellationTokenCancellationTokenA cancellation token.
Returns
- ValueTask<ImmutableSortedSet<Version>>
A collection of versions available for the named service. A null element may be in the collection if the server may consider a service request without regard to the requested version.