meaning of URI syntax in naming events

Topics: CAB & Smart Client Software Factory
May 1, 2005 at 1:50 AM
originally posted by: Niroo

Is there any meaning attached to the string passed to the Publication and Subscription attributes? i.e. when wiring up is the eventbroker checking syntx or just looking for an exact string match?

EventPublication(“event://UpdatesAvailable”)

EventSubscription(“event://UpdatesAvailable”)
May 3, 2005 at 1:40 PM
originally posted by: EdJez

We use the URI as an organization scheme for your event topic names.
But, if you want to use event topic names organized in another way, you can.

We don't check syntax since there is no schema to check against.
There is no implicit relationship between an event of topic event://foo and event://foo/baz
May 14, 2005 at 8:17 AM
originally posted by: PProvost

The use of URIs in the current codebase is pretty exploratory. We are seeing value in using them for things like SmartParts and UIElements, but we aren't really sure about how they work with Events.

With UIElements they make sense because there is a heirarchical structure in the shell that maps very cleanly onto the URI structure. We are looking at the SmartPart code and seeing similar relationships.

As Ed said, for events we don't check the syntax of the string. It can be whatever you want. (But we do check it for UIElements--be aware.)

Basically our plan is this: When we want you to use a URI, we will make sure you pass us a System.Uri instead of a string. If we take a string, you can pass whatever you want.

Does that work for everyone?