File: ServiceContract\IEchoService.cs
Web Access
Project: src\src\System.Private.ServiceModel\tests\Scenarios\Binding\UDS\Binding.UDS.IntegrationTests.csproj (Binding.UDS.IntegrationTests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.ServiceModel;
 
namespace Binding.UDS.IntegrationTests.ServiceContract
{
    internal static partial class Constants
    {
        public const string NS = "http://tempuri.org/";
        public const string TESTSERVICE_NAME = nameof(IEchoService);
        public const string OPERATION_BASE = NS + TESTSERVICE_NAME + "/";
    }
 
    [ServiceContract(Namespace = Constants.NS, Name = Constants.TESTSERVICE_NAME)]
    public interface IEchoService
    {
        [OperationContract(Name = "Echo", Action = Constants.OPERATION_BASE + "Echo",
            ReplyAction = Constants.OPERATION_BASE + "EchoResponse")]
        string Echo(string echo);
    }
}