MessageContractTesterProxy.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Proxy.MonoTests.Features.Client
  5. {
  6. [System.CodeDom.Compiler.GeneratedCodeAttribute ("System.ServiceModel", "3.0.0.0")]
  7. [System.ServiceModel.ServiceContractAttribute (Namespace = "http://MonoTests.Features.Contracts", ConfigurationName = "IMessageContractTesterContract")]
  8. public interface IMessageContractTesterContract
  9. {
  10. [System.ServiceModel.OperationContractAttribute (Action = "http://test/TestMessage_action", ReplyAction = "http://test/TestMessage_action")]
  11. TestMessage FormatDate (TestMessage testMessage);
  12. }
  13. [System.Diagnostics.DebuggerStepThroughAttribute ()]
  14. [System.CodeDom.Compiler.GeneratedCodeAttribute ("System.ServiceModel", "3.0.0.0")]
  15. [System.ServiceModel.MessageContractAttribute (WrapperName = "TestMessage", WrapperNamespace = "http://MonoTests.Features.Contracts", IsWrapped = true)]
  16. public partial class TestMessage
  17. {
  18. [System.ServiceModel.MessageHeaderAttribute (Namespace = "http://MonoTests.Features.Contracts")]
  19. public string FormatString;
  20. [System.ServiceModel.MessageBodyMemberAttribute (Namespace = "http://MonoTests.Features.Contracts", Order = 0)]
  21. public DateTime Date;
  22. [System.ServiceModel.MessageBodyMemberAttribute (Namespace = "http://MonoTests.Features.Contracts", Order = 1)]
  23. public string FormattedDate;
  24. public TestMessage ()
  25. {
  26. }
  27. public TestMessage (DateTime Date, string FormatString, string FormattedDate)
  28. {
  29. this.Date = Date;
  30. this.FormatString = FormatString;
  31. this.FormattedDate = FormattedDate;
  32. }
  33. }
  34. [System.CodeDom.Compiler.GeneratedCodeAttribute ("System.ServiceModel", "3.0.0.0")]
  35. public interface IMessageContractTesterContractChannel : IMessageContractTesterContract, System.ServiceModel.IClientChannel
  36. {
  37. }
  38. [System.Diagnostics.DebuggerStepThroughAttribute ()]
  39. [System.CodeDom.Compiler.GeneratedCodeAttribute ("System.ServiceModel", "3.0.0.0")]
  40. public partial class MessageContractTesterContractClient : System.ServiceModel.ClientBase<IMessageContractTesterContract>, IMessageContractTesterContract
  41. {
  42. public MessageContractTesterContractClient ()
  43. {
  44. }
  45. public MessageContractTesterContractClient (string endpointConfigurationName) :
  46. base (endpointConfigurationName)
  47. {
  48. }
  49. public MessageContractTesterContractClient (string endpointConfigurationName, string remoteAddress) :
  50. base (endpointConfigurationName, remoteAddress)
  51. {
  52. }
  53. public MessageContractTesterContractClient (string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  54. base (endpointConfigurationName, remoteAddress)
  55. {
  56. }
  57. public MessageContractTesterContractClient (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  58. base (binding, remoteAddress)
  59. {
  60. }
  61. TestMessage IMessageContractTesterContract.FormatDate (TestMessage testMessage)
  62. {
  63. return base.Channel.FormatDate (testMessage);
  64. }
  65. public void Calculate (ref DateTime Date, ref string FormatString, ref string FormattedDate)
  66. {
  67. TestMessage inValue = new TestMessage ();
  68. inValue.Date = Date;
  69. inValue.FormatString = FormatString;
  70. inValue.FormattedDate = FormattedDate;
  71. TestMessage retVal = ((IMessageContractTesterContract) (this)).FormatDate (inValue);
  72. Date = retVal.Date;
  73. FormatString = retVal.FormatString;
  74. FormattedDate = retVal.FormattedDate;
  75. }
  76. }
  77. }