SheepAspect SelectConstructors SAQL Syntax Help!!..

May 7, 2013 at 1:30 PM
Hi hendryluk ,
I have posted a similar question in issue tracker,(just moving it to discussion) to get a feasible solution
Issue tracker link
I have tried your solution with 'SelectConstructors' ,but with no success and i will be listing the options I have tried so far.
Can you help me on that?

Code

class Program
    {
        static void Main()
        {
            

            StreamWriter sw = new StreamWriter(@"E:\AOP\sheepaspect-76419\SheepAspectCompiler\bin\Debug\Test\sample.txt");

            Console.ReadLine();
        }
}

Aspect Defintion

SelectConstructors("InType:'System.IO.StreamWriter'")]
        public void StreamWriterCreate()
        { }
        [Around("StreamWriterCreate")]
         public void DemoAdvice2(CallMethodJointPoint    jp)
        {
            Console.WriteLine("Checking constructor aspect", jp.This );
            
        }
        
YI: I have tried query with SAQL Query Analyser,but with no success.

Can you please let me know how to do the above aspect process(since in critical time frame to do it).

Looking forward for your reply
Regards,
Murugan