Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Hive.Server/3.2/ServiceCallInterception.cs @ 3001

Last change on this file since 3001 was 2904, checked in by kgrading, 14 years ago

added functionality (#830)

File size: 705 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using AopAlliance.Intercept;
6using System.Threading;
7
8namespace HeuristicLab.Hive.Server {
9  class ServiceCallInterception: IMethodInterceptor {
10    #region IMethodInterceptor Members
11
12    public object Invoke(IMethodInvocation invocation) {
13      Console.WriteLine(DateTime.Now + " - " + Thread.CurrentThread.ManagedThreadId + " - Entering Method " + invocation.Method.Name);
14      var obj = invocation.Proceed();
15      Console.WriteLine(DateTime.Now + " - " + Thread.CurrentThread.ManagedThreadId + " - Leaving Method " + invocation.Method.Name);
16      return obj;
17    }
18
19    #endregion
20  }
21}
Note: See TracBrowser for help on using the repository browser.