elsa-core/src/modules/Elsa.Modules.Http/Models/HttpTriggerPayload.cs

25 lines
506 B
C#
Raw Normal View History

2022-02-22 11:51:59 +00:00
namespace Elsa.Modules.Http.Models;
public record HttpTriggerPayload
{
private readonly string _path = default!;
private readonly string _method = default!;
public HttpTriggerPayload(string path, string method)
{
Path = path;
Method = method;
}
public string Path
{
get => _path;
init => _path = value.ToLowerInvariant();
}
public string Method
{
get => _method;
init => _method = value.ToLowerInvariant();
}
}