Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / Castle.MonoRail.Framework / Providers / AsyncActionPair.cs
blobe04307d1bc998a41201c2910a0568093ba93972c
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.MonoRail.Framework.Providers
17 using System.Reflection;
19 /// <summary>
20 /// Contains the method pair for an async action
21 /// </summary>
22 public class AsyncActionPair
24 private readonly string name;
25 private readonly MethodInfo beginActionInfo;
26 private readonly MethodInfo endActionInfo;
28 /// <summary>
29 /// Gets the begin action info.
30 /// </summary>
31 /// <value>The begin action info.</value>
32 public MethodInfo BeginActionInfo
34 get { return beginActionInfo; }
37 /// <summary>
38 /// Gets the end action info.
39 /// </summary>
40 /// <value>The end action info.</value>
41 public MethodInfo EndActionInfo
43 get { return endActionInfo; }
46 /// <summary>
47 /// Gets the name of this action
48 /// </summary>
49 /// <value>The name.</value>
50 public string Name
52 get { return name; }
55 /// <summary>
56 /// Initializes a new instance of the <see cref="AsyncActionPair"/> class.
57 /// </summary>
58 /// <param name="name">The name.</param>
59 /// <param name="beginActionInfo">The begin action info.</param>
60 /// <param name="endActionInfo">The end action info.</param>
61 public AsyncActionPair(string name, MethodInfo beginActionInfo, MethodInfo endActionInfo)
63 this.name = name;
64 this.beginActionInfo = beginActionInfo;
65 this.endActionInfo = endActionInfo;
69 /// <summary>
70 /// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
71 /// </summary>
72 /// <returns>
73 /// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
74 /// </returns>
75 public override string ToString()
77 return Name;