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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:48:29+00:00 2026-05-15T21:48:29+00:00

HI all, I am not sure whether this is possible in C# or in

  • 0

HI all,

I am not sure whether this is possible in C# or in any other language for that matter. Below is my requirement

It is a service application which will get some commands to execute. Those commands are predefined (methods in classes). When user calls these methods, the application framework must call another method (a default method) and complete the execution then execute teh called method. I understand there is a possibility of performance but i am in need of this type of architecture.

To explain better below is an example

Step 1: User A calls a webservice method GetData (string dataid, string dataLocation).
step 2: webservice recieves this call as http get method and it must first execute a default method CheckData(GetData).
Step 3: CheckData will now check the data which was sent to GetData Method and then it executes the GetData Method.

This way i can perform some operations like authentication, cleanup works and also other various system activities. Will it be possible for this kind of model.

My requirement is

User calls Webservice method employee.GetQualification.

In webservices, the call stack must be

Validater.CheckData (GetQualification)
Employee.GetQualification()
Validator.CheckOutput(output)

I am not looking for something like below (method stack)

Employee.GetQualification()
Validater.CheckData (getQualification parameters)
execute actual execution
Validator.CheckOutput(output)
Return

Some links/ thoughts would be beneficial for me to start on

Thanks.

  • 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-15T21:48:29+00:00Added an answer on May 15, 2026 at 9:48 pm

    At the method level, there is no way to do exactly what you want, but if you’re using WCF, you can create a custom behavior that does this for you.

    See this article for examples, particularly the bit about IParameterInspector.

    Personally, I don’t think I would use this approach though, unless you need it to be configurable behavior. Hard coding a call to a single private method to do some validation at the start of some operation isn’t so bad.

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

Sidebar

Related Questions

First of all I'm not sure this is even possible, however I need to
I'm not sure if this is possible at all, but wanted to find out
I'm not all that familiar with jquery so I'm not quite sure how to
I am not sure this can be done at all... Background: I am constructing
I am not sure if it's possible at all in HTML, but I would
Being a newbie to Javascript and jQuery, I am not sure whether this is
Not sure whether this should be asked here or on another site such as
I am not sure how to make an automaticed script that incrments all dates
I am new at cron jobs and am not sure whether this would would
First of all I'm not sure if .exe window is the proper term. It's

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.