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 5988487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:57:55+00:00 2026-05-22T22:57:55+00:00

How do I register something like this in the xml configuration (i know, i

  • 0

How do I register something like this in the xml configuration (i know, i know, convention over config, but I’m supporting legacy code, so i need to do it in the xml config).

Specifically, I’m unclear on how to register AssignTechniciansFactory with the abstract base class AND the interface type. Normally, i get how to do it for either a base class OR just the interface. But how about registering both to the component?

public class AssignTechniciansFactory: 
         BaseAssignTechniciansFactory<Service>, IAssignTechniciansFactory

Where:

public class Service : BaseAssignTechnician

And:

public abstract class BaseAssignTechniciansFactory<T> 
                         where T: BaseAssignTechnician

This is what I have, and I know it’s not correct:

<component id="assignTechniciansFactory"
           service="MyNamespace.IAssignTechniciansFactory, MyAssembly" 
           type="MyNamespace.AssignTechniciansFactory, MyAssembly">
   <parameters>
     <dmq>${dmq}</dmq>
     <builder>${builder}</builder>
   </parameters>
</component>
  • 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-22T22:57:55+00:00Added an answer on May 22, 2026 at 10:57 pm

    In addition to what @adymitruk said, you can specify additional services for a component via forwardedTypes element in XML configuration.

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

Sidebar

Related Questions

I want to achieve something like this in C# 3.5: public void Register<T>() :
i have something like this in my views.py instance = get_object_or_404(register,pk=request.user.id) Now if there
Currently I'm just using something like this in the DB Table: access: home,register,login And
I have a small block that contains something like this: Login | Register When
Is it possible to handle this type of errors? Something like spl_autoload_register, but for
I'd like to know whether something like this has been done before: I've recently
I have something like this register unsigned int a, b, c; int n; for
I want to have code that looks something like this... static linked_list* globalListHoldingAllSortsOfGoodies =
I do something like this: $(#id1).html(data); I refill a div with html but when
I have a web application which uses URLs that look like this: http://library.example.com/Register.aspx?query=academic&key=586c70bb-5683-419c-aae9-e596af9ab66a (The

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.