GitHub Actions Runner

This commit is contained in:
Tingluo Huang
2019-10-10 00:52:42 -04:00
commit c8afc84840
1255 changed files with 198670 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using System;
using System.Runtime.Serialization;
namespace GitHub.DistributedTask.WebApi
{
[DataContract]
[KnownType(typeof(AzureKeyVaultVariableValue))]
public class VariableValue
{
public VariableValue()
{
}
public VariableValue(VariableValue value)
: this(value.Value, value.IsSecret)
{
}
public VariableValue(String value, Boolean isSecret)
{
Value = value;
IsSecret = isSecret;
}
[DataMember(EmitDefaultValue = true)]
public String Value
{
get;
set;
}
[DataMember(EmitDefaultValue = false)]
public Boolean IsSecret
{
get;
set;
}
public static implicit operator VariableValue(String value)
{
return new VariableValue(value, false);
}
}
}