Skip to content

Instantly share code, notes, and snippets.

@pksorensen
Created December 28, 2020 08:40
Show Gist options
  • Save pksorensen/6ecc00e31d901b4b0a12a6f29e3d7ab2 to your computer and use it in GitHub Desktop.
Save pksorensen/6ecc00e31d901b4b0a12a6f29e3d7ab2 to your computer and use it in GitHub Desktop.
using DotNetDevOps.Extensions.AzureFunction;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.DurableTask;
using Microsoft.Azure.WebJobs.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using System.Text;
[assembly: WebJobsStartup(typeof(Startup))]
namespace DataverseStartup
{
public class Startup : IWebJobsStartup
{
public void Configure(IWebJobsBuilder builder)
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
ConfigureServices(builder.Services);
}
private void ConfigureServices(IServiceCollection services)
{
services.AddPowerPlatform();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment