27 references to CreateProxy
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
342var proxy = _callbackProxyFactory.Value.CreateProxy(callbackId, callbackType);
Aspire.Hosting.RemoteHost.Tests (26)
CallbackProxyTests.cs (26)
44factory.CreateProxy("configure-pool", typeof(Action<AksNodePoolConfig>))); 57var result = factory.CreateProxy("callback1", typeof(string)); 68var result = factory.CreateProxy("callback1", typeof(Action)); 79var result = factory.CreateProxy("callback1", typeof(TestCallbackNoArgs)); 90var result1 = factory.CreateProxy("callback1", typeof(TestCallbackNoArgs)); 91var result2 = factory.CreateProxy("callback1", typeof(TestCallbackNoArgs)); 105Assert.IsType<Action>(factory.CreateProxy("callback", typeof(Action))); 110Assert.Throws<ObjectDisposedException>(() => factory.CreateProxy("callback", typeof(Action))); 124Assert.IsType<Action>(factory.CreateProxy("callback", typeof(Action))); 144var proxy = (TestCallbackNoArgs)factory.CreateProxy("test-callback", typeof(TestCallbackNoArgs))!; 158var proxy = (TestCallbackWithIntResult)factory.CreateProxy("test-callback", typeof(TestCallbackWithIntResult))!; 189var result = factory.CreateProxy("callback1", typeof(TestCallbackWithString)); 201var proxy = (TestCallbackWithString)factory.CreateProxy("test-callback", typeof(TestCallbackWithString))!; 218var proxy = (TestCallbackWithMultipleParams)factory.CreateProxy("test-callback", typeof(TestCallbackWithMultipleParams))!; 244var proxy = (TestCallbackWithHandle)factory.CreateProxy("test-callback", typeof(TestCallbackWithHandle))!; 261var proxy = (TestCallbackWithStringResult)factory.CreateProxy("test-callback", typeof(TestCallbackWithStringResult))!; 275var proxy = (TestCallbackWithCancellation)factory.CreateProxy("test-callback", typeof(TestCallbackWithCancellation))!; 296var proxy = (TestCallbackWithOnlyCancellation)factory.CreateProxy("test-callback", typeof(TestCallbackWithOnlyCancellation))!; 318var proxy = (TestCallbackNoArgs)factory.CreateProxy("test-callback", typeof(TestCallbackNoArgs))!; 333var proxy = (TestCallbackWithIntResult)factory.CreateProxy("test-callback", typeof(TestCallbackWithIntResult))!; 348var proxy = (TestCallbackNoArgs)factory.CreateProxy("test-callback", typeof(TestCallbackNoArgs))!; 368var proxy = (TestSyncVoidCallbackWithDto)factory.CreateProxy("test-callback", typeof(TestSyncVoidCallbackWithDto))!; 390var proxy = (TestAsyncVoidCallbackWithDto)factory.CreateProxy("test-callback", typeof(TestAsyncVoidCallbackWithDto))!; 415var proxy = (TestSyncVoidCallbackWithMixedArgs)factory.CreateProxy("test-callback", typeof(TestSyncVoidCallbackWithMixedArgs))!; 433var proxy = (TestSyncVoidCallbackWithDto)factory.CreateProxy("test-callback", typeof(TestSyncVoidCallbackWithDto))!; 458var proxy = (TestSyncVoidCallbackWithMultipleDtos)factory.CreateProxy("test-callback", typeof(TestSyncVoidCallbackWithMultipleDtos))!;