1
0
Fork 0
mirror of https://gitlab.com/sbrl/GalleryShare.git synced 2018-06-12 22:45:16 +00:00
GalleryShare/GalleryShare/RequestRouter/HttpRequestRouteAttribute.cs
Starbeamrainbowlabs 60b7560d21 Initial routing rewrite.
The routes aren't functioning correctly yet.
2016-07-16 15:46:53 +01:00

23 lines
634 B
C#

using System;
namespace GalleryShare.RequestRouter
{
/// <summary>
/// Defines a class to be a http reqeust router that's part of the given routing group.
/// </summary>
/// <remarks>
/// This class is an attribute. Please don't try to inherit from it.
/// To create a new request router, please implement GalleryShare.RequestRouter.IRequestRoute, not this class.
/// </remarks>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class HttpRequestRoute : Attribute
{
public string RoutingGroup;
public HttpRequestRoute(string inRoutingGroup)
{
RoutingGroup = inRoutingGroup;
}
}
}