﻿using System;
using System.Collections.Generic;
using Microsoft.Framework.DependencyInjection;

namespace Glimpse.Web
{
    public class MasterRequestRuntime
    {
        private readonly IEnumerable<IRequestRuntime> _requestRuntimes;

        public MasterRequestRuntime(IServiceProvider serviceProvider)
        {
            _requestRuntimes = serviceProvider.GetService<IDiscoverableCollection<IRequestRuntime>>();
        }

        public void Begin(IContext newContext)
        {

        }

        public void End(IContext newContext)
        {

        }
    }
}
﻿using System;
using System.Collections.Generic;
using Microsoft.Framework.DependencyInjection;

namespace Glimpse.Web
{
    public class MasterRequestRuntime
    {
        private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes;

        public MasterRequestRuntime(IServiceProvider serviceProvider)
        {
            _requestRuntimes = serviceProvider.GetService<IDiscoverableCollection<IRequestRuntime>>();
            _requestRuntimes.Discover();
        }

        public void Begin(IContext newContext)
        {

        }

        public void End(IContext newContext)
        {

        }
    }
}
Set MasterReqRuntime to discover types
Set MasterReqRuntime to discover types
