FabricTransportServiceRemotingClientFactory Constructor
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.
Initializes a new instance of the FabricTransportServiceRemotingClientFactory class. Constructs a fabric transport based service remoting client factory.
public FabricTransportServiceRemotingClientFactory (Microsoft.ServiceFabric.Services.Remoting.FabricTransport.FabricTransportRemotingSettings remotingSettings = default, Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler remotingCallbackMessageHandler = default, Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver servicePartitionResolver = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> exceptionHandlers = default, string traceId = default, Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider serializationProvider = default, System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IExceptionConvertor> exceptionConvertors = default);
new Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Client.FabricTransportServiceRemotingClientFactory : Microsoft.ServiceFabric.Services.Remoting.FabricTransport.FabricTransportRemotingSettings * Microsoft.ServiceFabric.Services.Remoting.V2.Client.IServiceRemotingCallbackMessageHandler * Microsoft.ServiceFabric.Services.Client.IServicePartitionResolver * seq<Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler> * string * Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingMessageSerializationProvider * seq<Microsoft.ServiceFabric.Services.Remoting.V2.Client.IExceptionConvertor> -> Microsoft.ServiceFabric.Services.Remoting.V2.FabricTransport.Client.FabricTransportServiceRemotingClientFactory
Public Sub New (Optional remotingSettings As FabricTransportRemotingSettings = Nothing, Optional remotingCallbackMessageHandler As IServiceRemotingCallbackMessageHandler = Nothing, Optional servicePartitionResolver As IServicePartitionResolver = Nothing, Optional exceptionHandlers As IEnumerable(Of IExceptionHandler) = Nothing, Optional traceId As String = Nothing, Optional serializationProvider As IServiceRemotingMessageSerializationProvider = Nothing, Optional exceptionConvertors As IEnumerable(Of IExceptionConvertor) = Nothing)
Parameters
- remotingSettings
- FabricTransportRemotingSettings
The settings for the fabric transport. If the settings are not provided or null, default settings with no security.
- remotingCallbackMessageHandler
- IServiceRemotingCallbackMessageHandler
The callback client that receives the callbacks from the service.
- servicePartitionResolver
- IServicePartitionResolver
Service partition resolver to resolve the service endpoints. If not specified, a default service partition resolver returned by GetDefault() is used.
- exceptionHandlers
- IEnumerable<IExceptionHandler>
Exception handlers to handle the exceptions encountered in communicating with the service.
- traceId
- String
Id to use in diagnostics traces from this component.
- serializationProvider
- IServiceRemotingMessageSerializationProvider
Serialization Provider to serialize and deserialize request and response.
- exceptionConvertors
- IEnumerable<IExceptionConvertor>
Convertors to convert service exception to user exception.
Remarks
This factory uses an internal fabric transport exception handler to handle exceptions at the fabric TCP transport level and a ServiceRemotingExceptionHandler, in addition to the exception handlers supplied to the constructor.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應