You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update CosmosDB Container sample for NServiceBus 10 (#7604)
* Remove InputLoopService from CosmosDB container sample
- Removed InputLoopService.cs file
- Moved input loop logic directly to Program.cs using recommended pattern
- Uses host.StartAsync(), GetRequiredService<IMessageSession>(), and host.StopAsync()
- Sample builds and maintains same functionality
* Add containerization support with Azure Cosmos DB integration
- Add environment variable support for COSMOS_CONNECTION_STRING with fallback to local emulator
- Create Dockerfile with multi-stage build for .NET 9 sample
- Add docker-compose.yml for orchestrated testing
- Create comprehensive test script (run_sample.sh) with automated validation
- Support both containerized and local development workflows
- Verify dynamic container mapping and full message flow functionality
* Add NServiceBus 10 version (CosmosDB_4) with .NET 10 preview support
- Update to NServiceBus 10.0.0-alpha.2 and related packages
- Target .NET 10 with preview language features
- Update Dockerfile for .NET 10 preview runtime (mcr.microsoft.com/dotnet/sdk:10.0-preview)
- Add prerelease.txt marker file
- Maintain full containerization and Azure Cosmos DB support
- Verified working with dynamic container mapping and complete message flow
* Apply C# language feature refactorings to CosmosDB_4
- Use target-typed new expressions for cleaner object initialization
- Update ShipOrder, OrderCompleted, CompleteOrder, and StartOrder instantiation
- Maintain serialization compatibility for NServiceBus messages
- Verified build and functionality remain intact
logger.LogInformation($"Message '{m.GetType().AssemblyQualifiedName}' destined to be handled by '{nameof(ShipOrderSaga)}' will use 'ShipOrderSagaData' container.");
logger.LogInformation($"Message '{headers[Headers.EnclosedMessageTypes]}' destined to be handled by '{nameof(ShipOrderSaga)}' will use 'ShipOrderSagaData' container.");
logger.LogInformation($"Message '{m.GetType().AssemblyQualifiedName}' destined to be handled by '{nameof(ShipOrderSaga)}' will use 'ShipOrderSagaData' container.");
logger.LogInformation($"Message '{headers[Headers.EnclosedMessageTypes]}' destined to be handled by '{nameof(ShipOrderSaga)}' will use 'ShipOrderSagaData' container.");
0 commit comments