File tree Expand file tree Collapse file tree
src/ParticularTemplates/NServiceBusEndpoint Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 "name" : {
5252 "text" : " PostgreSQL"
5353 }
54+ },
55+ {
56+ "id" : " IBMMQ" ,
57+ "name" : {
58+ "text" : " IBM MQ"
59+ }
5460 }
5561 ]
5662 },
Original file line number Diff line number Diff line change 6262 {
6363 "choice" : " PostgreSQL" ,
6464 "description" : " PostgreSQL"
65+ },
66+ {
67+ "choice" : " IBMMQ" ,
68+ "description" : " IBM MQ"
6569 }
6670 ],
6771 "defaultValue" : " LearningTransport"
Original file line number Diff line number Diff line change 6161// PostgreSQL Transport: https://docs.particular.net/transports/postgresql/
6262var transport = new PostgreSqlTransport ( "Server=localhost;Port=5432;Database=dbname;User Id=user;Password=pass;" ) ;
6363var routing = endpointConfiguration . UseTransport ( transport ) ;
64+ #elseif ( transport == "IBMMQ" )
65+ // IBM MQ Transport: https://docs.particular.net/transports/ibmmq/
66+ var transport = new IBMMQTransport
67+ {
68+ Host = "localhost" ,
69+ Port = 1414 ,
70+ Channel = "DEV.ADMIN.SVRCONN" ,
71+ QueueManagerName = "QM1" ,
72+ User = "admin" ,
73+ Password = "passw0rd"
74+ } ;
75+ var routing = endpointConfiguration . UseTransport ( transport ) ;
6476#endif
6577
6678// Define routing for commands: https://docs.particular.net/nservicebus/messaging/routing#command-routing
Original file line number Diff line number Diff line change 1818 <PackageReference Condition =" '$(transport)' == 'AzureServiceBus'" Include =" NServiceBus.Transport.AzureServiceBus" Version =" 6.*" />
1919 <PackageReference Condition =" '$(transport)' == 'AzureStorageQueues'" Include =" NServiceBus.Transport.AzureStorageQueues" Version =" 14.*" />
2020 <PackageReference Condition =" '$(transport)' == 'PostgreSQL'" Include =" NServiceBus.Transport.PostgreSql" Version =" 9.*" />
21+ <PackageReference Condition =" '$(transport)' == 'IBMMQ'" Include =" NServiceBus.Transport.IBMMQ" Version =" 1.*" />
2122 <PackageReference Condition =" '$(transport)' == 'RabbitMQ'" Include =" NServiceBus.RabbitMQ" Version =" 11.*" />
2223 <PackageReference Condition =" '$(transport)' == 'SQL'" Include =" NServiceBus.Transport.SqlServer" Version =" 9.*" />
2324 <PackageReference Condition =" '$(transport)' == 'SQS'" Include =" NServiceBus.AmazonSQS" Version =" 9.*" />
You can’t perform that action at this time.
0 commit comments