Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceLocatorAdapter"/> class. 
 /// </summary>
 /// <param name="serviceLocator">
 /// The service Locator. If <c>null</c>, <see cref="Catel.IoC.ServiceLocator.Default"/> will be used.
 /// </param>
 public ServiceLocatorAdapter(IServiceLocator serviceLocator)
 {
     _serviceLocator = serviceLocator ?? IoC.ServiceLocator.Default;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceLocatorAdapter"/> class.
 /// </summary>
 /// <param name="serviceLocator">
 /// The service Locator. If <c>null</c>, <see cref="Catel.IoC.ServiceLocator.Default"/> will be used.
 /// </param>
 public ServiceLocatorAdapter(IServiceLocator serviceLocator)
 {
     _serviceLocator = serviceLocator ?? IoC.ServiceLocator.Default;
 }