What do you mean with "embedded resource"?

Do you mean that you have a config file in your domain assembly, with no 
need to include
this file in the client that use your AR assembly?


----- Original Message ----- 
From: "V" <[email protected]>
To: "Castle Project Users" <[email protected]>
Sent: Tuesday, September 08, 2009 5:49 AM
Subject: Re: Castle config file as an embedded resource


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