Arc.Infrastructure.Dependencies.Registration.Auto.RegisterTypeToFirstMatchStrategy.Register C# (CSharp) Метод

Register() публичный Метод

Registers the specified type.
public Register ( Type type, IServiceLocator locator ) : void
type System.Type The type.
locator IServiceLocator The locator.
Результат void
        public void Register(Type type, IServiceLocator locator)
        {
            var interfaces = type.FindInterfaces((t, obj) => _binding.Invoke(t, type), null);
            if (interfaces.Length > 0)
                Register(interfaces[0], type, locator);
        }
RegisterTypeToFirstMatchStrategy