Hazelcast .NET
Search Results for

    Show / Hide Table of Contents

    StartNewClientAsync Method

    StartNewClientAsync(CancellationToken)

    Starts a new IHazelcastClient instance with the automatic options.

    Declaration
    public static ValueTask<IHazelcastClient> StartNewClientAsync(CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    CancellationToken cancellationToken

    An optional cancellation token.

    Returns
    ValueTask<IHazelcastClient>

    A new IHazelcastClient instance.

    Remarks

    Options are built via HazelcastOptions.Build method.

    StartNewClientAsync(Action<HazelcastOptions>, CancellationToken)

    Starts a new IHazelcastClient instance with configured options.

    Declaration
    public static ValueTask<IHazelcastClient> StartNewClientAsync(Action<HazelcastOptions> configure, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Action<HazelcastOptions> configure

    A HazelcastOptions configuration delegate.

    CancellationToken cancellationToken

    A optional cancellation token.

    Returns
    ValueTask<IHazelcastClient>

    A new IHazelcastClient instance.

    Remarks

    Options are built via the Build(String[], IEnumerable<KeyValuePair<String, String>>, String, String, String, Action<IConfiguration, HazelcastOptions>) method and passed to the configure method, where they can be refined and adjusted, before being used to create the client.

    StartNewClientAsync(HazelcastOptions, CancellationToken)

    Starts a new IHazelcastClient instance with options.

    Declaration
    public static ValueTask<IHazelcastClient> StartNewClientAsync(HazelcastOptions options, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    HazelcastOptions options

    Options.

    CancellationToken cancellationToken

    A optional cancellation token.

    Returns
    ValueTask<IHazelcastClient>

    A new IHazelcastClient instance.

    In This Article
    Back to top Copyright © 2010-2021 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.