ServiceJsonRpcDescriptor Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
ServiceJsonRpcDescriptor(ServiceJsonRpcDescriptor) |
Инициализирует новый экземпляр ServiceJsonRpcDescriptor класса и инициализирует все поля на основе экземпляра шаблона. |
ServiceJsonRpcDescriptor(ServiceMoniker, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters) |
Инициализирует новый экземпляр класса ServiceJsonRpcDescriptor. |
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters) |
Инициализирует новый экземпляр ServiceJsonRpcDescriptor класса и не поддерживает открытие дополнительных потоков, за исключением использования базового компонента service broker для его предоставления. |
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters, MultiplexingStream+Options) |
Инициализирует новый экземпляр ServiceJsonRpcDescriptor класса и поддерживает открытие дополнительных потоков с помощью MultiplexingStreamOptions. |
ServiceJsonRpcDescriptor(ServiceJsonRpcDescriptor)
Инициализирует новый экземпляр ServiceJsonRpcDescriptor класса и инициализирует все поля на основе экземпляра шаблона.
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)
Параметры
- copyFrom
- ServiceJsonRpcDescriptor
Экземпляр, из который копируются все поля.
Применяется к
ServiceJsonRpcDescriptor(ServiceMoniker, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)
Инициализирует новый экземпляр класса ServiceJsonRpcDescriptor.
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)
Параметры
- serviceMoniker
- ServiceMoniker
Моникер службы.
- formatter
- ServiceJsonRpcDescriptor.Formatters
Модуль форматирования, используемый для сообщения JSON-RPC.
- messageDelimiter
- ServiceJsonRpcDescriptor.MessageDelimiters
Используемая схема разделителя сообщений.
Применяется к
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters)
Инициализирует новый экземпляр ServiceJsonRpcDescriptor класса и не поддерживает открытие дополнительных потоков, за исключением использования базового компонента service broker для его предоставления.
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)
Параметры
- serviceMoniker
- ServiceMoniker
Моникер службы.
- clientInterface
- Type
Тип интерфейса, который должен быть реализован целевым объектом RPC обратного вызова клиента. Может иметь значение NULL, если служба не вызывает методы на клиенте.
- formatter
- ServiceJsonRpcDescriptor.Formatters
Модуль форматирования, используемый для сообщения JSON-RPC.
- messageDelimiter
- ServiceJsonRpcDescriptor.MessageDelimiters
Используемая схема разделителя сообщений.
Применяется к
ServiceJsonRpcDescriptor(ServiceMoniker, Type, ServiceJsonRpcDescriptor+Formatters, ServiceJsonRpcDescriptor+MessageDelimiters, MultiplexingStream+Options)
Инициализирует новый экземпляр ServiceJsonRpcDescriptor класса и поддерживает открытие дополнительных потоков с помощью 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)
Параметры
- serviceMoniker
- ServiceMoniker
Моникер службы.
- clientInterface
- Type
Тип интерфейса, который должен быть реализован целевым объектом RPC обратного вызова клиента. Может иметь значение NULL, если служба не вызывает методы на клиенте.
- formatter
- ServiceJsonRpcDescriptor.Formatters
Модуль форматирования, используемый для сообщения JSON-RPC.
- messageDelimiter
- ServiceJsonRpcDescriptor.MessageDelimiters
Используемая схема разделителя сообщений.
- multiplexingStreamOptions
- Nerdbank.Streams.MultiplexingStream.Options
Параметры, с помощью Nerdbank.Streams.MultiplexingStream которые можно создать. Значение null
не позволит создать Nerdbank.Streams.MultiplexingStream для RPC-подключения.