-
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 pull request #4 from GodelTech/feature/add-interface
add interface
- Loading branch information
Showing
4 changed files
with
26 additions
and
3 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
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
22 changes: 22 additions & 0 deletions
22
src/GodelTech.Messaging.AzureServiceBus/IAzureServiceBusSender.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,22 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace GodelTech.Messaging.AzureServiceBus | ||
{ | ||
/// <summary> | ||
/// Interface of Azure Service Bus sender | ||
/// </summary> | ||
public interface IAzureServiceBusSender | ||
{ | ||
/// <summary> | ||
/// Asynchronously sends TModel object as JSON to Azure Service Bus queue. | ||
/// Queue is select by key from options. | ||
/// </summary> | ||
/// <typeparam name="TModel">The type of the T model.</typeparam> | ||
/// <param name="queueKey">Queue key.</param> | ||
/// <param name="model">The model.</param> | ||
/// <exception cref="ArgumentOutOfRangeException">No queue found with provided key.</exception> | ||
public Task SendAsync<TModel>(string queueKey, TModel model) | ||
where TModel : class; | ||
} | ||
} |
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