microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/Plugins/DependencyAttribute.cs
27lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.Apps.Plugins; |
| 5 | |
| 6 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true)] |
| 7 | public class DependencyAttribute : Attribute |
| 8 | { |
| 9 | public string? Name { get; set; } |
| 10 | public bool Optional { get; set; } = false; |
| 11 | |
| 12 | public DependencyAttribute() : base() |
| 13 | { |
| 14 | |
| 15 | } |
| 16 | |
| 17 | public DependencyAttribute(string name) : base() |
| 18 | { |
| 19 | Name = name; |
| 20 | } |
| 21 | |
| 22 | public DependencyAttribute(string name, bool optional) : base() |
| 23 | { |
| 24 | Name = name; |
| 25 | Optional = optional; |
| 26 | } |
| 27 | } |