Giter VIP home page Giter VIP logo

Comments (16)

AnnePicus avatar AnnePicus commented on August 14, 2024

@sfarmar @jdrat2000
Should there be a link to this article:
How to Reply to a Message?

from docs.particular.net.

seanfarmar avatar seanfarmar commented on August 14, 2024

Not sure... It would be nice if we could have a related links functionality in our pages...

As for adding links, i would add a link to the pub/sub sample?

from docs.particular.net.

AnnePicus avatar AnnePicus commented on August 14, 2024

@sfarmar
You are the expert. I just make wild guesses. :-)

(Personally, I'm not keen on related links functionality. I prefer to see the links in context. That way, I can see why another topic might be of interest to me.)

from docs.particular.net.

seanfarmar avatar seanfarmar commented on August 14, 2024

Fair point.

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

I will add the link and reasoning behind it.

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

@mauroservienti @sfarmar @andreasohlund
I am having some trouble with this article. The second example around handling all messages by handling the IMessage interface used to work for me. I remember doing this a bit to put a handler on the audit queue for example before the existence of servicecontrol and stuff like that.

However, now when I try to implement a generic handler for IMessage, it doesn't work. Perhaps I am doing something wrong with the unobtrusive declarations setup but a generic handler doesn't fire and if I try to get funky in the unobtrusive space and map all namespaces to messages regardless of their namespace using .DefiningMessagesAs(t => t.Namespace != null ) the endpoint won't start.

I'd like to understand whether there is a base way to handle all messages but is it an implementation we even want to promote? I wouldn't want users to make a bunch of generic handlers and switch on type or anything crazy like that anyway?

Please advise.
Thx.

from docs.particular.net.

andreasohlund avatar andreasohlund commented on August 14, 2024

First you need a convention that hits all desired messages (I mostly use
namespaces). Then you just create a handler for object or dynamic?

On Sun, Dec 1, 2013 at 5:58 PM, Joe R [email protected] wrote:

@mauroservienti https://github.com/mauroservienti @sfarmarhttps://github.com/sfarmar
@andreasohlund https://github.com/andreasohlund
I am having some trouble with this article. The second example around
handling all messages by handling the IMessage interface used to work for
me. I remember doing this a bit to put a handler on the audit queue for
example before the existence of servicecontrol and stuff like that.

However, now when I try to implement a generic handler for IMessage, it
doesn't work. Perhaps I am doing something wrong with the unobtrusive
declarations setup but a generic handler doesn't fire and if I try to get
funky in the unobtrusive space and map all namespaces to messages
regardless of their namespace using .DefiningMessagesAs(t => t.Namespace !=
null ) the endpoint won't start.

I'd like to understand whether there is a base way to handle all messages
but is it an implementation we even want to promote? I wouldn't want users
to make a bunch of generic handlers and switch on type or anything crazy
like that anyway?

Please advise.
Thx.


Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-29577466
.

from docs.particular.net.

seanfarmar avatar seanfarmar commented on August 14, 2024

@jdrat2000 take a look here

Sorry for the short reply

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

@sfarmar Thanks for the replies. I could illustrate a generic handler for object as long as I do as Andreas said and use a namespace path in my unobtrusive setup. If I don't specify namespace and just leave it too generic the reflection process seems to hit every dll in the assembly path which isn't so nice:).

I guess the question is, do I even need an example of a 'generic' handler in an article like this? In your example it would appear you are allowing for the configuration of more types to handle, correct?

Thanks Sean.

from docs.particular.net.

seanfarmar avatar seanfarmar commented on August 14, 2024

@jdrat2000 yes, is that ok for you?

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

@sfarmar Yep. It makes sense. I guess in the page I can show how I map a basic Namespace to the .DefiningMessagesAs sort of thing with a generic object handler. I put it out there and let you know and you can tell me if it makes sense. Thanks Sean.

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

@sfarmar Sean could you see if this makes sense technically? I'll assign it to an for grammar review etc.

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

@AnnePicus Please review thanks.

from docs.particular.net.

AnnePicus avatar AnnePicus commented on August 14, 2024

I assume that "unobstrusive" is meant to be "unobtrusive".
Edited.

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024
Yes.  Thank you. 
  On 12/10/2013 1:05 AM, AnnePicus wrote:

  I assume that "unobstrusive" is meant to be "unobtrusive".
    Edited.
  —
    Reply to this email directly or view
      it on GitHub.

from docs.particular.net.

jdrat2000 avatar jdrat2000 commented on August 14, 2024

Closing this one.

from docs.particular.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.