Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
"name": {
"text": "PostgreSQL"
}
},
{
"id": "IBMMQ",
"name": {
"text": "IBM MQ"
}
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
{
"choice": "PostgreSQL",
"description": "PostgreSQL"
},
{
"choice": "IBMMQ",
"description": "IBM MQ"
}
],
"defaultValue": "LearningTransport"
Expand Down
12 changes: 12 additions & 0 deletions src/ParticularTemplates/NServiceBusEndpoint/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
// PostgreSQL Transport: https://docs.particular.net/transports/postgresql/
var transport = new PostgreSqlTransport("Server=localhost;Port=5432;Database=dbname;User Id=user;Password=pass;");
var routing = endpointConfiguration.UseTransport(transport);
#elseif (transport == "IBMMQ")
// IBM MQ Transport: https://docs.particular.net/transports/ibmmq/
var transport = new IBMMQTransport
{
Host = "localhost",
Port = 1414,
Channel = "DEV.ADMIN.SVRCONN",
QueueManagerName = "QM1",
User = "admin",
Password = "passw0rd"
};
var routing = endpointConfiguration.UseTransport(transport);
#endif

// Define routing for commands: https://docs.particular.net/nservicebus/messaging/routing#command-routing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<PackageReference Condition="'$(transport)' == 'AzureServiceBus'" Include="NServiceBus.Transport.AzureServiceBus" Version="6.*" />
<PackageReference Condition="'$(transport)' == 'AzureStorageQueues'" Include="NServiceBus.Transport.AzureStorageQueues" Version="14.*" />
<PackageReference Condition="'$(transport)' == 'PostgreSQL'" Include="NServiceBus.Transport.PostgreSql" Version="9.*" />
<PackageReference Condition="'$(transport)' == 'IBMMQ'" Include="NServiceBus.Transport.IBMMQ" Version="1.*" />
<PackageReference Condition="'$(transport)' == 'RabbitMQ'" Include="NServiceBus.RabbitMQ" Version="11.*" />
<PackageReference Condition="'$(transport)' == 'SQL'" Include="NServiceBus.Transport.SqlServer" Version="9.*" />
<PackageReference Condition="'$(transport)' == 'SQS'" Include="NServiceBus.AmazonSQS" Version="9.*" />
Expand Down