// Duncan Mak (duncan@ximian.com)
//
// (C) Ximian, Inc.
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
string varyByControls;
string varyByCustom;
string varyByParams;
-#if NET_1_1
bool shared;
-#endif
-#if NET_2_0
string sqlDependency;
-#endif
-
public PartialCachingAttribute (int duration)
{
this.varyByCustom = varyByCustom;
}
-#if NET_1_1
public PartialCachingAttribute (int duration, string varyByParams, string varyByControls,
string varyByCustom, bool shared)
{
this.varyByCustom = varyByCustom;
this.shared = shared;
}
-#endif
-#if NET_2_0
+
public PartialCachingAttribute (int duration, string varyByParams, string varyByControls,
string varyByCustom, string sqlDependency, bool shared)
{
this.sqlDependency = sqlDependency;
this.shared = shared;
}
-#endif
public int Duration {
get { return duration; }
}
-
+#if NET_4_0
+ public string ProviderName {
+ get; set;
+ }
+#endif
public string VaryByParams {
get { return varyByParams; }
}
get { return varyByCustom; }
}
-#if NET_1_1
public bool Shared {
get { return shared; }
}
-#endif
-#if NET_2_0
+
public string SqlDependency {
get { return sqlDependency; }
}
-#endif
}
}