| | | 1 | | // |
| | | 2 | | // Copyright 2011 Ekon Benefits |
| | | 3 | | // |
| | | 4 | | // Licensed under the Apache License, Version 2.0 (the "License"); |
| | | 5 | | // you may not use this file except in compliance with the License. |
| | | 6 | | // You may obtain a copy of the License at |
| | | 7 | | // |
| | | 8 | | // http://www.apache.org/licenses/LICENSE-2.0 |
| | | 9 | | // |
| | | 10 | | // Unless required by applicable law or agreed to in writing, software |
| | | 11 | | // distributed under the License is distributed on an "AS IS" BASIS, |
| | | 12 | | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | 13 | | // See the License for the specific language governing permissions and |
| | | 14 | | // limitations under the License. |
| | | 15 | | |
| | | 16 | | |
| | | 17 | | using System; |
| | | 18 | | |
| | | 19 | | |
| | | 20 | | namespace ImpromptuInterface.Build |
| | | 21 | | { |
| | | 22 | | /// <summary> |
| | | 23 | | /// Meta info describing proxy usage. Can be used to preload proxy. |
| | | 24 | | /// </summary> |
| | | 25 | | [AttributeUsage(AttributeTargets.Class)] |
| | | 26 | | [Serializable] |
| | | 27 | | public sealed class ActLikeProxyAttribute:Attribute |
| | | 28 | | { |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the <see cref="ActLikeProxyAttribute"/> class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="interfaces">The interfaces.</param> |
| | | 33 | | /// <param name="context">The context.</param> |
| | 0 | 34 | | public ActLikeProxyAttribute(Type[] interfaces, Type context) |
| | | 35 | | { |
| | 0 | 36 | | Interfaces = interfaces; |
| | 0 | 37 | | Context = context; |
| | 0 | 38 | | } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// Gets or sets the interfaces. |
| | | 42 | | /// </summary> |
| | | 43 | | /// <value>The interfaces.</value> |
| | | 44 | | public Type[] Interfaces { get; set; } |
| | | 45 | | /// <summary> |
| | | 46 | | /// Gets or sets the context. |
| | | 47 | | /// </summary> |
| | | 48 | | /// <value>The context.</value> |
| | | 49 | | public Type Context { get; set; } |
| | | 50 | | } |
| | | 51 | | } |