Beispiel #1
0
        /// <summary>
        /// Amending Constructors
        /// </summary>
        public override void Amend(Constructor constructor)
        {
            if (!ShouldAmend(constructor.ConstructorInfo))
            {
                return;
            }

            Console.WriteLine(String.Format("Amending {0}", constructor.Name));
            base.Amend(constructor);

            constructor.Before(Logger.LogMethodBefore);
            constructor.After(Logger.LogMethodAfter);
        }