public CacheAttribute(Type elementType, CacheAttrition cacheAttrition) { Scope = Strings.DeclaringInstance; SizeLimit = Strings.Unbounded; Timeout = Strings.Infinite; ElementType = elementType ?? throw Exception.ArgumentNull(nameof(elementType)); CacheAttrition = cacheAttrition; }
public ThrowsAttribute(Type exceptionType, string diagnosis) { if (string.IsNullOrEmpty(diagnosis)) { throw Exception.ArgumentNullOrEmpty(nameof(diagnosis)); } ExceptionType = exceptionType ?? throw Exception.ArgumentNull(nameof(exceptionType)); Diagnosis = diagnosis; }
public QueueAttribute(Type elementType) { Scope = Strings.DeclaringInstance; SizeLimit = Strings.Unbounded; ElementType = elementType ?? throw Exception.ArgumentNull(nameof(elementType)); }