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); }
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); }
public override void Respond(IHttpContext context) { var docPath = context.GetRequestUrl().Replace("/raven/", ""); context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, docPath); }
public override void Respond(IHttpContext context) { context.WriteEmbeddedFile(ResourceStore.GetType().Assembly, Settings.WebDir, "favicon.ico"); }