27 lines
		
	
	
		
			530 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			530 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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 + "!";
 | |
|         }
 | |
|     }
 | |
| 
 | |
| }
 | 
