public void OnPost(PostInterceptArgs e) { StringBuilder sbLogMessage = new StringBuilder(); sbLogMessage.AppendLine(e.ToString()); logger.Log(string.Format("Log bitti : {0}", sbLogMessage.ToString())); }
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); }
private void OnPostIntercept(object[] aspects, PostInterceptArgs e) { foreach (IInterception loopAttribute in aspects) { if (loopAttribute is IPostVoidInterception) { ((IPostVoidInterception)loopAttribute).OnPost(e); } } }
public void OnPost(PostInterceptArgs e) { mutex.ReleaseMutex();//Thread release }