I have following issue with my WCF (REST) service that uses the Unity framework for IOC / DI:
I implemented a service (.svc) that has a reference / dependency to an object that handles the business logic (different assembly) which does also has dependency to the data access 'layer' which actually is a class in a separate assembly.
From the test client I request data from the service as following:
using (WebChannelFactory<IFundService> wcf = new WebChannelFactory<IFundService>("HttpFundServiceEndPoint"))
IFundService fsvc = wcf.CreateChannel();
SingleValue sv1 = fsvc.GetValue("Avalon", "CommitmentsTransaction", DateTime.Now);
SingleValue sv2 = fsvc.GetValue("Avalon", "CommitmentsTransaction", DateTime.Now);
As you can see I do the same call twice with the result that the numeric values get summed up e.g. the Total value is doubled after the second call.
Can anybody tell me how I can avoid such a behavior? How can clean up the cache of the "business layer" object?
Thank you for your help!