I am looking for a way to show many (2000+) similar web services through WCF.
I am working on an enterprise application in which business logic is packaged through classes (CQS). These classes make up all the data needed to execute a specific part of the business logic. I would like to find a way to expose these classes as web services using my own hosting.
All these classes have only one action (perform). All of them inherit from the base class, and their properties differ for each class. Based on the implemented interface and properties, the correct business logic is executed. Web services must be able to provide property values ββand perform an action.
No more than 5% of them will be used regularly. I know that it is not possible to create 2000+ service host instances. This is not a problem if these host instances are created on demand and destroyed after, for example, 10 minutes of inactivity. Ideally, I will respond to a request from the client and create a host instance if necessary.
EDIT:
From the reactions, I understand that what I'm mostly looking for is a way to not register all endpoints. I believe that the most acceptable approach is that I myself listen to incoming requests and deploy hosts as needed.
Is it possible?
source share