Export to GitHub

masstransit - issue #9

MessageQueue Factory


Posted on Jan 3, 2008 by Swift Rabbit

As a developer using MT I need the framework to not instantiate more than one Endpoint per Message Queue so that I can by default avoid competing consumers which means to me that life is simpler.

Comment #1

Posted on Jan 3, 2008 by Swift Rabbit

Current code: IEndpoint clientEndpoint = MessageQueueEndpoint.MessageQueueEndpointFactory.Instance.Resolve(@".\private$\test_client");

Which seems a bit long

Comment #2

Posted on Jan 3, 2008 by Swift Cat

Since we aren't dealing with an abstract factory, how about a simplified factory of:

MessageQueueEndpoint.Open(@".\private$\test_client");

And keep the factory internal to the class?

Comment #3

Posted on Jan 3, 2008 by Swift Cat

I mean, we aren't aggregating, assembling, or anything else in the factory, just making sure we don't create multiple endpoints on the same queue accidentally.

Comment #4

Posted on Jan 3, 2008 by Swift Rabbit

I like that concept! Lets play with that. -d

Comment #5

Posted on Jan 6, 2008 by Swift Cat

I believe this is done.

Comment #6

Posted on Jan 6, 2008 by Swift Cat

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium