示例#1
0
 public CacheAttribute(Type elementType, CacheAttrition cacheAttrition)
 {
     Scope          = Strings.DeclaringInstance;
     SizeLimit      = Strings.Unbounded;
     Timeout        = Strings.Infinite;
     ElementType    = elementType ?? throw Exception.ArgumentNull(nameof(elementType));
     CacheAttrition = cacheAttrition;
 }
示例#2
0
                public ThrowsAttribute(Type exceptionType, string diagnosis)
                {
                    if (string.IsNullOrEmpty(diagnosis))
                    {
                        throw Exception.ArgumentNullOrEmpty(nameof(diagnosis));
                    }

                    ExceptionType = exceptionType ?? throw Exception.ArgumentNull(nameof(exceptionType));
                    Diagnosis     = diagnosis;
                }
示例#3
0
 public QueueAttribute(Type elementType)
 {
     Scope       = Strings.DeclaringInstance;
     SizeLimit   = Strings.Unbounded;
     ElementType = elementType ?? throw Exception.ArgumentNull(nameof(elementType));
 }