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;
                }
Beispiel #3
0
 public QueueAttribute(Type elementType)
 {
     Scope       = Strings.DeclaringInstance;
     SizeLimit   = Strings.Unbounded;
     ElementType = elementType ?? throw Exception.ArgumentNull(nameof(elementType));
 }