|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Channels;
namespace IPFilterTests
{
/// <summary>
/// Test service.
/// </summary>
public class TestService : ITestService
{
public object Test()
{
return "test";
}
}
/// <summary>
/// Test service contract.
/// </summary>
[ServiceContract]
public interface ITestService
{
[OperationContract]
object Test();
}
/// <summary>
/// Test service client.
/// </summary>
public class TestServiceClient : ClientBase<ITestService>, ITestService
{
/// <summary>
/// Initializes a new instance of the <see cref="TestServiceClient"/> class.
/// </summary>
/// <param name="binding">The binding.</param>
/// <param name="endpoint">The endpoint.</param>
public TestServiceClient(Binding binding, EndpointAddress endpoint)
: base(binding, endpoint)
{
}
public object Test()
{
return Channel.Test();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.