Skip to content

Commit

Permalink
Added missing xml comments for IRouteCache and default impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodejunkie committed Feb 3, 2012
1 parent c51c9cb commit 1b2152b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Nancy/Routing/DefaultRouteCacheProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public DefaultRouteCacheProvider(Func<IRouteCache> routeCacheFactory)
this.diagnosticObject = new RouteCacheDiagnostics(this);
}

/// <summary>
/// Gets an instance of the route cache.
/// </summary>
/// <returns>An <see cref="IRouteCache"/> instance.</returns>
public IRouteCache GetCache()
{
return this.RouteCacheFactory();
Expand Down
6 changes: 5 additions & 1 deletion src/Nancy/Routing/IRouteCacheProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
/// <summary>
/// It's not safe for a module to take a dependency on the cache (cyclic dependency)
///
/// We provide an IRouteCacheProvider instead.
/// We provide an <see cref="IRouteCacheProvider"/> instead.
///
/// It is *not* safe to call GetCache() inside a NancyModule constructor, although that shouldn't be necessary anyway.
/// </summary>
public interface IRouteCacheProvider
{
/// <summary>
/// Gets an instance of the route cache.
/// </summary>
/// <returns>An <see cref="IRouteCache"/> instance.</returns>
IRouteCache GetCache();
}
}

0 comments on commit 1b2152b

Please sign in to comment.