File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
9
9
### References
10
+ - [ Docker Hub] ( https://hub.docker.com/r/microsoft/azure-messaging-servicebus-emulator )
10
11
- [ Official Documentation] ( https://learn.microsoft.com/en-us/azure/service-bus-messaging/test-locally-with-service-bus-emulator?tabs=automated-script )
12
+ - [ Code Samples] ( https://github.com/Azure/azure-service-bus-emulator-installer/tree/main/Sample-Code-Snippets/NET/ServiceBus.Emulator.Console.Sample )
Original file line number Diff line number Diff line change @@ -63,11 +63,15 @@ public IntegrationTestsFactory()
63
63
public string GetServiceBusConnectionString ( )
64
64
=> $ "Endpoint=sb://{ _serviceBusContainer . Hostname } :{ _serviceBusContainer . GetMappedPublicPort ( SERVICE_BUS_PORT ) } ;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;";
65
65
66
- public Task InitializeAsync ( )
67
- => Task . WhenAll (
66
+ public async Task InitializeAsync ( )
67
+ {
68
+ await Task . WhenAll (
68
69
_azureSqlEdgeContainer . StartAsync ( ) ,
69
70
_serviceBusContainer . StartAsync ( ) ) ;
70
71
72
+ await Task . Delay ( TimeSpan . FromSeconds ( 2 ) ) ;
73
+ }
74
+
71
75
public Task DisposeAsync ( )
72
76
=> Task . WhenAll (
73
77
_azureSqlEdgeContainer . StopAsync ( ) ,
You can’t perform that action at this time.
0 commit comments