Example #1
0
 public override ICacheProvider Create(string typeName)
 {
     if (string.IsNullOrWhiteSpace(typeName) || typeName.Length <= 1 || !base.IsValidTypeName(typeName))
     {
         throw new System.ArgumentException("The type is invalid!");
     }
     return(FactoryBase <ICacheProvider> .CreateProductInternal(this.AssemblyString, string.Format("{0}.{1}Provider", this.AssemblyString, typeName)));
 }
Example #2
0
        public override ICacheProvider CreateDefault()
        {
            string typeName = this.DefaultTypeName;

            return(FactoryBase <ICacheProvider> .CreateProductInternal(this.AssemblyString, string.Format("{0}.{1}Provider", this.AssemblyString, typeName)));
        }