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
I am trying to use rebus in an integration project between different partners, using the configuration that I report below.
(It is a configuration in order to use topics to manage the publication)
services.AddRebus(conf =>conf.Serialization((s)=>{s.UseNewtonsoftJson(newJsonSerializerSettings{TypeNameHandling=TypeNameHandling.None,});s.UseCustomMessageTypeNames().AddWithCustomName<Message<OMIssue>>("omissue");}).Options(o =>{o.Decorate<ITopicNameConvention>(c =>{varmessageTypeNameConvention=c.Get<IMessageTypeNameConvention>();returnnewTopicNameConvention(messageTypeNameConvention);});}).Transport(t =>{varoptions=t.UseRabbitMq($"amqps://localhost/host","input-queue").ExchangeNames("directs","topics").Declarations(declareExchanges:false).Ssl(newRebus.RabbitMq.SslSettings(false,"")).CustomizeConnectionFactory(factory =>{varscoppes=string.Join(" ",["orange-bus.read:orange/topics/omissue","orange-bus.read:orange/directs/*","orange-bus.write:orange/directs/*",$"orange-bus.read:orange/input-queue/*",$"orange-bus.write:orange/input-queue/*",$"orange-bus.configure:orange/input-queue/*",$"orange-bus.write:orange/error/*",$"orange-bus.configure:orange/error/*"]);varauthclient=newOAuth2ClientBuilder("username","password",newUri("https://identityserver/connect/token")).SetScope(scoppes).Build();factory.ClientProvidedName="SubscriberExample";factory.CredentialsProvider=newOAuth2ClientCredentialsProvider("orange",authclient);returnfactory;});}),onCreated:async bus =>{awaitbus.Subscribe<Message<OMIssue>>();},isDefaultBus:true);
Rebus rightly provides for the use of these two custom headers for the deserialization of messages in order to know the type. Unfortunately, however, I cannot ask partners (who use other tools, to insert these specific headers)
I therefore wanted to ask you if it is possible to add a Callback to be able to access the exchange information (BasicDeliverEventArgs) in order to be able to alter the TransportMessage and add the headers that are needed
overridable (making it protected not static) and with access to the BasicDeliverEventArgs so that by creating a decorator of the Transport you can implement custom logic
Thank you
The text was updated successfully, but these errors were encountered:
I am trying to use rebus in an integration project between different partners, using the configuration that I report below.
(It is a configuration in order to use topics to manage the publication)
Rebus rightly provides for the use of these two custom headers for the deserialization of messages in order to know the type. Unfortunately, however, I cannot ask partners (who use other tools, to insert these specific headers)
I therefore wanted to ask you if it is possible to add a Callback to be able to access the exchange information (BasicDeliverEventArgs) in order to be able to alter the TransportMessage and add the headers that are needed
Rebus.RabbitMq/Rebus.RabbitMq/RabbitMq/RabbitMqTransport.cs
Line 612 in 2b07403
Alternatively, I ask you if it is possible to make the method
overridable (making it protected not static) and with access to the BasicDeliverEventArgs so that by creating a decorator of the Transport you can implement custom logic
Thank you
The text was updated successfully, but these errors were encountered: