dimanche 29 octobre 2017

Web API cross layers variable per session

I have WEB API controller, which i need to return some informative value on the header response per each API method call.I can init this value only on my lower layer (DAL). i also have a business Layer (BL) in the middle. Is there an elegant way to set the value on the DAL , and then easily retrieve it on the controller? instead of passing it all over the layers or returning it wrapped in some returned object. i cannot use static global as it will be shared right? and i need it per session.

Any advise?

Thanks




Aucun commentaire:

Enregistrer un commentaire