// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // ------------------------------------------------------------ namespace DaprDemoActor { using Dapr.Actors.AspNetCore; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; /// /// Class for host. /// public class Program { /// /// Entry point. /// /// Arguments. public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } /// /// Creates a IWebHostBuilder. /// /// Arguments. /// IWebHostBuilder instance. public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup() .UseActors(actorRuntime => { actorRuntime.RegisterActor(); }); } }