Exemplo n.º 1
0
 public override void Configure(Container container)
 {
     SharedAppHostConfig.Configure(this, "~/App_Data/packages".MapHostAbsolutePath());
     VirtualFiles = new FileSystemVirtualFiles(MapProjectPath("~/"));
     Config.WebHostPhysicalPath = MapProjectPath("~/wwwroot");
     Config.DebugMode           = true;
 }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <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));
        }
Exemplo n.º 4
0
        /// <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));
        }
Exemplo n.º 5
0
 public override void Configure(Container container)
 {
     SharedAppHostConfig.Configure(this, "~/App_Data/packages".MapHostAbsolutePath());
 }