~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/ServiceStack/src/ServiceStack.Interfaces/ServiceHost/RestServiceAttribute.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
 
 
3
namespace ServiceStack.ServiceHost
 
4
{
 
5
        /// <summary>
 
6
        ///             Used to decorate Request DTO's to associate a RESTful request 
 
7
        ///             path mapping with a service.  Multiple attributes can be applied to 
 
8
        ///             each request DTO, to map multiple paths to the service.
 
9
        /// </summary>
 
10
    [Obsolete("Use [Route] instead of [RestService].")]
 
11
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
 
12
    public class RestServiceAttribute
 
13
        : RouteAttribute
 
14
    {
 
15
        /// <summary>
 
16
        ///     <para>Initializes an instance of the <see cref="RestServiceAttribute"/> class.</para>
 
17
        /// </summary>
 
18
        /// <param name="path">
 
19
        ///     <para>The path template to map to the request.  See 
 
20
        ///             <see cref="Path">RestServiceAttribute.Path</see>
 
21
        ///             for details on the correct format.</para>
 
22
        /// </param>
 
23
        public RestServiceAttribute(string path)
 
24
            : base(path, null)
 
25
        {
 
26
        }
 
27
 
 
28
        /// <summary>
 
29
        ///     <para>Initializes an instance of the <see cref="RestServiceAttribute"/> class.</para>
 
30
        /// </summary>
 
31
        /// <param name="path">
 
32
        ///     <para>The path template to map to the request.  See 
 
33
        ///             <see cref="Path">RestServiceAttribute.Path</see>
 
34
        ///             for details on the correct format.</para>
 
35
        /// </param>
 
36
        /// <param name="verbs">A comma-delimited list of HTTP verbs supported by the 
 
37
        ///             service.  If unspecified, all verbs are assumed to be supported.</param>
 
38
        public RestServiceAttribute(string path, string verbs)
 
39
            : base(path, verbs)
 
40
        {
 
41
        }
 
42
    }
 
43
}
 
 
b'\\ No newline at end of file'