Edit

Share via


GrainClient.Initialize Method

Definition

Overloads

Initialize(IPEndPoint, Boolean)
Obsolete.

Initializes the client runtime from the standard client configuration file using the provided gateway address. Any gateway addresses specified in the config file will be ignored and the provided gateway address wil be used instead.

Initialize(String)

Initializes the client runtime from the provided client configuration file. If an error occurs reading the specified configuration file, the initialization fails.

Initialize()

Initializes the client runtime from the standard client configuration file.

Initialize(ClientConfiguration)

Initializes the client runtime from the provided client configuration object. If the configuration object is null, the initialization fails.

Initialize(FileInfo)

Initializes the client runtime from the provided client configuration file. If an error occurs reading the specified configuration file, the initialization fails.

Initialize(IPEndPoint, Boolean)

Caution

This method is obsolete and will be removed in a future release. If it is needed, reimplement this method according to its source: https://github.com/dotnet/orleans/blob/8f067e77f115c0599eff00c2bdc6f37f2adbc58d/src/Orleans/Core/GrainClient.cs#L173

Initializes the client runtime from the standard client configuration file using the provided gateway address. Any gateway addresses specified in the config file will be ignored and the provided gateway address wil be used instead.

[System.Obsolete("This method is obsolete and will be removed in a future release. If it is needed, reimplement this method according to its source: https://github.com/dotnet/orleans/blob/8f067e77f115c0599eff00c2bdc6f37f2adbc58d/src/Orleans/Core/GrainClient.cs#L173")]
public static void Initialize (System.Net.IPEndPoint gatewayAddress, bool overrideConfig = true);
public static void Initialize (System.Net.IPEndPoint gatewayAddress, bool overrideConfig = true);
[<System.Obsolete("This method is obsolete and will be removed in a future release. If it is needed, reimplement this method according to its source: https://github.com/dotnet/orleans/blob/8f067e77f115c0599eff00c2bdc6f37f2adbc58d/src/Orleans/Core/GrainClient.cs#L173")>]
static member Initialize : System.Net.IPEndPoint * bool -> unit
static member Initialize : System.Net.IPEndPoint * bool -> unit
Public Shared Sub Initialize (gatewayAddress As IPEndPoint, Optional overrideConfig As Boolean = true)

Parameters

gatewayAddress
IPEndPoint

IP address and port of the gateway silo

overrideConfig
Boolean

Whether the specified gateway endpoint should override / replace the values from config file, or be additive

Attributes

Applies to

Initialize(String)

Initializes the client runtime from the provided client configuration file. If an error occurs reading the specified configuration file, the initialization fails.

public static void Initialize (string configFilePath);
static member Initialize : string -> unit
Public Shared Sub Initialize (configFilePath As String)

Parameters

configFilePath
String

A relative or absolute pathname for the client configuration file.

Applies to

Initialize()

Initializes the client runtime from the standard client configuration file.

public static void Initialize ();
static member Initialize : unit -> unit
Public Shared Sub Initialize ()

Applies to

Initialize(ClientConfiguration)

Initializes the client runtime from the provided client configuration object. If the configuration object is null, the initialization fails.

public static void Initialize (Orleans.Runtime.Configuration.ClientConfiguration config);
static member Initialize : Orleans.Runtime.Configuration.ClientConfiguration -> unit
Public Shared Sub Initialize (config As ClientConfiguration)

Parameters

config
ClientConfiguration

A ClientConfiguration object.

Applies to

Initialize(FileInfo)

Initializes the client runtime from the provided client configuration file. If an error occurs reading the specified configuration file, the initialization fails.

public static void Initialize (System.IO.FileInfo configFile);
static member Initialize : System.IO.FileInfo -> unit
Public Shared Sub Initialize (configFile As FileInfo)

Parameters

configFile
FileInfo

The client configuration file.

Applies to