Beispiel #1
0
        //触发服务启动异常
        protected virtual bool OnServiceException(InkeyException ex)
        {
            EventHandler <ErrorEventArgs> evt = ServiceException;

            if (evt != null)
            {
                evt(this, new ErrorEventArgs(ex));
                return(true);
            }
            return(false);
        }
 public ErrorEventArgs(InkeyException exception)
 {
     Exception = exception;
 }