FabricTransportRemotingSettings.LoadFrom(String, String, String) Method
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.
Loads the FabricTransport settings from a sectionName specified in the configuration file. Configuration File can be specified using the filePath or using the name of the configuration package specified in the service manifest. It will first try to load config using configPackageName. If configPackageName is not specified then try to load from filePath.
public static Microsoft.ServiceFabric.Services.Remoting.FabricTransport.FabricTransportRemotingSettings LoadFrom (string sectionName, string filepath = default, string configPackageName = default);
static member LoadFrom : string * string * string -> Microsoft.ServiceFabric.Services.Remoting.FabricTransport.FabricTransportRemotingSettings
Public Shared Function LoadFrom (sectionName As String, Optional filepath As String = Nothing, Optional configPackageName As String = Nothing) As FabricTransportRemotingSettings
Parameters
- sectionName
- String
The name of the section within the configuration file. If not found section in configuration file, it will throw ArgumentException.
- filepath
- String
The full path of the file where the settings will be loaded from. If not specified , it will first try to load from default Config Package"Config" , if not found then load from Settings "ClientExeName.Settings.xml" present in Client Exe directory.
- configPackageName
- String
Name of the configuration package.If its null or empty,it will check for file in filePath.
Returns
The FabricTransportRemotingSettings
Remarks
The following are the parameter names that should be provided in the configuration file, to be recognizable by service fabric to load the transport settings.
1. MaxQueueSize - MaxQueueSizevalue in long. 2. MaxMessageSize - MaxMessageSizevalue in bytes. 3. MaxConcurrentCalls - MaxConcurrentCallsvalue in long. 4. SecurityCredentials - SecurityCredentials value. 5. OperationTimeoutInSeconds - OperationTimeout value in seconds. 6. KeepAliveTimeoutInSeconds - KeepAliveTimeout value in seconds. 7. ConnectTimeoutInMilliseconds - ConnectTimeout value in milliseconds.
Applies to
Azure SDK for .NET