mirror of https://github.com/dapr/dotnet-sdk.git
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
// ------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
// ------------------------------------------------------------
|
|
|
|
using Dapr.Actors.AspNetCore.IntegrationTest.App.ActivationTests;
|
|
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace Dapr.Actors.AspNetCore.IntegrationTest.App
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
CreateWebHostBuilder(args).Build().Run();
|
|
}
|
|
|
|
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.UseStartup<Startup>()
|
|
.ConfigureServices(services =>
|
|
{
|
|
services.AddScoped<CounterService>();
|
|
})
|
|
.UseActors(options =>
|
|
{
|
|
options.Actors.RegisterActor<DependencyInjectionActor>();
|
|
});
|
|
}
|
|
}
|