Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using AopAlliance.Intercept;
|
---|
6 | using System.Threading;
|
---|
7 |
|
---|
8 | namespace 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.