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

CanCallChannelOperationsAsynchronously() private method

private CanCallChannelOperationsAsynchronously ( ) : void
return void
		public void CanCallChannelOperationsAsynchronously()
		{
			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");
			var call = client.BeginWcfCall(p => p.GetValueFromConstructor());
			Assert.AreEqual(42, call.End());
		}
WcfClientFixture