Inheritance: ILiaraEngine
Example #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;
        }
Example #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;
        }