I would like to replicate the following code using Unity.Configuration (config file) rather than hard coding it. Could anyone help me?
viewModel = container.Resolve<IViewModel>();
The above secenario is part of a CompositeWPF application where IOrderService is responsible for publishing events, such as CustomerContextChangedEvent. Other types (again resolved using the same container) subscribe to these events
by referencing IOrderService as part of their Constructor (e.g. AnotherThing(IOrderService orderService)) or using Unity Dependency Injection.