public override void Configure(Container container) { SharedAppHostConfig.Configure(this, "~/App_Data/packages".MapHostAbsolutePath()); VirtualFiles = new FileSystemVirtualFiles(MapProjectPath("~/")); Config.WebHostPhysicalPath = MapProjectPath("~/wwwroot"); Config.DebugMode = true; }
/// <summary> /// Application specific configuration /// This method should initialize any IoC resources utilized by your web service classes. /// </summary> /// <param name="container"></param> public override void Configure(Container container) { SetConfig(new HostConfig { EmbeddedResourceBaseTypes = { typeof(AppHost), typeof(SharedEmbeddedResources) }, }); var packagesPath = "~/packages".MapAbsolutePath(); SharedAppHostConfig.Configure(this, packagesPath); }
/// <summary> /// Application specific configuration /// This method should initialize any IoC resources utilized by your web service classes. /// </summary> /// <param name="container"></param> public override void Configure(Container container) { SetConfig(new HostConfig { EmbeddedResourceBaseTypes = { typeof(AppHost), typeof(SharedEmbeddedResources) }, }); SharedAppHostConfig.Configure(this, "~/packages".MapAbsolutePath()); // This route is added using Routes.Add and ServiceController.RegisterService due to // using ILMerge limiting our AppHost : base() call to one assembly. // If two assemblies are used, the base() call searchs the same assembly twice due to the ILMerged result. Routes.Add <NativeHostAction>("/nativehost/{Action}"); ServiceController.RegisterService(typeof(NativeHostService)); }
/// <summary> /// Application specific configuration /// This method should initialize any IoC resources utilized by your web service classes. /// </summary> /// <param name="container"></param> public override void Configure(Container container) { //Config examples //this.Plugins.Add(new PostmanFeature()); //Plugins.Add(new CorsFeature()); SetConfig(new HostConfig { DebugMode = true, EmbeddedResourceBaseTypes = { typeof(AppHost), typeof(SharedEmbeddedResources) } }); SharedAppHostConfig.Configure(this, "~/packages".MapAbsolutePath()); Routes.Add <NativeHostAction>("/nativehost/{Action}"); ServiceController.RegisterService(typeof(NativeHostService)); }
public override void Configure(Container container) { SharedAppHostConfig.Configure(this, "~/App_Data/packages".MapHostAbsolutePath()); }