File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
samples/logging/default/Core_10/Sample Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
using NServiceBus ;
2
2
3
- public class MyMessage :
4
- IMessage
5
- {
6
- }
3
+ public class MyMessage : IMessage ;
Original file line number Diff line number Diff line change 17
17
18
18
// Default log level is Info
19
19
defaultFactory . Level ( NServiceBus . Logging . LogLevel . Debug ) ;
20
-
21
- var endpointConfiguration = new EndpointConfiguration ( "Samples.Logging.Default" ) ;
22
20
#endregion
21
+
22
+ var endpointConfiguration = new EndpointConfiguration ( "Samples.Logging.Default" ) ;
23
23
24
24
endpointConfiguration . UseSerialization < SystemJsonSerializer > ( ) ;
25
25
endpointConfiguration . UseTransport < LearningTransport > ( ) ;
32
32
33
33
var endpointInstance = host . Services . GetRequiredService < IMessageSession > ( ) ;
34
34
35
- var myMessage = new MyMessage ( ) ;
36
- await endpointInstance . SendLocal ( myMessage ) ;
35
+ await endpointInstance . SendLocal ( new MyMessage ( ) ) ;
37
36
38
37
Console . WriteLine ( "Press any key to exit" ) ;
39
38
Console . ReadKey ( ) ;
You can’t perform that action at this time.
0 commit comments