Inheritance: System.EventArgs
Example #1
0
 protected override void OnClose(UvArgs args)
 {
     if (!args.Successful)
     {
         _error = args;
     }
 }
Example #2
0
        private void OnCopyInternal(UvArgs args)
        {
            var callback = _copyCallback;

            _copyCallback = null;
            var copy = _copy;

            _copy = null;

            callback.Invoke(args.Code, this.OnCopy, this.Copied);
        }
Example #3
0
 protected override void OnWrite(UvDataArgs args)
 {
     if (args.Successful)
     {
         _read.Read();
     }
     else
     {
         _error = args;
         _read.Close();
         this.Close();
     }
 }
Example #4
0
            protected override void OnRead(UvDataArgs args)
            {
                if (args.Code > 0)
                {
                    _write.Write(args.Data);
                }
                else
                {
                    if (!args.Successful)
                    {
                        _error = args;
                    }

                    this.Close();
                    _write.Close();
                }
            }
Example #5
0
 protected override void OnOpen(UvArgs args)
 {
     if (args.Successful)
     {
         if (_write.Status == FileStatus.Open)
         {
             this.Read();
         }
         else if (_write.Status == FileStatus.Closed)
         {
             this.Close();
         }
     }
     else
     {
         _error = args;
         if (_write.Status == FileStatus.Open)
         {
             _write.Close();
         }
     }
 }
Example #6
0
 protected virtual void OnConnect(UvArgs args)
 {
 }
Example #7
0
 private void FileOpened(object sender, UvArgs e)
 {
     this.FileCompleted();
 }
Example #8
0
 protected virtual void OnDelete(UvArgs args)
 {
 }
Example #9
0
 protected override void OnClose(UvArgs args)
 {
     this.Server.RemoveClient(this);
     base.OnClose(args);
 }
Example #10
0
 protected override void OnOpen(UvArgs args)
 {
     if (args.Successful)
     {
         if (_read.Status == FileStatus.Open)
             _read.Read();
         else if (_read.Status == FileStatus.Closed)
             this.Close();
     }
     else
     {
         _error = args;
         if (_read.Status == FileStatus.Open)
             _read.Close();
     }
 }
Example #11
0
 protected virtual void OnShutdown(UvArgs args)
 {
 }
Example #12
0
 protected override void OnClose(UvArgs args)
 {
     args.Throw();
 }
Example #13
0
 protected override void OnClose(UvArgs args)
 {
     this.DisconnectAllClients();
     base.OnClose(args);
 }
Example #14
0
 protected virtual void OnConnect(UvArgs args)
 {
 }
Example #15
0
 protected virtual void OnClose(UvArgs args)
 {
 }
Example #16
0
 protected virtual void OnClientConnected(UvArgs<TcpServerSocket> args)
 {
 }
Example #17
0
 protected virtual void OnCreateDirectory(UvArgs args)
 {
 }
Example #18
0
 protected virtual void OnCopy(UvArgs args)
 {
 }
Example #19
0
 protected virtual void OnResolve(UvArgs<IPEndPoint[]> args)
 {
 }
Example #20
0
 protected virtual void OnClientConnected(UvArgs <TcpServerSocket> args)
 {
 }
Example #21
0
 protected virtual void OnOpen(UvArgs args)
 {
 }
Example #22
0
 protected override void OnClose(UvArgs args)
 {
     this.DisconnectAllClients();
     base.OnClose(args);
 }
Example #23
0
 private void FileClosed(object sender, UvArgs e)
 {
     this.FileCompleted();
 }
Example #24
0
 protected override void OnOpen(UvArgs args)
 {
     args.Throw();
     this.Read();
 }
Example #25
0
 protected virtual void OnCopy(UvArgs args)
 {
 }
Example #26
0
 protected override void OnOpen(UvArgs args)
 {
     args.Throw();
     this.Write(Encoding.UTF8.GetBytes(_data));
 }
Example #27
0
 protected virtual void OnDelete(UvArgs args)
 {
 }
Example #28
0
            protected override void OnRead(UvDataArgs args)
            {
                if (args.Code > 0)
                {
                    _write.Write(args.Data);
                }
                else
                {
                    if(!args.Successful)
                        _error = args;

                    this.Close();
                    _write.Close();
                }
            }
Example #29
0
        private void OnCopyInternal(UvArgs args)
        {
            var callback = _copyCallback;
            _copyCallback = null;
            var copy = _copy;
            _copy = null;

            callback.Invoke(args.Code, this.OnCopy, this.Copied);
        }
Example #30
0
 protected override void OnWrite(UvDataArgs args)
 {
     if (args.Successful)
     {
         _read.Read();
     }
     else
     {
         _error = args;
         _read.Close();
         this.Close();
     }
 }
Example #31
0
 protected override void OnClose(UvArgs args)
 {
     this.Server.RemoveClient(this);
     base.OnClose(args);
 }
Example #32
0
 protected override void OnClose(UvArgs args)
 {
     if (!args.Successful)
         _error = args;
 }
Example #33
0
 protected virtual void OnRemoveDirectory(UvArgs args)
 {
 }
Example #34
0
 protected virtual void OnCreateDirectory(UvArgs args)
 {
 }
Example #35
0
 protected virtual void OnShutdown(UvArgs args)
 {
 }
Example #36
0
 protected virtual void OnRemoveDirectory(UvArgs args)
 {
 }
Example #37
0
 protected virtual void OnResolve(UvArgs <IPEndPoint[]> args)
 {
 }
Example #38
0
 protected virtual void OnClose(UvArgs args)
 {
 }
Example #39
0
 protected virtual void OnOpen(UvArgs args)
 {
 }