microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/Annotations/ContextAccessorAttribute.cs
14lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Reflection; |
| 5 | |
| 6 | using Microsoft.Teams.Api.Activities; |
| 7 | |
| 8 | namespace Microsoft.Teams.Apps.Annotations; |
| 9 | |
| 10 | [AttributeUsage(AttributeTargets.Parameter, Inherited = true)] |
| 11 | public abstract class ContextAccessorAttribute : Attribute |
| 12 | { |
| 13 | public abstract object? GetValue(IContext<IActivity> context, ParameterInfo parameter); |
| 14 | } |