コード例 #1
0
        public Operation Validate()
        => Operation.Try(() =>
        {
            CustomDataType
            .ThrowIf(
                string.IsNullOrWhiteSpace,
                new GaiaException(Axis.Pollux.Common.Exceptions.ErrorCodes.InvalidContractParamState));

            Admins
            .Any(IsNotValidDescriptor)
            .ThrowIf(true, new GaiaException(Axis.Pollux.Common.Exceptions.ErrorCodes.InvalidContractParamState));
        });