public PresentationPointcut(PresentationAspect aspect, IPointcut pointcut) { this.aspect = aspect; this.Name = pointcut.Name; foreach (PointcutTarget target in pointcut.Targets) { PresentationPointcutTarget presTarget = new PresentationPointcutTarget(this, target); this.Targets.Add(presTarget); } foreach (object interceptor in pointcut.Interceptors) { string typeName = ""; if (interceptor is Type) { typeName = ((Type)interceptor).FullName; } else { typeName = (string)interceptor; } PresentationInterceptor presInterceptor = new PresentationInterceptor(this, typeName); this.Interceptors.Add(presInterceptor); } }
public InterceptorNode(PresentationInterceptor interceptor) : base(interceptor.TypeName) { this.interceptor = interceptor; this.ImageIndex = 7; this.SelectedImageIndex = 7; }
public PresentationPointcut(PresentationAspect aspect, IPointcut pointcut) { this.aspect = aspect; this.Name = pointcut.Name; foreach (PointcutTarget target in pointcut.Targets) { PresentationPointcutTarget presTarget = new PresentationPointcutTarget(this, target); this.Targets.Add(presTarget); } foreach (object interceptor in pointcut.Interceptors) { string typeName = ""; if (interceptor is Type) typeName = ((Type)interceptor).FullName; else typeName = (string)interceptor; PresentationInterceptor presInterceptor = new PresentationInterceptor(this, typeName); this.Interceptors.Add(presInterceptor); } }
private static void SerializeInterceptor(PresentationInterceptor interceptor, XmlDocument xmlDoc, XmlNode pointcutNode) { XmlNode interceptorNode = xmlDoc.CreateElement("interceptor"); XmlAttribute typeAttrib = xmlDoc.CreateAttribute("type"); typeAttrib.Value = interceptor.TypeName; interceptorNode.Attributes.Append(typeAttrib); pointcutNode.AppendChild(interceptorNode); }
public InterceptorProperties(PresentationInterceptor interceptor) { this.interceptor = interceptor; }
private void ShowInterceptorMethods(PresentationInterceptor interceptor) { listViewMaster = interceptor; ShowAppliedMethods(interceptor.AppliedOnMethods); }
private void RemoveInterceptor(PresentationInterceptor interceptor) { interceptor.Pointcut.Interceptors.Remove(interceptor); RefreshAll(); }
private void AddInterceptor(PresentationPointcut pointcut) { PresentationInterceptor interceptor = new PresentationInterceptor(pointcut); interceptor.TypeName = "[New Interceptor]"; pointcut.Interceptors.Add(interceptor); RefreshAll(); }