Table of Contents

Class Schedule

Namespace
The.Web.Jobs
Assembly
Instagile.Web.Client.dll
public sealed class Schedule : IEquatable<Schedule>
Inheritance
Schedule
Implements
Inherited Members

Constructors

Schedule()

public Schedule()

Schedule(TimeSpan)

public Schedule(TimeSpan timeOfDay)

Parameters

timeOfDay TimeSpan

Schedule(TimeSpan, params DayOfWeek[])

public Schedule(TimeSpan timeOfDay, params DayOfWeek[] daysOfWeek)

Parameters

timeOfDay TimeSpan
daysOfWeek DayOfWeek[]

Properties

TimesOfWeek

public HashSet<TimeOfWeek> TimesOfWeek { get; }

Property Value

HashSet<TimeOfWeek>

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(Schedule?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Schedule? other)

Parameters

other Schedule

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetNextOccurrence(DateTime)

public DateTime GetNextOccurrence(DateTime fromDate)

Parameters

fromDate DateTime

Returns

DateTime

GetRemainingTime(DateTime)

public TimeSpan GetRemainingTime(DateTime fromDate)

Parameters

fromDate DateTime

Returns

TimeSpan