Exemple #1
0
        public override void Respond(IHttpContext context)
        {
            var docPath = context.GetRequestUrl().Replace("/studio/", "");

            if (string.IsNullOrEmpty(docPath))
            {
                docPath = "studio.html";
            }
            context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, docPath);
        }
Exemple #2
0
        public override void Respond(IHttpContext context)
        {
            if (context.Request.Url.AbsolutePath == RavenRoot.RootPath &&
                SilverlightUI.GetPaths(ResourceStore.SilverlightXapName, ResourceStore.Configuration.WebDir).All(f => File.Exists(f) == false))
            {
                context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, "studio_not_found.html");
                return;
            }
            var docPath = context.GetRequestUrl().Replace("/raven/", "");

            context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, docPath);
        }
Exemple #3
0
        public override void Respond(IHttpContext context)
        {
            var docPath = context.GetRequestUrl().Replace("/raven/", "");

            context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, docPath);
        }
Exemple #4
0
 public override void Respond(IHttpContext context)
 {
     context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, "favicon.ico");
 }