Beispiel #1
0
 public AuthenticationClientPayloadAttribute(AuthOperationCode operationCode)
     : base(operationCode, typeof(AuthenticationClientPayload))
 {
     if (!Enum.IsDefined(typeof(AuthOperationCode), operationCode))
     {
         throw new ArgumentOutOfRangeException(nameof(operationCode), "Value should be defined in the AuthOperationCode enum.");
     }
 }
Beispiel #2
0
 protected AuthenticationPayloadAttribute(AuthOperationCode operationCode, Type payloadBaseType)
     : base((int)operationCode, payloadBaseType)
 {
     if (!Enum.IsDefined(typeof(AuthOperationCode), operationCode))
     {
         throw new ArgumentOutOfRangeException(nameof(operationCode), "Value should be defined in the AuthOperationCode enum.");
     }
 }
        public AuthenticationPacketHeader(AuthOperationCode authenticationOpCode)
        {
            if (!Enum.IsDefined(typeof(AuthOperationCode), authenticationOpCode))
            {
                throw new ArgumentOutOfRangeException(nameof(authenticationOpCode), "Value should be defined in the AuthOperationCode enum.");
            }

            OperationCode = authenticationOpCode;
        }
Beispiel #4
0
 protected AuthenticationServerPayload(AuthOperationCode operationCode)
 {
     OperationCode = operationCode;
 }
 protected AuthenticationClientPayload(AuthOperationCode operationCode)
 {
     OperationCode = operationCode;
 }