forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into custom-uiprovider
- Loading branch information
Showing
13 changed files
with
91 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,7 @@ | |
"DefaultSender": "[email protected]" | ||
}, | ||
"Http": { | ||
"BaseUrl": "https://localhost:5001", | ||
"BasePath": "/api/workflows" | ||
}, | ||
"Webhooks": { | ||
|
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/clients/Elsa.Api.Client/Contracts/IElsaClientFactory.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/clients/Elsa.Api.Client/Extensions/HeaderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Elsa.Api.Client.Shared; | ||
|
||
namespace Elsa.Api.Client.Extensions; | ||
|
||
/// <summary> | ||
/// Contains extension methods for the <see cref="HttpResponseMessage"/> class. | ||
/// </summary> | ||
public static class HttpResponseMessageExtensions | ||
{ | ||
/// <summary> | ||
/// Gets the workflow instance ID from the response. | ||
/// </summary> | ||
public static string? GetWorkflowInstanceId(this HttpResponseMessage response) => response.Headers.TryGetValues(HeaderNames.WorkflowInstanceId, out var values) ? values.FirstOrDefault() : default; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Elsa.Api.Client.Shared; | ||
|
||
/// <summary> | ||
/// Contains header names used by the Elsa API. | ||
/// </summary> | ||
public static class HeaderNames | ||
{ | ||
/// <summary> | ||
/// The name of the header that contains the workflow instance ID. | ||
/// </summary> | ||
public const string WorkflowInstanceId = "x-elsa-workflow-instance-id"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters