25 lines
506 B
C#
25 lines
506 B
C#
|
|
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();
|
||
|
|
}
|
||
|
|
}
|