Inheritance: ILiaraEngine
Esempio n. 1
0
        /// <summary>
        ///     Creates a new Liara Engine for applications.
        /// </summary>
        /// <param name="next" />
        /// <param name="configuration"></param>
        public LiaraMiddleware(AppFunc next, LiaraConfiguration configuration = null)
        {
            if (configuration == null)
                configuration = new LiaraConfiguration();

            engine = new LiaraEngine(configuration);
            this.next = next;
        }
Esempio n. 2
0
        /// <summary>
        ///     Creates a new Liara Engine for applications.
        /// </summary>
        /// <param name="next" />
        /// <param name="configuration"></param>
        public LiaraMiddleware(AppFunc next, LiaraConfiguration configuration = null)
        {
            if (configuration == null)
            {
                configuration = new LiaraConfiguration();
            }

            engine    = new LiaraEngine(configuration);
            this.next = next;
        }