1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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
;
20 /// Contains the method pair for an async action
22 public class AsyncActionPair
24 private readonly string name
;
25 private readonly MethodInfo beginActionInfo
;
26 private readonly MethodInfo endActionInfo
;
29 /// Gets the begin action info.
31 /// <value>The begin action info.</value>
32 public MethodInfo BeginActionInfo
34 get { return beginActionInfo; }
38 /// Gets the end action info.
40 /// <value>The end action info.</value>
41 public MethodInfo EndActionInfo
43 get { return endActionInfo; }
47 /// Gets the name of this action
49 /// <value>The name.</value>
56 /// Initializes a new instance of the <see cref="AsyncActionPair"/> class.
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
)
64 this.beginActionInfo
= beginActionInfo
;
65 this.endActionInfo
= endActionInfo
;
70 /// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
73 /// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
75 public override string ToString()