Would ILazyComponentLoader work for you?

http://docs.castleproject.org/Default.aspx?Page=Lazy-Component-Loaders&NS=Windsor&AspxAutoDetectCookieSupport=1


---
Patrick Steele
http://weblogs.asp.net/psteele

On Mon, Jan 5, 2015 at 5:39 PM, Nick Gamroth <[email protected]> wrote:

> I've got the following test that I need to make pass:
>  [TestMethod]
>  public void DiscoveredProxy()
>  {
>     var container = new WindsorContainer();
>     container.AddFacility<WcfFacility>();
>     var x = container.Resolve<IBugService>();
>     Assert.IsNotNull(x);
>  }
>
> I have a WCF service running on my local machine that implements
> IBugService and is discoverable.  Ideally I'd make this test pass by
> somehow telling the WCF facility to discover components it doesn't have a
> configuration for (in the app.config), but I can't figure out how to do
> that.  Is this possible without writing my own facility?
>
> Alternatively, I'd be ok with adding app.config entries for each service,
> but I can't get the client proxy resolved without passing an endpoint
> configuration name to Resolve().  Is there a way to avoid this?  It would
> make sense to me to default to the name of the type being resolved.  I've
> seen a post on here about that, but I can't tell if that code was ever
> added.
>
> Thanks,
> Nick
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected]
> .
> Visit this group at http://groups.google.com/group/castle-project-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to