GlobalBrokeredServiceContainer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GlobalBrokeredServiceContainer(ImmutableDictionary<ServiceMoniker,ServiceRegistration>, Boolean, JoinableTaskFactory, TraceSource) |
Initializes a new instance of the GlobalBrokeredServiceContainer class. |
GlobalBrokeredServiceContainer(ImmutableDictionary<ServiceMoniker,ServiceRegistration>, Boolean, TelemetrySession, JoinableTaskFactory, TraceSource) |
Initializes a new instance of the GlobalBrokeredServiceContainer class. |
GlobalBrokeredServiceContainer(ImmutableDictionary<ServiceMoniker,ServiceRegistration>, Boolean, JoinableTaskFactory, TraceSource)
Initializes a new instance of the GlobalBrokeredServiceContainer class.
protected GlobalBrokeredServiceContainer (System.Collections.Immutable.ImmutableDictionary<Microsoft.ServiceHub.Framework.ServiceMoniker,Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceRegistration> services, bool isClientOfExclusiveServer, Microsoft.VisualStudio.Threading.JoinableTaskFactory? joinableTaskFactory, System.Diagnostics.TraceSource traceSource);
new Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer : System.Collections.Immutable.ImmutableDictionary<Microsoft.ServiceHub.Framework.ServiceMoniker, Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceRegistration> * bool * Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.Diagnostics.TraceSource -> Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer
Protected Sub New (services As ImmutableDictionary(Of ServiceMoniker, ServiceRegistration), isClientOfExclusiveServer As Boolean, joinableTaskFactory As JoinableTaskFactory, traceSource As TraceSource)
Parameters
A map of service monikers to their registration details. Only registered services will be obtainable from the IServiceBroker returned from methods on this class.
- isClientOfExclusiveServer
- Boolean
true
when this process is or will be connected to a dedicated, trusted server (e.g. a Codespace) that will provide the environment to this client; false
otherwise.
- joinableTaskFactory
- JoinableTaskFactory
An optional JoinableTaskFactory to use when scheduling async work, to avoid deadlocks in an application with a main thread.
- traceSource
- TraceSource
A means of logging.
Applies to
GlobalBrokeredServiceContainer(ImmutableDictionary<ServiceMoniker,ServiceRegistration>, Boolean, TelemetrySession, JoinableTaskFactory, TraceSource)
Initializes a new instance of the GlobalBrokeredServiceContainer class.
protected:
GlobalBrokeredServiceContainer(System::Collections::Immutable::ImmutableDictionary<Microsoft::ServiceHub::Framework::ServiceMoniker ^, Microsoft::VisualStudio::Utilities::ServiceBroker::ServiceRegistration ^> ^ services, bool isClientOfExclusiveServer, Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession, Microsoft::VisualStudio::Threading::JoinableTaskFactory ^ joinableTaskFactory, System::Diagnostics::TraceSource ^ traceSource);
protected GlobalBrokeredServiceContainer (System.Collections.Immutable.ImmutableDictionary<Microsoft.ServiceHub.Framework.ServiceMoniker,Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceRegistration> services, bool isClientOfExclusiveServer, Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession, Microsoft.VisualStudio.Threading.JoinableTaskFactory joinableTaskFactory, System.Diagnostics.TraceSource traceSource);
new Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer : System.Collections.Immutable.ImmutableDictionary<Microsoft.ServiceHub.Framework.ServiceMoniker, Microsoft.VisualStudio.Utilities.ServiceBroker.ServiceRegistration> * bool * Microsoft.VisualStudio.Telemetry.TelemetrySession * Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.Diagnostics.TraceSource -> Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer
Protected Sub New (services As ImmutableDictionary(Of ServiceMoniker, ServiceRegistration), isClientOfExclusiveServer As Boolean, telemetrySession As TelemetrySession, joinableTaskFactory As JoinableTaskFactory, traceSource As TraceSource)
Parameters
A map of service monikers to their registration details. Only registered services will be obtainable from the IServiceBroker returned from methods on this class.
- isClientOfExclusiveServer
- Boolean
true
when this process is or will be connected to a dedicated, trusted server (e.g. a Codespace) that will provide the environment to this client; false
otherwise.
- telemetrySession
- TelemetrySession
- joinableTaskFactory
- JoinableTaskFactory
- traceSource
- TraceSource