Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 742 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 742 Bytes

Intercom.Extensions.Hosting

Hosting and startup abstractions for Intercom. When using NuGet 3.x this package requires at least version 3.4....

Usage

When only supplying bearer token Intercom.Constants.Url.Production and Intercom.Constants.Version.Latest will be used.

await Host.CreateDefaultBuilder()
    .UseIntercom((context) => new IntercomConfiguration(context.Configuration.GetValue<string>("Intercom:BearerToken"))
    .Build()
    .RunAsync();
await Host.CreateDefaultBuilder()
    .UseIntercom((context) => new IntercomConfiguration(context.Configuration.GetValue<string>("Intercom:BearerToken"), Intercom.Constants.Url.Production, Intercom.Constants.Version.Latest)
    .Build()
    .RunAsync();