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."); } }
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; }
protected AuthenticationServerPayload(AuthOperationCode operationCode) { OperationCode = operationCode; }
protected AuthenticationClientPayload(AuthOperationCode operationCode) { OperationCode = operationCode; }