Castle.Facilities.WcfIntegration.Tests.WcfClientFixture.CanCallChannelOperationsWithRefArgumentsAsynchronously C# (CSharp) Method

CanCallChannelOperationsWithRefArgumentsAsynchronously() public method

		public void CanCallChannelOperationsWithRefArgumentsAsynchronously()
		{
			windsorContainer.Register(
				Component.For<IOperations>()
					.Named("operations")
					.AsWcfClient(new DefaultClientModel()
					{
						Endpoint = WcfEndpoint
							.BoundTo(new NetTcpBinding { PortSharingEnabled = true })
							.At("net.tcp://localhost/Operations")
					})
				);

			var client = windsorContainer.Resolve<IOperations>("operations");
			int refValue = 0;
			var call = client.BeginWcfCall(p => p.GetValueFromConstructorAsRef(ref refValue));
			Assert.AreEqual(42, call.End(out refValue));
			Assert.AreEqual(42, refValue);
		}
WcfClientFixture