Here is a bit modified version of the method I use in my framework for
initialising AR from a stream. Now all you have to do is to get the
stream to the embedded resource and pass to this method.

        private static void InitialiseArFrameworkProcess(Stream
configurationStream)
        {
            if (configurationStream == null)
                throw new ArgumentException("configurationStream
should not be null");
            configurationStream.Position = 0;
            XmlConfigurationSource source = new XmlConfigurationSource
(configurationStream);
            ActiveRecordStarter.Initialize
(AppDomain.CurrentDomain.GetAssemblies(), source);
        }

Hope that helps.

Vijay
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to