Пример #1
0
        public void OnPost(PostInterceptArgs e)
        {
            StringBuilder sbLogMessage = new StringBuilder();

            sbLogMessage.AppendLine(e.ToString());
            logger.Log(string.Format("Log bitti : {0}", sbLogMessage.ToString()));
        }
Пример #2
0
        public void OnPost(PostInterceptArgs e)
        {
            //key ile veriyi cache'e ekle yada güncelle.
            string cacheKey = string.Format("{0}_{1}", e.MethodName, string.Join("_", e.Arguments));

            cacheProvider.SetData(cacheKey, e.Value);
        }
Пример #3
0
 private void OnPostIntercept(object[] aspects, PostInterceptArgs e)
 {
     foreach (IInterception loopAttribute in aspects)
     {
         if (loopAttribute is IPostVoidInterception)
         {
             ((IPostVoidInterception)loopAttribute).OnPost(e);
         }
     }
 }
Пример #4
0
 public void OnPost(PostInterceptArgs e)
 {
     mutex.ReleaseMutex();//Thread release
 }