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

  • SEARCH
  • Home
  • 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 6700663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:50:30+00:00 2026-05-26T06:50:30+00:00

I created an application that provides several services. Now I would add the ability

  • 0

I created an application that provides several services.
Now I would add the ability to ask the application what are the services it provides, so I thought to create another service with two methods:

  • the first method returns true if the specified service is provided by the application;
  • the second method returns a list (of strings) with the names of the services provided by the application.

What do you think of this approach?
Are there better ways to find out what services are offered by an application?

  • 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-26T06:50:30+00:00Added an answer on May 26, 2026 at 6:50 am

    What you explain kind of makes sense initially but in fact I think you only need the first method.

    This reminds me those questions when first working with COM a decade ago or so, you can query if an object implements an interface but you do need to know the interface you are querying for. People used to say why can’t I call a method and get a list of all implemented interfaces? Simply the answer is that even if you get a list, if you do not know what those interfaces are and do you can’t use the results.

    Similarly, in your case, even if you get a list like Add, Multiply, Sell, Go, Take… if the client application does not exactly know what those methods or services are and how to use them the whole list makes no sense.

    Better to have your client applications to ask for a specific service and be able to get true in case such service is exposed and that’s it.

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

Sidebar

Related Questions

I created an application that parses content of secured areas of one webpage after
I have created an application that writes some data to the root folder of
I have created an application that runs in the taskbar. When a user clicks
I have created an application that has a toolbar, menubar and content area. I
I have created an application that uses settings.settings to store some user specific settings
I have created an application that records a series of longitude and latitude values
I've created a web application that I've hosted with IIS 7 on a Windows
I have created a console application that calls a method on a webservice. I
The MFC application that i created is dialog based. Just one dialog thats all.
I have an application that has created a number of custom event log sources

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.