Пример #1
0
 // Grpc proxying requires a specific setup so we can't use the built-in standard for the E2ETest partial class.
 public GrpcProxyTests(ITestOutputHelper output, DaprTestAppFixture fixture) : base(output, fixture)
 {
     AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
     base.Configuration = new DaprRunConfiguration
     {
         UseAppPort    = true,
         AppId         = "grpcapp",
         AppProtocol   = "grpc",
         TargetProject = "./../../../../../test/Dapr.E2E.Test.App.Grpc/Dapr.E2E.Test.App.Grpc.csproj",
     };
 }
Пример #2
0
        public ReentrantTests(ITestOutputHelper output, DaprTestAppFixture fixture) : base(output, fixture)
        {
            base.Configuration = new DaprRunConfiguration
            {
                UseAppPort    = true,
                AppId         = "reentrantapp",
                TargetProject = "./../../../../../test/Dapr.E2E.Test.App.ReentrantActor/Dapr.E2E.Test.App.ReentrantActors.csproj",
            };

            this.proxyFactory = new Lazy <IActorProxyFactory>(() =>
            {
                Debug.Assert(this.HttpEndpoint != null);
                return(new ActorProxyFactory(new ActorProxyOptions()
                {
                    HttpEndpoint = this.HttpEndpoint,
                }));
            });
        }