FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Spectacles.NET/Spectacles.NET.Broker/Broker.cs at master · spec-tacles/Spectacles.NET · GitHub
spec-tacles
/
Spectacles.NET
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
13
Code
Issues
2
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Spectacles.NET
/
Spectacles.NET.Broker
/
Broker.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (37 loc) · 1.24 KB
Breadcrumbs
Spectacles.NET
/
Spectacles.NET.Broker
/
Broker.cs
Copy path
File metadata and controls
42 lines (37 loc) · 1.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMemberInSuper.Global
using
System
.
Collections
.
Generic
;
using
System
.
Threading
.
Tasks
;
namespace
Spectacles
.
NET
.
Broker
{
/// <summary>
/// Interface all Brokers should implement
/// </summary>
public
interface
IBroker
{
/// <summary>
/// SubscribeAsync subscribes to a queue
/// </summary>
/// <param name="event">The name of the queue to subscribe to</param>
/// <returns>Task</returns>
Task
SubscribeAsync
(
string
@event
)
;
/// <summary>
/// SubscribeAsync subscribes to multiple queues
/// </summary>
/// <param name="events">An Enumerable of all Events to subscribe to</param>
/// <returns>Task</returns>
Task
SubscribeAsync
(
IEnumerable
<
string
>
events
)
;
/// <summary>
/// UnsubscribeAsync unsubscribe from a queue
/// </summary>
/// <param name="event">The name of the queue to unsubscribe from</param>
/// <returns>Task</returns>
Task
UnsubscribeAsync
(
string
@event
)
;
/// <summary>
/// UnsubscribeAsync unsubscribe from multiple queues
/// </summary>
/// <param name="events">An Enumerable of all Events to unsubscribe from</param>
/// <returns>Task</returns>
Task
UnsubscribeAsync
(
IEnumerable
<
string
>
events
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL