public override void OnTargetInitialized(object sender, InterceptionEventArgs eventArgs)
 {
     Console.WriteLine("LoggingAspect: Mixin [{0}] initialized for [{1}]",
         eventArgs.Mixin.GetType().FullName,
         eventArgs.Target.GetType().FullName);
 }
示例#2
0
 /// <summary>
 /// Fired after the <see cref="pMixinAttribute.Mixin"/> object
 /// is instantiated.
 /// </summary>
 /// <param name="sender">
 /// The Mixin host container.
 /// </param>
 /// <param name="eventArgs">
 /// Contains references to the Target and Mixin class.
 /// </param>
 public virtual void OnTargetInitialized(object sender, InterceptionEventArgs eventArgs)
 {
 }
示例#3
0
 /// <summary>
 /// Fired after the <see cref="pMixinAttribute.Mixin"/> object
 /// is instantiated.
 /// </summary>
 /// <param name="sender">
 /// The Mixin host container.
 /// </param>
 /// <param name="eventArgs">
 /// Contains references to the Target and Mixin class.
 /// </param>
 public virtual void OnTargetInitialized(object sender, InterceptionEventArgs eventArgs)
 {
 }
 public void OnTargetInitialized(object sender, InterceptionEventArgs args)
 {
     InitializedCount++;
 }