ServiceJsonRpcDescriptor 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
ServiceJsonRpcDescriptor(ServiceJsonRpcDescriptor) |
Initializes a new instance of the ServiceJsonRpcDescriptor class and initializes all fields based on a template instance. |
ServiceJsonRpcDescriptor(ServiceMoniker, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters) |
Initializes a new instance of the ServiceJsonRpcDescriptor class. |
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters) |
Initializes a new instance of the ServiceJsonRpcDescriptor class and no support for opening additional streams except by relying on the underlying service broker to provide one. |
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters, MultiplexingStream+Options) |
Initializes a new instance of the ServiceJsonRpcDescriptor class and does support for opening additional streams with MultiplexingStreamOptions. |
ServiceJsonRpcDescriptor(ServiceJsonRpcDescriptor)
Initializes a new instance of the ServiceJsonRpcDescriptor class and initializes all fields based on a template instance.
protected:
ServiceJsonRpcDescriptor(Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor ^ copyFrom);
protected ServiceJsonRpcDescriptor (Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor copyFrom);
new Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor : Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor -> Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor
Protected Sub New (copyFrom As ServiceJsonRpcDescriptor)
Parameters
- copyFrom
- ServiceJsonRpcDescriptor
The instance to copy all fields from.
Applies to
ServiceJsonRpcDescriptor(ServiceMoniker, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)
Initializes a new instance of the ServiceJsonRpcDescriptor class.
public:
ServiceJsonRpcDescriptor(Microsoft::ServiceHub::Framework::ServiceMoniker ^ serviceMoniker, Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor::Formatters formatter, Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor::MessageDelimiters messageDelimiter);
public ServiceJsonRpcDescriptor (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.Formatters formatter, Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.MessageDelimiters messageDelimiter);
new Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.Formatters * Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.MessageDelimiters -> Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor
Public Sub New (serviceMoniker As ServiceMoniker, formatter As ServiceJsonRpcDescriptor.Formatters, messageDelimiter As ServiceJsonRpcDescriptor.MessageDelimiters)
Parameters
- serviceMoniker
- ServiceMoniker
The service moniker.
- formatter
- ServiceJsonRpcDescriptor.Formatters
The formatter to use for the JSON-RPC message.
- messageDelimiter
- ServiceJsonRpcDescriptor.MessageDelimiters
The message delimiter scheme to use.
Applies to
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)
Initializes a new instance of the ServiceJsonRpcDescriptor class and no support for opening additional streams except by relying on the underlying service broker to provide one.
public:
ServiceJsonRpcDescriptor(Microsoft::ServiceHub::Framework::ServiceMoniker ^ serviceMoniker, Type ^ clientInterface, Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor::Formatters formatter, Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor::MessageDelimiters messageDelimiter);
public ServiceJsonRpcDescriptor (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Type? clientInterface, Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.Formatters formatter, Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.MessageDelimiters messageDelimiter);
new Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Type * Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.Formatters * Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.MessageDelimiters -> Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor
Public Sub New (serviceMoniker As ServiceMoniker, clientInterface As Type, formatter As ServiceJsonRpcDescriptor.Formatters, messageDelimiter As ServiceJsonRpcDescriptor.MessageDelimiters)
Parameters
- serviceMoniker
- ServiceMoniker
The service moniker.
- clientInterface
- Type
The interface type that the client's "callback" RPC target is expected to implement. May be null if the service does not invoke methods on the client.
- formatter
- ServiceJsonRpcDescriptor.Formatters
The formatter to use for the JSON-RPC message.
- messageDelimiter
- ServiceJsonRpcDescriptor.MessageDelimiters
The message delimiter scheme to use.
Applies to
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters, MultiplexingStream+Options)
Initializes a new instance of the ServiceJsonRpcDescriptor class and does support for opening additional streams with MultiplexingStreamOptions.
public:
ServiceJsonRpcDescriptor(Microsoft::ServiceHub::Framework::ServiceMoniker ^ serviceMoniker, Type ^ clientInterface, Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor::Formatters formatter, Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor::MessageDelimiters messageDelimiter, Nerdbank::Streams::MultiplexingStream::Options ^ multiplexingStreamOptions);
public ServiceJsonRpcDescriptor (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Type? clientInterface, Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.Formatters formatter, Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.MessageDelimiters messageDelimiter, Nerdbank.Streams.MultiplexingStream.Options? multiplexingStreamOptions);
new Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor : Microsoft.ServiceHub.Framework.ServiceMoniker * Type * Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.Formatters * Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor.MessageDelimiters * Nerdbank.Streams.MultiplexingStream.Options -> Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor
Public Sub New (serviceMoniker As ServiceMoniker, clientInterface As Type, formatter As ServiceJsonRpcDescriptor.Formatters, messageDelimiter As ServiceJsonRpcDescriptor.MessageDelimiters, multiplexingStreamOptions As MultiplexingStream.Options)
Parameters
- serviceMoniker
- ServiceMoniker
The service moniker.
- clientInterface
- Type
The interface type that the client's "callback" RPC target is expected to implement. May be null if the service does not invoke methods on the client.
- formatter
- ServiceJsonRpcDescriptor.Formatters
The formatter to use for the JSON-RPC message.
- messageDelimiter
- ServiceJsonRpcDescriptor.MessageDelimiters
The message delimiter scheme to use.
- multiplexingStreamOptions
- Nerdbank.Streams.MultiplexingStream.Options
The options that a Nerdbank.Streams.MultiplexingStream may be created with. A null
value will prevent a Nerdbank.Streams.MultiplexingStream from being created for the RPC connection.