本文整理汇总了C#中Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle.Validate方法的典型用法代码示例。如果您正苦于以下问题:C# UvLoopHandle.Validate方法的具体用法?C# UvLoopHandle.Validate怎么用?C# UvLoopHandle.Validate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.AspNet.Server.Kestrel.Networking.UvLoopHandle
的用法示例。
在下文中一共展示了UvLoopHandle.Validate方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: tcp_init
public void tcp_init(UvLoopHandle loop, UvTcpHandle handle)
{
loop.Validate();
handle.Validate();
Check(_uv_tcp_init(loop, handle));
}
示例2: walk
public unsafe void walk(UvLoopHandle loop, uv_walk_cb walk_cb, IntPtr arg)
{
loop.Validate();
_uv_walk(loop, walk_cb, arg);
}
示例3: stop
public void stop(UvLoopHandle handle)
{
handle.Validate();
_uv_stop(handle);
}
示例4: run
public int run(UvLoopHandle handle, int mode)
{
handle.Validate();
return Check(_uv_run(handle, mode));
}
示例5: loop_close
public void loop_close(UvLoopHandle handle)
{
handle.Validate(closed: true);
Check(_uv_loop_close(handle.InternalGetHandle()));
}
示例6: async_init
public void async_init(UvLoopHandle loop, UvAsyncHandle handle, uv_async_cb cb)
{
loop.Validate();
handle.Validate();
Check(_uv_async_init(loop, handle, cb));
}
示例7: pipe_init
public void pipe_init(UvLoopHandle loop, UvPipeHandle handle, bool ipc)
{
loop.Validate();
handle.Validate();
Check(_uv_pipe_init(loop, handle, ipc ? -1 : 0));
}