예제 #1
0
 // GET api/<controller>
 public IEnumerable <Employee> Get()
 {
     using (var lg = _logger.GetLoggingBlock())
     {
         var client = new EmployeeServiceProxy();
         return(client.Execute(c => c.GetEmployees()));
     }
 }
예제 #2
0
        static void Main(string[] args)
        {
            var client = new EmployeeServiceProxy();

            var employees = client.Execute(p => p.GetEmployees());


            _logger.Debug("Yellow");
        }
예제 #3
0
 public EmployeeController()
 {
     _employeeServiceProxy     = new EmployeeServiceProxy();
     _employeeTaskServiceProxy = new EmployeeTaskServiceProxy();
 }