mirror of
https://github.com/actions/runner.git
synced 2025-12-30 05:21:41 +08:00
GitHub Actions Runner
This commit is contained in:
38
src/Sdk/DTPipelines/Pipelines/ServiceEndpointReference.cs
Normal file
38
src/Sdk/DTPipelines/Pipelines/ServiceEndpointReference.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 ServiceEndpointReference : ResourceReference
|
||||
{
|
||||
public ServiceEndpointReference()
|
||||
{
|
||||
}
|
||||
|
||||
private ServiceEndpointReference(ServiceEndpointReference referenceToCopy)
|
||||
: base(referenceToCopy)
|
||||
{
|
||||
this.Id = referenceToCopy.Id;
|
||||
}
|
||||
|
||||
[DataMember(EmitDefaultValue = false)]
|
||||
public Guid Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ServiceEndpointReference Clone()
|
||||
{
|
||||
return new ServiceEndpointReference(this);
|
||||
}
|
||||
|
||||
public override String ToString()
|
||||
{
|
||||
return base.ToString() ?? this.Id.ToString("D");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user