Commit a6fc962 1 parent 1252ca6 commit a6fc962 Copy full SHA for a6fc962
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# SimpleServiceBus
2
2
3
- ##Install:
3
+ ## Install:
4
4
Install using nuget DS.SimpleServiceBus
5
5
6
- ##Usage:
6
+ ## Usage:
7
7
Install RabbitMQ and use the management gui to create a new virtual host
8
8
9
9
Create an instance of BusService:
@@ -21,7 +21,7 @@ Start the Bus
21
21
await busService .StartAsync (CancellationToken .None );
22
22
```
23
23
24
- ##Events
24
+ ## Events
25
25
Create a model class implementing the IModel interface
26
26
Create an event class implementing the IEvent<TModel > using your newly created model class (set EventId to a new guid)
27
27
Create an eventhandler implementing the IEventHandler<TEvent > using your newly created event class
@@ -41,7 +41,7 @@ Publish an event
41
41
await eventService .PublishAsync (InstanceOfYourEventClass , CancellationToken .None );
42
42
```
43
43
44
- ##Commands
44
+ ## Commands
45
45
Create a class implementing the IRequestModel interface
46
46
Create a class implementing the IResponseModel interface
47
47
Create a commandhandler implementing the ICommandHandler<TRequestModel, TResponseModel> using your newly created classes
You can’t perform that action at this time.
0 commit comments