mirror of https://github.com/dotnet/tye.git
6 changed files with 112 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
// Licensed to the .NET Foundation under one or more agreements.
|
|||
// The .NET Foundation licenses this file to you under the MIT license.
|
|||
// See the LICENSE file in the project root for more information.
|
|||
|
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Microsoft.Tye.ConfigModel |
|||
{ |
|||
public class ConfigNode |
|||
{ |
|||
[Required] |
|||
public string Package { get; set; } = default!; |
|||
|
|||
public string? Script { get; set; } = default!; |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
// Licensed to the .NET Foundation under one or more agreements.
|
|||
// The .NET Foundation licenses this file to you under the MIT license.
|
|||
// See the LICENSE file in the project root for more information.
|
|||
|
|||
using System.Collections.Generic; |
|||
|
|||
namespace Microsoft.Tye |
|||
{ |
|||
public class NodeServiceBuilder : LaunchedServiceBuilder |
|||
{ |
|||
public NodeServiceBuilder(string name, string packagePath, ServiceSource source) |
|||
: base(name, source) |
|||
{ |
|||
PackagePath = packagePath; |
|||
} |
|||
|
|||
public string PackagePath { get; set; } |
|||
|
|||
public string? Script { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue