AsyncCallTester.cs 564 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.ServiceModel;
  5. namespace MonoTests.Features.Contracts
  6. {
  7. [ServiceContract (Namespace = "http://MonoTests.Features.Contracts")]
  8. public interface IAsyncCallTesterContract
  9. {
  10. [OperationContract]
  11. string Query (string query);
  12. }
  13. [ServiceBehavior (InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple)]
  14. public class AsyncCallTester : IAsyncCallTesterContract
  15. {
  16. public string Query (string query)
  17. {
  18. return query + query;
  19. }
  20. }
  21. }