Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article you will find:

...

Info
  1. Sitefinity version 13.3.7600

  2. Hawksearch .NET Core Renderer NuGet package

  3. .NET Core project with installed Hawksearch Renderer UI NuGet package

Steps to install the connector

  1. Install the NuGet package

...

Note

Disable 'Use cached controller container assemblies' option in Sitefinity Advanced Settings

  1. Open Sitefinity Advanced Settings (your-website-url/Sitefinity/Administration/Settings/Advanced)

  2. Select ‘Feather’ from the settings list

  3. Uncheck 'Use cached controller container assemblies'

  4. Click ‘Save Changes’ button

Steps to install the connector

  1. Install the NuGet package

  2. Build your solutionfor the CMS project

  3. Install the NuGet package for the .NET Core project

  4. Build your projects

Steps to configure the .NET Core Renderer

  1. Edit the Startup.cs file of your .NET Core Renderer application and add Hawksearch to your services.

    The Startup.cs should look like this:

Code Block
languagec#
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Progress.Sitefinity.AspNetCore;
using Renderer.Hawksearch.UI.Infrastructure.Extensions;

namespace Renderer
{
    public class Startup
    {
        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddHawksearch();
            services.AddSitefinity();
            services.AddViewComponentModels();
        }

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseStaticFiles();
            app.UseRouting();
            app.UseSitefinity();
            app.UseEndpoints(endpoints => { endpoints.MapSitefinityEndpoints(); });
        }
    }
}

Info

In Configure method add app.UseStaticFiles() before app.UseRouting()

Note

Modify HawkRoutesInitializer.cs - comment or remove the following two rows of code located in the HawkRoutesInitializer.cs (located in the App_Start folder) in case you already have them in your Global.asax.cs or anywhere else in your project:

  1. config.MapHttpAttributeRoutes();

  2. config.EnsureInitialized();