mirror of
https://github.com/actions/runner.git
synced 2025-12-16 15:06:49 +00:00
GitHub Actions Runner
This commit is contained in:
60
src/Sdk/DTWebApi/WebApi/TaskOrchestrationOwner.cs
Normal file
60
src/Sdk/DTWebApi/WebApi/TaskOrchestrationOwner.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using GitHub.Services.WebApi;
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace GitHub.DistributedTask.WebApi
|
||||
{
|
||||
[DataContract]
|
||||
public class TaskOrchestrationOwner : ICloneable
|
||||
{
|
||||
public TaskOrchestrationOwner()
|
||||
{
|
||||
}
|
||||
|
||||
private TaskOrchestrationOwner(TaskOrchestrationOwner ownerToBeCloned)
|
||||
{
|
||||
this.Id = ownerToBeCloned.Id;
|
||||
this.Name = ownerToBeCloned.Name;
|
||||
this.m_links = ownerToBeCloned.Links.Clone();
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public Int32 Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public String Name
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ReferenceLinks Links
|
||||
{
|
||||
get
|
||||
{
|
||||
if (m_links == null)
|
||||
{
|
||||
m_links = new ReferenceLinks();
|
||||
}
|
||||
return m_links;
|
||||
}
|
||||
}
|
||||
|
||||
public TaskOrchestrationOwner Clone()
|
||||
{
|
||||
return new TaskOrchestrationOwner(this);
|
||||
}
|
||||
|
||||
Object ICloneable.Clone()
|
||||
{
|
||||
return this.Clone();
|
||||
}
|
||||
|
||||
[DataMember(Name = "_links")]
|
||||
private ReferenceLinks m_links;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user