forked from NancyFx/Nancy
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathIMetadataModule.cs
More file actions
24 lines (21 loc) · 825 Bytes
/
IMetadataModule.cs
File metadata and controls
24 lines (21 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace Nancy.Metadata.Modules
{
using System;
using Nancy.Routing;
/// <summary>
/// Defines facilities for obtaining metadata for a given <see cref="RouteDescription"/>.
/// </summary>
public interface IMetadataModule
{
/// <summary>
/// Gets the <see cref="Type"/> of metadata the <see cref="IMetadataModule"/> returns.
/// </summary>
Type MetadataType { get; }
/// <summary>
/// Returns metadata for the given <see cref="RouteDescription"/>.
/// </summary>
/// <param name="description">The route to obtain metadata for.</param>
/// <returns>An instance of <see cref="MetadataType"/> if one exists, otherwise null.</returns>
object GetMetadata(RouteDescription description);
}
}