lundi 12 février 2018

Resolve class at run-time

I have a requirement for clients to make requests to a web service and for part of the the process flow to be different for each client. Ideally I'd like to be able to resolve a class based on a client id/name so that bespoke logic can be applied by triggering a method name consistent across all of the classes. I'm using Autofac, so I'm thinking maybe that could be utilized, or some reflection technique? Can anyone recommend a pattern that might come in useful to accomplish this?

Aucun commentaire:

Enregistrer un commentaire