示例#1
0
        private static IDependencyRegistration RegisterRegistration(IDependencyRegister dependencyRegister,
                                                                    IDependencyRegistration registerConfiguration)
        {
            if (dependencyRegister == null)
            {
                throw new ArgumentNullException(nameof(IDependencyRegister));
            }
            if (registerConfiguration == null)
            {
                throw new ArgumentNullException(nameof(registerConfiguration));
            }

            dependencyRegister.RegisterDependency((registerConfiguration as DependencyRegistration)?.Dependency);
            return(registerConfiguration);
        }