Show / Hide Table of Contents

# Interface IMessageListener<T>

Represents messaging filter predicate.

###### Namespace: Apache.Ignite.Core.Messaging

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface IMessageListener<in T>

##### Type Parameters

Name | Description
--- | ---
T |

### Methods

#### Invoke(Guid, T)

Invokes the message listener when a message arrives.

##### Declaration

    bool Invoke(Guid nodeId, T message)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Guid | nodeId | Message source node identifier.
T | message | Message.

##### Returns

Type | Description
--- | ---
System.Boolean | Value indicating whether this instance should remain subscribed. Returning `false` will unsubscribe this message listener from further notifications.