33using System . Linq ;
44using System . Web . Caching ;
55using System . Web . Routing ;
6+ using DevTrends . MvcDonutCaching . Annotations ;
67
78namespace DevTrends . MvcDonutCaching
89{
@@ -20,7 +21,7 @@ public OutputCacheManager()
2021 internal OutputCacheManager ( OutputCacheProvider outputCacheProvider , IKeyBuilder keyBuilder )
2122 {
2223 _outputCacheProvider = outputCacheProvider ;
23- _keyBuilder = keyBuilder ;
24+ _keyBuilder = keyBuilder ;
2425 }
2526
2627 public void AddItem ( string key , CacheItem cacheItem , DateTime utcExpiry )
@@ -38,7 +39,7 @@ public CacheItem GetItem(string key)
3839 /// </summary>
3940 /// <param name="controllerName">The name of the controller that contains the action method.</param>
4041 /// <param name="actionName">The name of the controller action method.</param>
41- public void RemoveItem ( string controllerName , string actionName )
42+ public void RemoveItem ( [ AspMvcController ] string controllerName , [ AspMvcAction ] string actionName )
4243 {
4344 RemoveItem ( controllerName , actionName , null ) ;
4445 }
@@ -49,7 +50,7 @@ public void RemoveItem(string controllerName, string actionName)
4950 /// <param name="controllerName">The name of the controller that contains the action method.</param>
5051 /// <param name="actionName">The name of the controller action method.</param>
5152 /// <param name="routeValues">An object that contains the parameters for a route.</param>
52- public void RemoveItem ( string controllerName , string actionName , object routeValues )
53+ public void RemoveItem ( [ AspMvcController ] string controllerName , [ AspMvcAction ] string actionName , object routeValues )
5354 {
5455 RemoveItem ( controllerName , actionName , new RouteValueDictionary ( routeValues ) ) ;
5556 }
@@ -60,7 +61,7 @@ public void RemoveItem(string controllerName, string actionName, object routeVal
6061 /// <param name="controllerName">The name of the controller that contains the action method.</param>
6162 /// <param name="actionName">The name of the controller action method.</param>
6263 /// <param name="routeValues">A dictionary that contains the parameters for a route.</param>
63- public void RemoveItem ( string controllerName , string actionName , RouteValueDictionary routeValues )
64+ public void RemoveItem ( [ AspMvcController ] string controllerName , [ AspMvcAction ] string actionName , RouteValueDictionary routeValues )
6465 {
6566 var key = _keyBuilder . BuildKey ( controllerName , actionName , routeValues ) ;
6667
@@ -79,7 +80,7 @@ public void RemoveItems()
7980 /// Removes all output cache entries for the specified controller.
8081 /// </summary>
8182 /// <param name="controllerName">The name of the controller.</param>
82- public void RemoveItems ( string controllerName )
83+ public void RemoveItems ( [ AspMvcController ] string controllerName )
8384 {
8485 RemoveItems ( controllerName , null , null ) ;
8586 }
@@ -89,7 +90,7 @@ public void RemoveItems(string controllerName)
8990 /// </summary>
9091 /// <param name="controllerName">The name of the controller that contains the action method.</param>
9192 /// <param name="actionName">The name of the controller action method.</param>
92- public void RemoveItems ( string controllerName , string actionName )
93+ public void RemoveItems ( [ AspMvcController ] string controllerName , [ AspMvcAction ] string actionName )
9394 {
9495 RemoveItems ( controllerName , actionName , null ) ;
9596 }
@@ -100,7 +101,7 @@ public void RemoveItems(string controllerName, string actionName)
100101 /// <param name="controllerName">The name of the controller that contains the action method.</param>
101102 /// <param name="actionName">The name of the controller action method.</param>
102103 /// <param name="routeValues">A dictionary that contains the parameters for a route.</param>
103- public void RemoveItems ( string controllerName , string actionName , RouteValueDictionary routeValues )
104+ public void RemoveItems ( [ AspMvcController ] string controllerName , [ AspMvcAction ] string actionName , RouteValueDictionary routeValues )
104105 {
105106 var enumerableCache = _outputCacheProvider as IEnumerable < KeyValuePair < string , object > > ;
106107
0 commit comments