Exemplo n.º 1
0
        protected void Derive(ISession session, Extent extent)
        {
            var derivation = new Domain.NonLogging.Derivation(session, extent.ToArray());
            var validation = derivation.Derive();

            if (validation.HasErrors)
            {
                foreach (var error in validation.Errors)
                {
                    this.Logger.Error(error.Message);
                }

                throw new Exception("Derivation Error");
            }
        }
Exemplo n.º 2
0
        private void Derive(Extent extent)
        {
            var derivation = new Domain.NonLogging.Derivation(this.session, extent.ToArray());
            var validation = derivation.Derive();

            if (validation.HasErrors)
            {
                foreach (var error in validation.Errors)
                {
                    Console.WriteLine(error.Message);
                }

                throw new Exception("Derivation Error");
            }
        }
Exemplo n.º 3
0
        private void Derive(Extent extent)
        {
            var derivation = new Domain.NonLogging.Derivation(this.session, new DerivationConfig());

            derivation.AddDerivables(extent.Cast <Domain.Object>());

            var validation = derivation.Derive();

            if (validation.HasErrors)
            {
                foreach (var error in validation.Errors)
                {
                    Console.WriteLine(error.Message);
                }

                throw new Exception("Derivation Error");
            }
        }