forked from dotnet/arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIWorkItemDefinition.cs
29 lines (24 loc) · 924 Bytes
/
IWorkItemDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Microsoft.DotNet.Helix.Client
{
/// <summary>
/// Work Item definition with all required information already specified
/// that can either completed by calling <see cref="AttachToJob"/> or further extended.
/// </summary>
public interface IWorkItemDefinition
{
string WorkItemName { get; }
string Command { get; }
/// <summary>
/// Specifies timeout for the work item to finish inside of Helix.
/// </summary>
IWorkItemDefinition WithTimeout(TimeSpan timeout);
/// <summary>
/// Complete work item and return to specification of the overarching job.
/// </summary>
/// <returns>Fluent job builder.</returns>
IJobDefinition AttachToJob();
}
}