Class AsyncOperationApiEvent
Событие изменения состояния асинхронной операции.
Implements
Inherited Members
Namespace: Ascon.Polynom.Api.Events
Assembly: Ascon.Polynom.Api.dll
Syntax
public class AsyncOperationApiEvent : ApiEvent, IEquatable<AsyncOperationApiEvent>
Constructors
AsyncOperationApiEvent(ApiObjectIdentifier, int, int)
Инициализирует объект класса AsyncOperationApiEvent.
Declaration
public AsyncOperationApiEvent(ApiObjectIdentifier operationIdentifier, int operationState, int percent)
Parameters
| Type | Name | Description |
|---|---|---|
| ApiObjectIdentifier | operationIdentifier | Идентификатор операции. |
| int | operationState | Состояние операции. |
| int | percent | Процент. |
Properties
OperationState
Возвращает состояние операции.
Declaration
public AsyncOperationState OperationState { get; }
Property Value
| Type | Description |
|---|---|
| AsyncOperationState |
Percent
Возвращает процент выполнения.
Declaration
public int Percent { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Equals(AsyncOperationApiEvent)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(AsyncOperationApiEvent other)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncOperationApiEvent | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with this instance. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |