Change values of service in runtime

Topics: CAB & Smart Client Software Factory
Feb 25, 2006 at 2:06 PM
originally posted by: ovidius

I need to change the value of a servize in run time.
How can i do this, if it's possible?
I've tried to remove it and than add the new one. But at this point, other workitem, that loads it with the ServiceDependency attribute doesn't catch the new value.
Is there any solution.

Feb 25, 2006 at 11:27 PM
originally posted by: aras03k

I'm not sure thats possible :) Perhaps someone smarter than me will chime in on this!

What you could do is to let your injected service act as a factory to create your runtime specific services.

Like MyInjectedService.CreateMyWorkService().DoSomething();