public ContextFieldAttribute(object key, ContextUsage usage, bool isOption) { Key = key; Usage = usage; Optional = isOption; }
/// <summary> /// Creates a new context attribute that stores information that can be passed between build tasks. /// </summary> /// <param name="usage">The usage behavior for the attribute. By default it is set to <see cref="ContextUsage.InOut"/>.</param> /// <param name="optional">Set to true if using the attribute is optional. Set to false otherwise.</param> public InjectContextAttribute(ContextUsage usage = ContextUsage.InOut, bool optional = false) { this.Usage = usage; Optional = optional; }
public ContextFieldAttribute(object key, ContextUsage usage) : this(key, usage, true) { }
public ContextIEAttribute(object key, ContextUsage usage = ContextUsage.Inject, bool isOption = true) { Key = key; Usage = usage; Optional = isOption; }