.NET Client Documentation
5.2.2
Search Results for

    Show / Hide Table of Contents

    SubscribeAsync Method

    SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, object)

    Subscribes to events.

    Declaration
    Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, object state = null)
    Parameters
    Action<ReplicatedMapEventHandlers<TKey, TValue>> events

    An event handlers collection builder.

    object state

    A state object.

    Returns
    Task<Guid>

    The unique identifier of the subscription.

    SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, object)

    Subscribes to events.

    Declaration
    Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, TKey key, object state = null)
    Parameters
    Action<ReplicatedMapEventHandlers<TKey, TValue>> events

    An event handlers collection builder.

    TKey key

    A key to filter events.

    object state

    A state object.

    Returns
    Task<Guid>

    The unique identifier of the subscription.

    SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, IPredicate, object)

    Subscribes to events.

    Declaration
    Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, IPredicate predicate, object state = null)
    Parameters
    Action<ReplicatedMapEventHandlers<TKey, TValue>> events

    An event handlers collection builder.

    IPredicate predicate

    A predicate to filter events.

    object state

    A state object.

    Returns
    Task<Guid>

    The unique identifier of the subscription.

    SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, IPredicate, object)

    Subscribes to events.

    Declaration
    Task<Guid> SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>> events, TKey key, IPredicate predicate, object state = null)
    Parameters
    Action<ReplicatedMapEventHandlers<TKey, TValue>> events

    An event handlers collection builder.

    TKey key

    A key to filter events.

    IPredicate predicate

    A predicate to filter events.

    object state

    A state object.

    Returns
    Task<Guid>

    The unique identifier of the subscription.

    In This Article
    • SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, object)
    • SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, object)
    • SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, IPredicate, object)
    • SubscribeAsync(Action<ReplicatedMapEventHandlers<TKey, TValue>>, TKey, IPredicate, object)
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.