Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 563195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:38:04+00:00 2026-05-13T12:38:04+00:00

I am using wcf 4 and trying to use some Ioc container to resolve

  • 0

I am using wcf 4 and trying to use some Ioc container to resolve service dependencies. I was looking at Castle Windsor and StructureMap. I haven’t use any of them with wcf.

The scenario is that I have IService1 and Iservice2. Service1 is using service2:

public class Service1 : IService1
{
    public Service1(IService2 service2)
    {

    }
}

If I use WcfFacility from Castle with a transient lifecycle for service2 will it automatically dispose service2 after service1 is done with it(consider service1 a per-call instantiation for example)? And how exactly does that work internally.
How is this done with structuremap?

Some sample code would be really appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:38:04+00:00Added an answer on May 13, 2026 at 12:38 pm

    Yes, Windsor will do that for you out of the box. It’s the default, you don’t have to do anything. It tracks all disposable objects and their dependencies it creates and then disposes them as needed. Google “component burden” if you want the details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a generic web service interface using WCF, to allow 3rd
I'm trying to secure a WCF service using windows accounts. The service should run
I am trying to set up a streaming WCF service using basicHttpBinding. The service
I'm trying to develop and deploy a WCF service using VS2008 and Vista home
I am trying to call a WCF RESTful service from jQuery. I am using
I am trying to copy file(s) using webrequest inside WCF. I need some suggestions.
I have a WCF 4.0 service for internal use. Another team is trying to
i'm trying to secure some WCF services. I'd like to use IIS or the
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I am trying to query a WCF OData service from Java using the odata4j

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.