Using the .Send<T>(T Message) method without specifying an endpoint

2,679 views
Skip to first unread message

jccummings1977

unread,
Nov 9, 2016, 4:55:18 PM11/9/16
to masstransit-discuss
I am trying to use the .Send<T>(T Message) method to send a command message. I am getting the following error.

A convention for the message type Tyler.Odyssey.Wf.IRunOdysseyWorkflow was not found.

The message contract interface is packaged in a NuGet and is shared by the Sender and the Consumer.

Here is the send code:

                    var runWorkflowMessage = new RunOdysseyWorkflow()
                    {
                        SiteId = softcodeMessage.SiteId,
                        NodeId = softcodeMessage.NodeId,
                        UserId = softcodeMessage.UserId,
                        MessageXml = deserializedMessage,
                        WorkflowDefinitionId = "6fd1c1d6-3d73-47a0-955f-278e063d7923"
                    } as IRunOdysseyWorkflow;
 
                    bus.Send(runWorkflowMessage);

Here is the Consume method signature for my receive endpoint:

                    public async Task Consume(ConsumeContext<IRunOdysseyWorkflow> context)

I'm not sure what I am doing wrong, any help would be appreciated.

Here is a snippet of RabbitMQ routing topology:


Chris Patterson

unread,
Nov 9, 2016, 7:21:39 PM11/9/16
to masstrans...@googlegroups.com
If you don't know the address of the endpoint, you can call Publish. Otherwise, the endpoint address must be specified.

The convention for the message type could also be sent, but that code is still experimental and not ready/documented.


--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/239a0aa0-95d3-4d02-93fe-d307c6612194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jccummings1977

unread,
Nov 10, 2016, 10:29:12 AM11/10/16
to masstransit-discuss
Thank you for the reply.


On Wednesday, November 9, 2016 at 6:21:39 PM UTC-6, Chris Patterson wrote:
If you don't know the address of the endpoint, you can call Publish. Otherwise, the endpoint address must be specified.

The convention for the message type could also be sent, but that code is still experimental and not ready/documented.

On Wed, Nov 9, 2016 at 1:55 PM, jccummings1977 <jccum...@gmail.com> wrote:
I am trying to use the .Send<T>(T Message) method to send a command message. I am getting the following error.

A convention for the message type Tyler.Odyssey.Wf.IRunOdysseyWorkflow was not found.

The message contract interface is packaged in a NuGet and is shared by the Sender and the Consumer.

Here is the send code:

                    var runWorkflowMessage = new RunOdysseyWorkflow()
                    {
                        SiteId = softcodeMessage.SiteId,
                        NodeId = softcodeMessage.NodeId,
                        UserId = softcodeMessage.UserId,
                        MessageXml = deserializedMessage,
                        WorkflowDefinitionId = "6fd1c1d6-3d73-47a0-955f-278e063d7923"
                    } as IRunOdysseyWorkflow;
 
                    bus.Send(runWorkflowMessage);

Here is the Consume method signature for my receive endpoint:

                    public async Task Consume(ConsumeContext<IRunOdysseyWorkflow> context)

I'm not sure what I am doing wrong, any help would be appreciated.

Here is a snippet of RabbitMQ routing topology:


--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.

Alexey Zimarev

unread,
Nov 10, 2016, 12:45:08 PM11/10/16
to masstransit-discuss
Chris, do you mean the static mapper? At first glance it should work, looking at the code, it is not that complex...

Chris Patterson

unread,
Nov 10, 2016, 2:24:34 PM11/10/16
to masstrans...@googlegroups.com
It should, it just hasn't been fully tested or documented yet.

On Thu, Nov 10, 2016 at 9:45 AM, Alexey Zimarev <azim...@gmail.com> wrote:
Chris, do you mean the static mapper? At first glance it should work, looking at the code, it is not that complex...

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstransit-discuss@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages