private Task OnConnectionError(ConnectionErrorCode errorcode) { if (ConnectionError != null) { return(ConnectionError.InvokeAllAsync(this, new ConnectionErrorEventArgs(errorcode))); } else { return(Task.CompletedTask); } }
public ConnectionError(ConnectionErrorCode errorCode, string errorMessage) : this(errorCode) { this.ERROR_MESSAGE = errorMessage; this.SOCKET_ERROR = SocketErrorStatus.Unknown; }
//--------------------------------------------------------Constructor:----------------------------------------------------------------\\ #region --Constructors-- /// <summary> /// Basic Constructor /// </summary> /// <history> /// 05/05/2018 Created [Fabian Sauter] /// </history> public ConnectionError(ConnectionErrorCode errorCode) { this.ERROR_CODE = errorCode; this.ERROR_MESSAGE = null; this.SOCKET_ERROR = SocketErrorStatus.Unknown; }
public ConnectionErrorEventArgs(ConnectionErrorCode errorcode) { ErrorCode = errorcode; }