C# Class LibuvSharp.UVTimer

Inheritance: LibuvSharp.Handle
显示文件 Open project: txdv/LibuvSharp Class Usage Examples

Public Methods

Method Description
Again ( ) : void
Every ( Loop loop, System.TimeSpan repeat, System.Action callback ) : UVTimer
Every ( System.TimeSpan repeat, System.Action callback ) : UVTimer
Once ( Loop loop, System.TimeSpan timeout, System.Action callback ) : UVTimer
Once ( System.TimeSpan timeout, System.Action callback ) : UVTimer
Start ( System.TimeSpan repeat ) : void
Start ( System.TimeSpan timeout, System.Action callback ) : void
Start ( System.TimeSpan timeout, System.TimeSpan repeat ) : void
Start ( ulong repeat ) : void
Start ( ulong timeout, System.Action callback ) : void
Start ( ulong timeout, ulong repeat ) : void
Stop ( ) : void
Times ( Loop loop, int times, System.TimeSpan repeat, Action callback ) : UVTimer
Times ( int times, System.TimeSpan repeat, Action callback ) : UVTimer
UVTimer ( ) : System
UVTimer ( Loop loop ) : System

Private Methods

Method Description
OnTick ( ) : void
OnTick ( IntPtr handle ) : void
uv_timer_again ( IntPtr timer ) : int
uv_timer_get_repeat ( IntPtr timer ) : ulong
uv_timer_init ( IntPtr loop, IntPtr timer ) : int
uv_timer_set_repeat ( IntPtr timer, ulong repeat ) : void
uv_timer_start ( IntPtr timer, uv_timer_cb callback, ulong timeout, ulong repeat ) : int
uv_timer_stop ( IntPtr timer ) : int

Method Details

Again() public method

public Again ( ) : void
return void

Every() public static method

public static Every ( Loop loop, System.TimeSpan repeat, System.Action callback ) : UVTimer
loop Loop
repeat System.TimeSpan
callback System.Action
return UVTimer

Every() public static method

public static Every ( System.TimeSpan repeat, System.Action callback ) : UVTimer
repeat System.TimeSpan
callback System.Action
return UVTimer

Once() public static method

public static Once ( Loop loop, System.TimeSpan timeout, System.Action callback ) : UVTimer
loop Loop
timeout System.TimeSpan
callback System.Action
return UVTimer

Once() public static method

public static Once ( System.TimeSpan timeout, System.Action callback ) : UVTimer
timeout System.TimeSpan
callback System.Action
return UVTimer

Start() public method

public Start ( System.TimeSpan repeat ) : void
repeat System.TimeSpan
return void

Start() public method

public Start ( System.TimeSpan timeout, System.Action callback ) : void
timeout System.TimeSpan
callback System.Action
return void

Start() public method

public Start ( System.TimeSpan timeout, System.TimeSpan repeat ) : void
timeout System.TimeSpan
repeat System.TimeSpan
return void

Start() public method

public Start ( ulong repeat ) : void
repeat ulong
return void

Start() public method

public Start ( ulong timeout, System.Action callback ) : void
timeout ulong
callback System.Action
return void

Start() public method

public Start ( ulong timeout, ulong repeat ) : void
timeout ulong
repeat ulong
return void

Stop() public method

public Stop ( ) : void
return void

Times() public static method

public static Times ( Loop loop, int times, System.TimeSpan repeat, Action callback ) : UVTimer
loop Loop
times int
repeat System.TimeSpan
callback Action
return UVTimer

Times() public static method

public static Times ( int times, System.TimeSpan repeat, Action callback ) : UVTimer
times int
repeat System.TimeSpan
callback Action
return UVTimer

UVTimer() public method

public UVTimer ( ) : System
return System

UVTimer() public method

public UVTimer ( Loop loop ) : System
loop Loop
return System