Loading...
Area: Optimizely CMS
Applies to versions: 12 and higher

How to add Azure Event Provider to your .NET Core application

Recommended reading 

This topic explains how to use an event provider that uses Azure Service Bus as the transport mechanism.

Note: You need to install the EPiServer.Azure package, which has the extension methods on the IServiceCollection interface.

The following example shows how to use and add an Azure BLOB provider in an application.

using EPiServer.DependencyInjection;
using EPiServer.ServiceLocation;
using Microsoft.Extensions.DependencyInjection;
using System;

namespace SampleBlob
{
  public class Startup
  {
    public void ConfigureServices(IServiceCollection services)
    {
      services.AddAzureEventProvider(o =>
      {
        o.ConnectionString = { The Azure event connection string};
        o.TopicName = {topic name}
      });
    }
  }
}
Do you find this information helpful? Please log in to provide feedback.

Last updated: Sep 28, 2021

Recommended reading