Table of Contents

Struct SchedulerMapping

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents a value specifying the scheduler to be used when handling concurrency in a reactive operator.

public struct SchedulerMapping : IEquatable<SchedulerMapping>
Implements
Inherited Members

Constructors

SchedulerMapping(IScheduler)

Initializes a new instance of the SchedulerMapping class using the specified scheduler.

public SchedulerMapping(IScheduler scheduler)

Parameters

scheduler IScheduler

The scheduler assigned to the mapping.

Exceptions

ArgumentNullException

scheduler is null.

Properties

Instance

Gets or sets the scheduler object assigned to the mapping.

public readonly IScheduler Instance { get; }

Property Value

IScheduler

Methods

Equals(SchedulerMapping)

Returns a value indicating whether this object has the same scheduler instance as a specified SchedulerMapping value.

public bool Equals(SchedulerMapping other)

Parameters

other SchedulerMapping

The SchedulerMapping value to compare to this object.

Returns

bool

true if other has the same scheduler instance as this object; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.