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

CanCallChannelOperationsAsynchronouslyWithExplicitInterface() private method

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

			var client = windsorContainer.Resolve<IOperationsAll>("operations");
			var call = client.BeginGetValueFromConstructor(null, null);
			Assert.AreEqual(42, client.EndGetValueFromConstructor(call));
		}
WcfClientFixture