Added RedirectUsingNamedRoute
[castle.git] / InversionOfControl / Castle.Windsor.Tests / Components / CalculatorServiceWithProxyBehavior.cs
blobd1930291b3783dccb706a559370369ab26cf1f96
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.Windsor.Tests.Components
17 using System;
18 using Castle.Core;
19 using Castle.Core.Interceptor;
21 /// <summary>
22 /// Summary description for CalculatorServiceWithAttributes.
23 /// </summary>
24 [Interceptor(typeof(StandardInterceptor))]
25 public class CalculatorServiceWithMultipleInterfaces : CalculatorService, IDisposable
27 public CalculatorServiceWithMultipleInterfaces()
31 public void Dispose()
36 /// <summary>
37 /// Summary description for CalculatorServiceWithAttributes.
38 /// </summary>
39 [Interceptor(typeof(StandardInterceptor))]
40 [ComponentProxyBehavior(UseSingleInterfaceProxy = true)]
41 public class CalculatorServiceWithSingleProxyBehavior : CalculatorService, IDisposable
43 public CalculatorServiceWithSingleProxyBehavior()
47 public void Dispose()
52 /// <summary>
53 /// Summary description for CalculatorServiceWithAttributes.
54 /// </summary>
55 [Interceptor(typeof(StandardInterceptor))]
56 [ComponentProxyBehavior(UseSingleInterfaceProxy = false)]
57 public class CalculatorServiceWithoutSingleProxyBehavior : CalculatorService, IDisposable
59 public CalculatorServiceWithoutSingleProxyBehavior()
63 public void Dispose()
68 /// <summary>
69 /// Summary description for CalculatorServiceWithAttributes.
70 /// </summary>
71 [Interceptor(typeof(StandardInterceptor))]
72 [ComponentProxyBehavior(UseMarshalByRefProxy = true)]
73 public class CalculatorServiceWithMarshalByRefProxyBehavior : CalculatorService, IDisposable
75 public CalculatorServiceWithMarshalByRefProxyBehavior()
79 public void Dispose()