public void DoThis() { var factoryProvider = new BusinessServiceFactoryProvider(); var factory = factoryProvider.Factory; SomeAnotherClass someAnother = new SomeAnotherClass(factory.CreateService()); someAnother.DoThat(); }
public void DoThis() { var factoryProvider = new BusinessServiceFactoryProvider(); var factory = factoryProvider.Factory; SomeAnotherClass someAnother = new SomeAnotherClass(factory.CreateService()); someAnother.DoThat(); }