Show / Hide Table of Contents

    Class Condition

    Abstract class that represents a base for all conditions.

    Inheritance
    System.Object
    Priority_Queue.FastPriorityQueueNode
    Priority_Queue.StablePriorityQueueNode
    BaseEvent
    Condition
    ExhaustionContidion
    Implements
    System.IEquatable<BaseEvent>
    ICondition
    IEvent
    Inherited Members
    BaseEvent.Cancelled
    BaseEvent.Expedited
    BaseEvent.Completed
    BaseEvent.EventId
    BaseEvent.RequestorId
    BaseEvent.RepeatAfter
    BaseEvent.HasCancellationHandler
    BaseEvent.HasExpeditionHandler
    BaseEvent.ExcludeFromTelemetry
    BaseEvent.State
    BaseEvent.Cancel()
    BaseEvent.Expedite()
    BaseEvent.Complete(Boolean)
    BaseEvent.Equals(BaseEvent)
    Priority_Queue.StablePriorityQueueNode.InsertionIndex
    Priority_Queue.FastPriorityQueueNode.Priority
    Priority_Queue.FastPriorityQueueNode.QueueIndex
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Mechanics.Conditions
    Assembly: Fibula.Mechanics.dll
    Syntax
    public abstract class Condition : BaseEvent, IEquatable<BaseEvent>, ICondition, IEvent

    Constructors

    | Improve this Doc View Source

    Condition(ConditionType, DateTimeOffset)

    Initializes a new instance of the Condition class.

    Declaration
    public Condition(ConditionType conditionType, DateTimeOffset endTime)
    Parameters
    Type Name Description
    ConditionType conditionType

    The type of exhaustion.

    System.DateTimeOffset endTime

    The date and time at which the condition is set to end.

    Properties

    | Improve this Doc View Source

    CanBeCancelled

    Gets or sets a value indicating whether this condition can be cured.

    Declaration
    public override bool CanBeCancelled { get; protected set; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    BaseEvent.CanBeCancelled
    | Improve this Doc View Source

    EndTime

    Gets or sets the end time for this condition.

    Declaration
    public DateTimeOffset EndTime { get; set; }
    Property Value
    Type Description
    System.DateTimeOffset
    | Improve this Doc View Source

    Type

    Gets the type of this condition.

    Declaration
    public ConditionType Type { get; }
    Property Value
    Type Description
    ConditionType

    Methods

    | Improve this Doc View Source

    Execute(IEventContext)

    Executes the event logic.

    Declaration
    public override void Execute(IEventContext context)
    Parameters
    Type Name Description
    IEventContext context

    The execution context.

    Overrides
    BaseEvent.Execute(IEventContext)
    | Improve this Doc View Source

    Pulse(IEventContext)

    Executes the operation's logic.

    Declaration
    protected abstract void Pulse(IEventContext context)
    Parameters
    Type Name Description
    IEventContext context

    The execution context for this operation.

    Implements

    System.IEquatable<T>
    ICondition
    IEvent

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.