Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Last active November 7, 2019 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/87082998051bf6b68b31d9e26b40bfdc to your computer and use it in GitHub Desktop.
Save dcomartin/87082998051bf6b68b31d9e26b40bfdc to your computer and use it in GitHub Desktop.
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Orleans.Hosting;
namespace Orleans.AspNetCore.Demo
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
})
.UseOrleans(siloBuilder =>
{
siloBuilder.UseLocalhostClustering();
})
.ConfigureLogging(logging =>
{
logging.AddConsole();
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment