Esempio n. 1
0
        /// <summary>
        /// Create a new auth info status.
        /// </summary>
        /// <param name="AuthInfo">The unique identification of an auth info.</param>
        /// <param name="Status">The current status of an auth info.</param>
        public AuthInfoStatus(AAuthentication AuthInfo,
                              AuthInfoStatusType Status)

        {
            this.Id     = AuthInfo ?? throw new ArgumentNullException(nameof(AuthInfo), "The given unique identification of an auth info must not be null!");
            this.Status = Status;
        }
Esempio n. 2
0
        /// <summary>
        /// Create a new auth info status.
        /// </summary>
        /// <param name="AuthInfo">The unique identification of an auth info.</param>
        /// <param name="Status">The current status of an auth info.</param>
        public AuthInfoStatus(AuthInfo AuthInfo,
                              AuthInfoStatusType Status)

        {
            #region Initial checks

            if (AuthInfo == null)
            {
                throw new ArgumentNullException(nameof(AuthInfo), "The given unique identification of an auth info must not be null!");
            }

            #endregion

            this._Id     = AuthInfo;
            this._Status = Status;
        }