Beispiel #1
0
        /// <summary>
        /// Inject all of the default services used by Dna.Framework for a quicker and cleaner setup
        /// </summary>
        /// <param name="construction"></param>
        /// <returns></returns>
        public static FrameworkConstruction UseDefaultService(this FrameworkConstruction construction)
        {
            construction.AddDefaultExceptionHandler();
            construction.AddDefaultLogger();

            return(construction);
        }
        /// <summary>
        /// Injects all of the default services used by Dna Framework for a quicker and cleaner setup
        /// </summary>
        /// <param name="construction">The construction</param>
        /// <returns></returns>
        public static FrameworkConstruction AddDefaultServices(this FrameworkConstruction construction)
        {
            // Add exception handler
            construction.AddDefaultExceptionHandler();

            // Add default logger
            construction.AddDefaultLogger();

            // Chain the construction
            return(construction);
        }