Inheritance: IExecutionContext
Esempio n. 1
0
        public virtual IExecutionContext CreateContext()
        {
            if (_application == null)
            {
                startAll();
            }



            var context = new FubuMvcContext(_application, _binding, _contextualProviders);

            _contextCreationActions.Each(x => x());

            return(context);
        }
Esempio n. 2
0
        public virtual IExecutionContext CreateContext()
        {
            if (_application == null)
            {
                startAll();
            }

            _application.Services.GetInstance <IRequestHistoryCache>().Clear();

            var context = new FubuMvcContext(this);

            _contextCreationActions.Each(x => x());

            return(context);
        }