ParameterExecutorValue.cs 838 B

12345678910111213141516171819202122
  1. namespace Quadarax.Application.QLiberace.Common.Executor
  2. {
  3. public sealed class ParameterExecutorValue : IParametricExecutorValue
  4. {
  5. public string Code { get; }
  6. public string TypeQualifiedName { get;}
  7. public string? Value { get; }
  8. public bool IsOutput { get; }
  9. public ParameterExecutorValue(string code, string typeQualifiedName, string? value, bool isOutput)
  10. {
  11. if (string.IsNullOrEmpty(code)) throw new ArgumentNullException(nameof(code));
  12. Code = code;
  13. if (string.IsNullOrEmpty(typeQualifiedName)) throw new ArgumentNullException(nameof(typeQualifiedName));
  14. IsOutput = isOutput;
  15. TypeQualifiedName = typeQualifiedName;
  16. Value = value;
  17. IsOutput = isOutput;
  18. }
  19. }
  20. }