internal StreamHandle( LoopContext loop, uv_handle_type handleType) : base(loop, handleType) { this.Pipeline = new Pipeline(this); }
internal Async(LoopContext loop, Action <Async> callback) : base(loop, uv_handle_type.UV_ASYNC) { Contract.Requires(callback != null); this.Callback = state => callback.Invoke((Async)state); }
internal ScheduleHandle(LoopContext loop, uv_handle_type handleType) { Contract.Requires(loop != null); HandleContext initialHandle = NativeMethods.Initialize(loop.Handle, handleType, this); if (initialHandle == null) { throw new InvalidOperationException($"Initialize {handleType} for loop {loop.Handle} failed."); } this.handle = initialHandle; this.HandleType = handleType; }
internal Timer(LoopContext loop) : base(loop, uv_handle_type.UV_TIMER) { }
internal WorkHandle(LoopContext loop, uv_handle_type handleType) : base(loop, handleType) { }
public Loop() { this.handle = new LoopContext(); }
internal Idle(LoopContext loop) : base(loop, uv_handle_type.UV_IDLE) { }
internal Check(LoopContext loop) : base(loop, uv_handle_type.UV_CHECK) { }
internal Tcp(LoopContext loop) : base(loop, uv_handle_type.UV_TCP) { }
internal Prepare(LoopContext loop) : base(loop, uv_handle_type.UV_PREPARE) { }