Search Results

Search found 4 results on 1 pages for 'grefly'.

Page 1/1 | 1 

  • Using a ref Parameter with the this Keyword?

    - by grefly
    Is there a way to force the this keyword to act as a ref argument? I would like to pass in a visitor that modifies multiple properties on the object, but this only wants to act like a value parameter. Code in Object: public void Accept(Visitor<MyObject> visitor) { visitor.Visit(this); } Code in Visitor: public void Visit(ref Visitor<MyObject> receiver) { receiver.Property = new PropertyValue(); receiver.Property2 = new PropertyValue(); }

    Read the article

  • NServiceBus - Message Sent to and Removed from Queue, but Never Fire IHandleMessages.Handle

    - by grefly
    First let me state, today is my first day using NSesrviceBus - so I hope my question isn't too elementary. I have managed to set up Sender, Receiver, and Messages projects. When I debug the Sender, I see the messages show up in the configured queue. When I debug the Receiver, the messages are removed from the queue. However, my IHandleMessages Handle event never fires, and no Console output is displayed. I'm sure I've done something wrong (I think I may have mixed tutorials from different versions of NServiceBus) - any suggestions would be appreciated.

    Read the article

1