Craig, Tried this but get the following error:
Could not compile configuration! windsor(36,58): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown identifier: 'neutral'. windsor(37,20): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown identifier: 'b77a5c561934e089'. On Jul 20, 1:04 pm, Craig Neuwirt <[email protected]> wrote: > Can you try > component "crossCuttingConcernTraceSwitch",\ > System.Diagnostics.TraceSwitch, Version=2.0, Culture=neutral, \ > PublicKeyToken=b77a5c561934e089: > displayName = traceSwitchName > description = traceSwitchDescription > defaultSwitchValue = traceSwitchValue > > > > On Mon, Jul 20, 2009 at 7:01 AM, bstack <[email protected]> wrote: > > > I had System.Diagnostics already imported. > > > Tried the following config but get a different error: > > > component "crossCuttingConcernTraceSwitch", > > System.Diagnostics.TraceSwitch, Version=2.0, Culture='neutral', > > PublicKeyToken='b77a5c561934e089': > > displayName = traceSwitchName > > description = traceSwitchDescription > > defaultSwitchValue = traceSwitchValue > > > Note: Culture and PublicKeyToken value is in single quotes > > > Error I now get is: > > > Could not compile configuration! windsor(1,1): BCE0024: > > Boo.Lang.Compiler.CompilerError: The type > > 'Rhino.Commons.Binsor.Component' does not have a visible constructor > > that matches the argument list '(string, System.Type, double, string, > > string)'. > > > Looked at 'Rhino.Commons.Binsor.Component' code but cannot see which > > ctor overload would cater for my use case. Is there an example (as its > > not in the Binsor tests) of a CLR type like above being defined in > > Binsor? > > > On Jul 20, 11:52 am, Ayende Rahien <[email protected]> wrote: > > > I think you need to do import System.Diagnostics > > > > On Mon, Jul 20, 2009 at 11:56 AM, bstack <[email protected]> wrote: > > > > > I am trying to migrate the following CLR type > > > > (System.Diagnostics.TraceSwitch) into a Binsor 2.0 config file: > > > > > <!-- Cross cutting concern trace switch --> > > > > <component > > > > id="crossCuttingConcernTraceSwitch" > > > > type="System.Diagnostics.TraceSwitch, System, Version=2.0.0.0, > > > > Culture=neutral, PublicKeyToken=b77a5c561934e089"> > > > > <parameters> > > > > <displayName>"traceSwitchName"</displayName> > > > > <description>"traceSwitchDescription"</description> > > > > <defaultSwitchValue>"traceSwitchValue"</defaultSwitchValue> > > > > </parameters> > > > > </component> > > > > > I have configured the following in windsor.boo file: > > > > > component "crossCuttingConcernTraceSwitch", > > > > System.Diagnostics.TraceSwitch, Version=2.0, Culture=neutral, > > > > PublicKeyToken=b77a5c561934e089: > > > > displayName = traceSwitchName > > > > description = traceSwitchDescription > > > > defaultSwitchValue = traceSwitchValue > > > > > Getting the following error: > > > > Could not compile configuration! windsor(33,98): BCE0005: > > > > Boo.Lang.Compiler.CompilerError: Unknown identifier: 'neutral'. > > > > windsor(33,122): BCE0005: Boo.Lang.Compiler.CompilerError: Unknown > > > > identifier: 'b77a5c561934e089'. > > > > > Anyone know what I am doing wrong? > > > > Can Binsor 2.0 support CLR types like System.Diagnostics.TraceSwitch ?- > > Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
