Beispiel #1
0
        public AsyncWatcher(LibEvLoop loop, AsyncWatcherCallback callback)
            : base(loop)
        {
            this.callback = callback;

            watcher_ptr = manos_async_watcher_create(unmanaged_callback, GCHandle.ToIntPtr(gc_handle));
        }
Beispiel #2
0
        public AsyncWatcher(LibEvLoop loop, AsyncWatcherCallback callback)
            : base(loop)
        {
            this.callback = callback;

            watcher_ptr = manos_async_watcher_create(unmanaged_callback, GCHandle.ToIntPtr(gc_handle));
        }
Beispiel #3
0
        public AsyncWatcher(Loop loop, AsyncWatcherCallback callback) : base(loop)
        {
            this.callback = callback;

            unmanaged_watcher          = new UnmanagedAsyncWatcher();
            unmanaged_watcher.callback = unmanaged_callback_ptr;

            InitializeUnmanagedWatcher(unmanaged_watcher);
        }
Beispiel #4
0
        public AsyncWatcher(Loop loop, AsyncWatcherCallback callback)
            : base(loop)
        {
            this.callback = callback;

            unmanaged_watcher = new UnmanagedAsyncWatcher ();
            unmanaged_watcher.callback = CallbackFunctionPtr;

            InitializeUnmanagedWatcher (unmanaged_watcher);
        }
Beispiel #5
0
 public override IAsyncWatcher NewAsyncWatcher(AsyncWatcherCallback cb)
 {
     return new AsyncWatcher(loop, cb);
 }
Beispiel #6
0
 public override IAsyncWatcher NewAsyncWatcher(AsyncWatcherCallback cb)
 {
     return(new AsyncWatcher(evloop, cb));
 }
Beispiel #7
0
 public abstract IAsyncWatcher NewAsyncWatcher(AsyncWatcherCallback cb);
Beispiel #8
0
 public AsyncWatcher(Loop loop, AsyncWatcherCallback cb)
     : base(loop)
 {
     this.cb = cb;
 }
Beispiel #9
0
 public abstract IAsyncWatcher NewAsyncWatcher(AsyncWatcherCallback cb);