all groups > visual studio .net enterprise tools > october 2003 >
You're in the

visual studio .net enterprise tools

group:

Raising events not defined in the EIF schema.


Raising events not defined in the EIF schema. Steve Miller
10/30/2003 1:47:46 PM
visual studio .net enterprise tools:
I notice the following definition under <eventCategories> in the EIF =
configuration file:
<eventCategory name=3D"All Events" description=3D"A category that =
contains all events.">
<event type=3D"System.Object" />
</eventCategory>

and that the EventSource.Raise method takes a System.Object type as a =
parameter. Does this imply that it is possible to filter types that are =
not defined in the EIF schema? Or am I miss interpreting this?

Steve Miller | Solution Developer

US - Central Region

Avanade Inc.=20

Highwoods Plaza II

103 Powell Court, Suite 130

Brentwood, TN 37027-5079

Office: 615.309.7000

RE: Raising events not defined in the EIF schema. mikehayt_ NO[at]SPAM online.microsoft.com
10/31/2003 5:22:46 PM
Sorry Steve,

Its not possible to filter types that do not have the
InstrumentationTypeAttribute (on its class or one of its base classes). The
EventSource.Raise() method is checking that the object passed to is of a
type that has the InstrumentationTypeAttribute and will throw an error if
it doesnt.

In the next version of EIF, we could get it that any object could be passed
and filtered by EIF, but I imagine that you would have to write your own
event sink to handle outputting the now arbitary structure of the object
passed.

What are your thoughts on the above?

Mike



--------------------
| I notice the following definition under <eventCategories> in the EIF
configuration file:
| <eventCategory name="All Events" description="A category that contains
all events.">
| <event type="System.Object" />
| </eventCategory>
| and that the EventSource.Raise method takes a System.Object type as a
parameter. Does this imply that it is possible to filter types that are
not defined in the EIF schema? Or am I miss interpreting this?
| Steve Miller | Solution Developer
| US - Central Region
| Avanade Inc.
| Highwoods Plaza II
| 103 Powell Court, Suite 130
| Brentwood, TN 37027-5079
| Office: 615.309.7000
| Email: stevemi@avanade.com
|

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Re: Raising events not defined in the EIF schema. Steve Miller
11/3/2003 3:50:47 PM
Mike:

The rational for this is that the client has sub-typed the
ApplicatonException type is ways that do not directly correlate to the EIF
schema. I am going to have to create a custom EIF schema and build a
translation layer to map the ApplicationException sub-types to the custom
EIF schema. I was just looking to see if there was an easier way to do
this.

[quoted text, click to view]

Re: Raising events not defined in the EIF schema. mikehayt_ NO[at]SPAM online.microsoft.com
11/4/2003 12:15:51 AM
Thanks for the feedback.

Mike

--------------------
| Mike:
|
| The rational for this is that the client has sub-typed the
| ApplicatonException type is ways that do not directly correlate to the EIF
| schema. I am going to have to create a custom EIF schema and build a
| translation layer to map the ApplicationException sub-types to the custom
| EIF schema. I was just looking to see if there was an easier way to do
| this.
|
[quoted text, click to view]
| > Sorry Steve,
| >
| > Its not possible to filter types that do not have the
| > InstrumentationTypeAttribute (on its class or one of its base classes).
| The
| > EventSource.Raise() method is checking that the object passed to is of a
| > type that has the InstrumentationTypeAttribute and will throw an error
if
| > it doesnt.
| >
| > In the next version of EIF, we could get it that any object could be
| passed
| > and filtered by EIF, but I imagine that you would have to write your own
| > event sink to handle outputting the now arbitary structure of the object
| > passed.
| >
| > What are your thoughts on the above?
| >
| > Mike
| >
| >
| >
| > --------------------
| > | I notice the following definition under <eventCategories> in the EIF
| > configuration file:
| > | <eventCategory name="All Events" description="A category that contains
| > all events.">
| > | <event type="System.Object" />
| > | </eventCategory>
| > | and that the EventSource.Raise method takes a System.Object type as a
| > parameter. Does this imply that it is possible to filter types that are
| > not defined in the EIF schema? Or am I miss interpreting this?
| > | Steve Miller | Solution Developer
| > | US - Central Region
| > | Avanade Inc.
| > | Highwoods Plaza II
| > | 103 Powell Court, Suite 130
| > | Brentwood, TN 37027-5079
| > | Office: 615.309.7000
| > | Email: stevemi@avanade.com
| > |
| >
| > --
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > Use of included script samples are subject to the terms specified at
| > http://www.microsoft.com/info/cpyright.htm
| >
|
|
|

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
AddThis Social Bookmark Button