...
This commit is contained in:
26
SubProject/FCOMMON/IMyContract.cs
Normal file
26
SubProject/FCOMMON/IMyContract.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FCOMMON
|
||||
{
|
||||
[ServiceContract]
|
||||
public interface IMyContract
|
||||
{
|
||||
[OperationContract]
|
||||
string Hello(string name);
|
||||
}
|
||||
|
||||
// 실제로 Client에서 호출될 함수
|
||||
public class MyService : IMyContract
|
||||
{
|
||||
public string Hello(string name)
|
||||
{
|
||||
return "Hello " + name + "!";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user