mirror of
https://github.com/actions/runner.git
synced 2025-12-13 19:03:44 +00:00
GitHub Actions Runner
This commit is contained in:
38
src/Sdk/DTPipelines/Pipelines/AgentPoolReference.cs
Normal file
38
src/Sdk/DTPipelines/Pipelines/AgentPoolReference.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace GitHub.DistributedTask.Pipelines
|
||||
{
|
||||
[DataContract]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public sealed class AgentPoolReference : ResourceReference
|
||||
{
|
||||
public AgentPoolReference()
|
||||
{
|
||||
}
|
||||
|
||||
private AgentPoolReference(AgentPoolReference referenceToCopy)
|
||||
: base(referenceToCopy)
|
||||
{
|
||||
this.Id = referenceToCopy.Id;
|
||||
}
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Int32 Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public AgentPoolReference Clone()
|
||||
{
|
||||
return new AgentPoolReference(this);
|
||||
}
|
||||
|
||||
public override String ToString()
|
||||
{
|
||||
return base.ToString() ?? this.Id.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user