From 1e7dbaa91d5e433bfc3e6417cec40ac2dbfd48aa Mon Sep 17 00:00:00 2001 From: redth Date: Thu, 22 Sep 2022 17:28:48 -0400 Subject: [PATCH] Fix calls for api changes --- src/Driver/GrpcHost.cs | 2 +- src/Driver/MacDriver.cs | 2 +- src/Driver/WindowsDriver.cs | 2 +- src/Driver/iOSDriver.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Driver/GrpcHost.cs b/src/Driver/GrpcHost.cs index 28ca6e2..2693eaa 100644 --- a/src/Driver/GrpcHost.cs +++ b/src/Driver/GrpcHost.cs @@ -12,7 +12,7 @@ public class GrpcHost { public GrpcHost(IAutomationConfiguration configuration) { - var builder = CreateHostBuilder(this); + var builder = CreateHostBuilder(this, configuration); host = builder.Build(); host.Start(); diff --git a/src/Driver/MacDriver.cs b/src/Driver/MacDriver.cs index c61fb2e..d9463a1 100644 --- a/src/Driver/MacDriver.cs +++ b/src/Driver/MacDriver.cs @@ -38,7 +38,7 @@ public MacDriver(IAutomationConfiguration configuration) : base(configuration) //var connectResponse = idb.connect(new Idb.ConnectRequest()); //Udid = connectResponse.Companion.Udid; - grpc = new GrpcHost(); + grpc = new GrpcHost(configuration); } //public readonly string Udid; diff --git a/src/Driver/WindowsDriver.cs b/src/Driver/WindowsDriver.cs index 4e34267..6b349be 100644 --- a/src/Driver/WindowsDriver.cs +++ b/src/Driver/WindowsDriver.cs @@ -47,7 +47,7 @@ public WindowsDriver(IAutomationConfiguration configuration) : base(configuratio appCapabilities.SetCapability("platformName", "Windows"); appCapabilities.SetCapability("platformVersion", "1.0"); - grpc = new GrpcHost(); + grpc = new GrpcHost(configuration); Session = new Lazy>(() => new WindowsDriver(new Uri("http://127.0.0.1:4723"), appCapabilities)); diff --git a/src/Driver/iOSDriver.cs b/src/Driver/iOSDriver.cs index f4521ed..e24277c 100644 --- a/src/Driver/iOSDriver.cs +++ b/src/Driver/iOSDriver.cs @@ -63,7 +63,7 @@ public iOSDriver(IAutomationConfiguration configuration) : base(configuration) Name = $"iOS ({configuration.Device} [{Udid}])"; - grpc = new GrpcHost(); + grpc = new GrpcHost(configuration); } public readonly string Udid;