Method ConnectAsync
ConnectAsync(String)
Connects to a ScaleOut in-memory data grid, returning a GridConnection instance that can be used with a CacheBuilder<TKey, TValue> to access objects in the ScaleOut service.
Declaration
public static async Task<GridConnection> ConnectAsync(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | String containing parameters for connecting to ScaleOut host(s). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GridConnection> | A GridConnection instance. |
See Also
ConnectAsync(String, BootstrapGatewayProvider)
Connects to a ScaleOut in-memory data grid, returning a GridConnection instance that can be used with a CacheBuilder<TKey, TValue> to access objects in the ScaleOut service.
Declaration
public static async Task<GridConnection> ConnectAsync(string connectionString, BootstrapGatewayProvider bootstrapGatewayProvider)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | String containing parameters for connecting to ScaleOut host(s). |
BootstrapGatewayProvider | bootstrapGatewayProvider | A bootstrap gateway provider that can be used to find ScaleOut hosts running in cloud environment. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GridConnection> | A GridConnection instance. |