C# 클래스 PortableRx.Reactive.Concurrency.Scheduler

파일 보기 프로젝트 열기: robfe/PortableRx

Private Properties

프로퍼티 타입 설명
Initialize IScheduler
Invoke IDisposable

공개 메소드들

메소드 설명
AsLongRunning ( this scheduler ) : ISchedulerLongRunning

Returns the ISchedulerLongRunning implementation of the specified scheduler, or null if no such implementation is available.

This helper method is made available for query operator authors in order to discover scheduler services by using the required IServiceProvider pattern, which allows for interception or redefinition of scheduler services.

AsPeriodic ( this scheduler ) : ISchedulerPeriodic

Returns the IStopwatchProvider implementation of the specified scheduler, or null if no such implementation is available.

This helper method is made available for query operator authors in order to discover scheduler services by using the required IServiceProvider pattern, which allows for interception or redefinition of scheduler services.

Consider using the Scheduler.SchedulePeriodic extension methods for IScheduler in case periodic scheduling is required and emulation of periodic behavior using other scheduler services is desirable. Use of this method is recommended for best-effort use of the periodic scheduling service, where the caller falls back to not using periodic scheduling if this facility wasn't found.

AsStopwatchProvider ( this scheduler ) : IStopwatchProvider

Returns the IStopwatchProvider implementation of the specified scheduler, or null if no such implementation is available.

This helper method is made available for query operator authors in order to discover scheduler services by using the required IServiceProvider pattern, which allows for interception or redefinition of scheduler services.

Consider using Scheduler.StartStopwatch in case a stopwatch is required, but use of emulation stopwatch based on the scheduler's clock is acceptable. Use of this method is recommended for best-effort use of the stopwatch provider scheduler service, where the caller falls back to not using stopwatches if this facility wasn't found.

Normalize ( System.TimeSpan timeSpan ) : System.TimeSpan

Normalizes the specified TimeSpan value to a positive value.

Schedule ( this scheduler, System.Action action ) : IDisposable

Schedules an action to be executed.

Schedule ( this scheduler, DateTimeOffset dueTime, System.Action action ) : IDisposable

Schedules an action to be executed at the specified absolute due time.

Schedule ( this scheduler, System.TimeSpan dueTime, System.Action action ) : IDisposable

Schedules an action to be executed after the specified relative due time.

ScheduleLongRunning ( this scheduler, Action action ) : IDisposable

Schedules an action to be executed.

비공개 메소드들

메소드 설명
Initialize ( string name ) : IScheduler
Invoke ( IScheduler scheduler, System.Action action ) : IDisposable

메소드 상세

AsLongRunning() 공개 정적인 메소드

Returns the ISchedulerLongRunning implementation of the specified scheduler, or null if no such implementation is available.
This helper method is made available for query operator authors in order to discover scheduler services by using the required IServiceProvider pattern, which allows for interception or redefinition of scheduler services.
public static AsLongRunning ( this scheduler ) : ISchedulerLongRunning
scheduler this Scheduler to get the ISchedulerLongRunning implementation for.
리턴 ISchedulerLongRunning

AsPeriodic() 공개 정적인 메소드

Returns the IStopwatchProvider implementation of the specified scheduler, or null if no such implementation is available.

This helper method is made available for query operator authors in order to discover scheduler services by using the required IServiceProvider pattern, which allows for interception or redefinition of scheduler services.

Consider using the Scheduler.SchedulePeriodic extension methods for IScheduler in case periodic scheduling is required and emulation of periodic behavior using other scheduler services is desirable. Use of this method is recommended for best-effort use of the periodic scheduling service, where the caller falls back to not using periodic scheduling if this facility wasn't found.

public static AsPeriodic ( this scheduler ) : ISchedulerPeriodic
scheduler this Scheduler to get the IStopwatchProvider implementation for.
리턴 ISchedulerPeriodic

AsStopwatchProvider() 공개 정적인 메소드

Returns the IStopwatchProvider implementation of the specified scheduler, or null if no such implementation is available.

This helper method is made available for query operator authors in order to discover scheduler services by using the required IServiceProvider pattern, which allows for interception or redefinition of scheduler services.

Consider using Scheduler.StartStopwatch in case a stopwatch is required, but use of emulation stopwatch based on the scheduler's clock is acceptable. Use of this method is recommended for best-effort use of the stopwatch provider scheduler service, where the caller falls back to not using stopwatches if this facility wasn't found.

public static AsStopwatchProvider ( this scheduler ) : IStopwatchProvider
scheduler this Scheduler to get the IStopwatchProvider implementation for.
리턴 IStopwatchProvider

Normalize() 공개 정적인 메소드

Normalizes the specified TimeSpan value to a positive value.
public static Normalize ( System.TimeSpan timeSpan ) : System.TimeSpan
timeSpan System.TimeSpan The TimeSpan value to normalize.
리턴 System.TimeSpan

Schedule() 공개 정적인 메소드

Schedules an action to be executed.
or is null.
public static Schedule ( this scheduler, System.Action action ) : IDisposable
scheduler this Scheduler to execute the action on.
action System.Action Action to execute.
리턴 IDisposable

Schedule() 공개 정적인 메소드

Schedules an action to be executed at the specified absolute due time.
or is null.
public static Schedule ( this scheduler, DateTimeOffset dueTime, System.Action action ) : IDisposable
scheduler this Scheduler to execute the action on.
dueTime DateTimeOffset Absolute time at which to execute the action.
action System.Action Action to execute.
리턴 IDisposable

Schedule() 공개 정적인 메소드

Schedules an action to be executed after the specified relative due time.
or is null.
public static Schedule ( this scheduler, System.TimeSpan dueTime, System.Action action ) : IDisposable
scheduler this Scheduler to execute the action on.
dueTime System.TimeSpan Relative time after which to execute the action.
action System.Action Action to execute.
리턴 IDisposable

ScheduleLongRunning() 공개 정적인 메소드

Schedules an action to be executed.
or is null.
public static ScheduleLongRunning ( this scheduler, Action action ) : IDisposable
scheduler this Scheduler to execute the action on.
action Action Action to execute.
리턴 IDisposable