HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

Add Azure event provider to .NET Core application

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



You need to add the EPiServer.Azure package to your solution, which has the extension methods on the IServiceCollection interface.

The following example shows how to add the Azure Event Provider to a Optimizely Content Management System (CMS) application.

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 = "{The topic name}";
          o.SubscriptionName = "{Subscription name}"; // Set to the local machine name if not set