Ejemplo n.º 1
0
 protected override void Initialize()
 {
     base.Initialize();
     var defaultHost = WebEditor.Host;
     var decoratedHost = new RazorVersionDetectorOverridingWebHost(defaultHost);
     WebEditor.RemoveHost(defaultHost);
     WebEditor.SetHost(decoratedHost);
 }
Ejemplo n.º 2
0
        private static void InitializeHost()
        {
            var defaultHost   = WebEditor.Host;
            var decoratedHost = new RazorVersionDetectorOverridingWebHost(defaultHost);

            WebEditor.RemoveHost(defaultHost);
            WebEditor.SetHost(decoratedHost);
        }