private void CallOctetParamsMethodAsync(TestService serviceToUse) { System.Byte arg = (byte)m_random.Next(100); ByteParamsCallDelegate bcd = new ByteParamsCallDelegate(serviceToUse.TestIncByte); // async call IAsyncResult ar = bcd.BeginInvoke(arg, null, null); // wait for response System.Byte result = bcd.EndInvoke(ar); Assertion.AssertEquals((System.Byte)(arg + 1), result); }