Class ClientBuilderExtensions
Inheritance
System.Object
ClientBuilderExtensions
Namespace: Orleans
Assembly: Orleans.Core.Legacy.dll
Syntax
public static class ClientBuilderExtensions : object
Methods
| Improve this Doc View SourceConfiguration(IClusterClient)
Gets the client configuration.
Declaration
public static ClientConfiguration Configuration(this IClusterClient client)
Parameters
Type | Name | Description |
---|---|---|
IClusterClient | client |
Returns
Type | Description |
---|---|
ClientConfiguration |
LoadConfiguration(IClientBuilder)
Loads configuration from the standard client configuration locations.
Declaration
public static IClientBuilder LoadConfiguration(this IClientBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IClientBuilder | builder | The builder. |
Returns
Type | Description |
---|---|
IClientBuilder | The builder. |
Remarks
This method loads the first client configuration file it finds, searching predefined directories for predefined file names. The following file names are tried in order:
LoadConfiguration(IClientBuilder, FileInfo)
Loads configuration from the provided location.
Declaration
public static IClientBuilder LoadConfiguration(this IClientBuilder builder, FileInfo configurationFile)
Parameters
Type | Name | Description |
---|---|---|
IClientBuilder | builder | The builder. |
FileInfo | configurationFile |
Returns
Type | Description |
---|---|
IClientBuilder | The builder. |
LoadConfiguration(IClientBuilder, String)
Loads configuration from the provided location.
Declaration
public static IClientBuilder LoadConfiguration(this IClientBuilder builder, string configurationFilePath)
Parameters
Type | Name | Description |
---|---|---|
IClientBuilder | builder | The builder. |
System.String | configurationFilePath |
Returns
Type | Description |
---|---|
IClientBuilder | The builder. |
UseConfiguration(IClientBuilder, ClientConfiguration)
Specified the configuration to use for this client.
Declaration
public static IClientBuilder UseConfiguration(this IClientBuilder builder, ClientConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IClientBuilder | builder | The client builder. |
ClientConfiguration | configuration | The configuration. |
Returns
Type | Description |
---|---|
IClientBuilder | The builder. |
Remarks
This method may only be called once per builder instance.