2018-01-24 17:04:36 +00:00
|
|
|
|
#if !MOBILE && !XAMMAC_4_5
|
|
|
|
|
using System;
|
2014-08-13 10:39:27 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.ServiceModel;
|
|
|
|
|
|
|
|
|
|
namespace MonoTests.Features.Contracts
|
|
|
|
|
{
|
|
|
|
|
[ServiceContract (Namespace = "http://MonoTests.Features.Contracts")]
|
|
|
|
|
public interface IAsyncCallTesterContract
|
|
|
|
|
{
|
|
|
|
|
[OperationContract]
|
|
|
|
|
string Query (string query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ServiceBehavior (InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple)]
|
|
|
|
|
public class AsyncCallTester : IAsyncCallTesterContract
|
|
|
|
|
{
|
|
|
|
|
public string Query (string query)
|
|
|
|
|
{
|
|
|
|
|
return query + query;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2018-01-24 17:04:36 +00:00
|
|
|
|
#endif
|