Пример #1
0
 public IValidator <T> GetValidatorFor <T>(T obj) => _resolver.GetInstance <IValidator <T> >();
Пример #2
0
 public IHub Create(HubDescriptor descriptor) => typeof(BaseHub).IsAssignableFrom(descriptor.HubType)
     ? (IHub)_container.GetInstance(descriptor.HubType)
     : (IHub)Activator.CreateInstance(descriptor.HubType);
Пример #3
0
 public T Create <T>(ILaunchWith <T> game) where T : class, IGameLauncher => _depResolver.GetInstance <T>();
Пример #4
0
 protected T GetInstance <T>() where T : class => _depResolver.GetInstance <T>();