1 |
|
/* |
2 |
|
* DotGNU ASP.GNU Implementation |
3 |
|
* |
4 |
|
* Copyright (C) 2003 Nicolai P Guba DotGNU Project |
5 |
|
* |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
* it under the terms of the GNU General Public License as published by |
9 |
|
* the Free Software Foundation; either version 2 of the License, or |
10 |
|
* (at your option) any later version. |
11 |
|
* |
12 |
|
* This program is distributed in the hope that it will be useful, |
13 |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
* GNU General Public License for more details. |
16 |
|
* |
17 |
|
* You should have received a copy of the GNU General Public License |
18 |
|
* along with this program; if not, write to the Free Software |
19 |
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
20 |
|
* |
21 |
|
* $Revision$ $Date$ |
22 |
|
* |
23 |
|
* -------------------------------------------------------------------------- |
24 |
|
* Authors: |
25 |
|
* Chris Smith |
26 |
|
* Nicolai P Guba |
27 |
|
*/ |
28 |
|
namespace System.Web.Services |
29 |
|
{ |
30 |
|
[AttributeUsage( AttributeTargets.Method, AllowMultiple = false, Inherited = false )] |
31 |
|
public sealed class WebMethodAttribute : Attribute |
32 |
|
{ |
33 |
|
private String descText; |
34 |
|
private String method; |
35 |
|
private bool sessionEnabled; |
36 |
|
|
37 |
|
public WebMethodAttribute() |
38 |
|
{ |
39 |
|
this.sessionEnabled = false; |
40 |
|
} |
41 |
|
|
42 |
|
public WebMethodAttribute( String method ) |
43 |
|
{ |
44 |
|
this.method = method; |
45 |
|
this.sessionEnabled = false; |
46 |
|
} |
47 |
|
|
48 |
|
public String Description |
49 |
|
{ |
50 |
|
get { return descText; } |
51 |
|
set { descText = value; } |
52 |
|
} |
53 |
|
|
54 |
|
public bool EnableSession |
55 |
|
{ |
56 |
|
get { return sessionEnabled; } |
57 |
|
set { sessionEnabled = value; } |
58 |
|
} |
59 |
|
|
60 |
|
public String Method |
61 |
|
{ |
62 |
|
get { return method; } |
63 |
|
set { method = value; } |
64 |
|
} |
65 |
|
} |
66 |
|
} |
67 |
|
|
68 |
|
|