public override void OnTargetInitialized(object sender, InterceptionEventArgs eventArgs)
 {
     Console.WriteLine("LoggingAspect: Mixin [{0}] initialized for [{1}]",
         eventArgs.Mixin.GetType().FullName,
         eventArgs.Target.GetType().FullName);
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 4
0
 public void OnTargetInitialized(object sender, InterceptionEventArgs args)
 {
     InitializedCount++;
 }