Show / Hide Table of Contents

# Class TaskEvent

Ignite task event.

##### Inheritance

System.Object
EventBase
TaskEvent

##### Implements

IEvent
System.IEquatable<EventBase>

##### Inherited Members

EventBase.Id
EventBase.LocalOrder
EventBase.Node
EventBase.Message
EventBase.Type
EventBase.Name
EventBase.Timestamp
EventBase.Equals(EventBase)
EventBase.Equals(Object)
EventBase.GetHashCode()
EventBase.ToString()
EventBase.ReadNode(IBinaryRawReader)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Events

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

##### Syntax

    public sealed class TaskEvent : EventBase, IEvent, IEquatable<EventBase>

### Properties

#### Internal

Returns true if task is created by Ignite and is used for system needs.

##### Declaration

    public bool Internal { get; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### SubjectId

Gets security subject ID initiated this task event, if available. This property is not available for TaskSessionAttrSet task event. Subject ID will be set either to node ID or client ID initiated task execution.

##### Declaration

    public Guid? SubjectId { get; }

##### Property Value

Type | Description
--- | ---
System.Nullable<System.Guid> |

#### TaskClassName

Gets name of task class that triggered this event.

##### Declaration

    public string TaskClassName { get; }

##### Property Value

Type | Description
--- | ---
System.String |

#### TaskName

Gets name of the task that triggered the event.

##### Declaration

    public string TaskName { get; }

##### Property Value

Type | Description
--- | ---
System.String |

#### TaskSessionId

Gets session ID of the task that triggered the event.

##### Declaration

    public IgniteGuid? TaskSessionId { get; }

##### Property Value

Type | Description
--- | ---
System.Nullable<IgniteGuid> |

### Methods

#### ToShortString()

Gets shortened version of ToString result.

##### Declaration

    public override string ToShortString()

##### Returns

Type | Description
--- | ---
System.String |

##### Overrides

EventBase.ToShortString()

### Implements

IEvent
System.IEquatable<T>