コード例 #1
0
        /// <summary>
        /// Add Poetry UI to your application. Don't forget calling .Done() when you're done configuring!
        /// </summary>
        /// <param name="application"></param>
        /// <returns></returns>
        public static PoetryConfigurator AddPoetryUI(this HttpApplication application)
        {
            var configurator = new PoetryConfigurator(new UnityContainer());

            configurator.AddAssembly(Assembly.GetCallingAssembly());

            return(configurator);
        }
コード例 #2
0
ファイル: Startup.cs プロジェクト: Peter-Schneider/Poetry.UI
        /// <summary>
        /// Add Poetry UI to your application. Don't forget calling .Done() when you're done configuring!
        /// </summary>
        /// <param name="application"></param>
        /// <returns></returns>
        public static PoetryConfigurator AddPoetryUI(this HttpApplication application)
        {
            var configurator = new PoetryConfigurator(new UnityContainer());

            return(configurator);
        }