-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #724 from Particular/backport-public-api-restoration
Backport Public API restoration
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/NServiceBus.AzureFunctions.InProcess.ServiceBus/FunctionExecutionContext.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,30 @@ | ||
namespace NServiceBus | ||
{ | ||
using Microsoft.Azure.WebJobs; | ||
using Microsoft.Extensions.Logging; | ||
|
||
/// <summary> | ||
/// Contains specific context information of the current function invocation. | ||
/// </summary> | ||
public class FunctionExecutionContext | ||
{ | ||
/// <summary> | ||
/// Creates a new <see cref="FunctionExecutionContext"/>. | ||
/// </summary> | ||
public FunctionExecutionContext(ExecutionContext executionContext, ILogger logger) | ||
{ | ||
Logger = logger; | ||
ExecutionContext = executionContext; | ||
} | ||
|
||
/// <summary> | ||
/// The <see cref="ExecutionContext"/> associated with the current function invocation. | ||
/// </summary> | ||
public ExecutionContext ExecutionContext { get; } | ||
|
||
/// <summary> | ||
/// The <see cref="ILogger"/> associated with the current function invocation. | ||
/// </summary> | ||
public ILogger Logger { get; } | ||
} | ||
} |
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