예제 #1
0
 public ErrorCode(IErrorCode other, ArgumentPlaceholder <string> description = default, ArgumentPlaceholder <SeverityLevel?> severityLevel = default)
     : this(
         identifier : other.EnsureNotNull(nameof(other)).Value.Identifier,
         severityLevel : severityLevel.Substitute(value : other.SeverityLevel),
         description : description.Substitute(value : other.Description))
 {
 }
예제 #2
0
 public InteractionFaultCode(IErrorCode code)
 {
     code.EnsureNotNull(nameof(code));
     //
     Identifier    = code.Identifier;
     Description   = code.Description;
     SeverityLevel = code.SeverityLevel;
 }