Windsor xml config question re: enum parameter values

32 views
Skip to first unread message

Scott_M

unread,
Jun 2, 2012, 12:07:52 PM6/2/12
to castle-pro...@googlegroups.com
I have a log formatting component (ILogEntryFormatter) that I resolve from windsor via xml configuration .  It has a enum flags based property called FormattingOptions of the following type:

 [Flags]
    public enum LogEntryFormatterOptions : int
    {
        None = 0,
        DateTime = 1,
        LogLevel = 2,
        StackTrace = 4,
        MachineName = 8,
        BaseDirectory = 16,
        AppDomainName = 32,
        ProcessName = 64,
        ProcessIdentity = 128,
        ProcessId = 256,
        ManagedThreadIdentity = 512,
        ManagedThreadId = 1024,
        Win32ThreadId = 2048,
        ManagedThreadName = 4096,
        // Reserved = 8192,
        // Reserved = 16384,
        // Reserved = 32768,
        // Reserved = 65536,
        All = Int32.MaxValue
    }

Can this parameter value be set via castle XML configuration?  Can you OR / combine the values together in castle XML configuration?

Krzysztof Kozmic

unread,
Jun 3, 2012, 12:36:22 AM6/3/12
to castle-pro...@googlegroups.com, castle-pro...@googlegroups.com
Yes you can

Sent from my iPad
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/YwOgHVEARIoJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
Reply all
Reply to author
Forward
0 new messages