Beispiel #1
0
 private void Loop_PostSharp(int iterations)
 {
     LoopFunction(delegate
     {
         ISmsSender oSms = new SmsSenderPostSharp();
         oSms.Send("Hola mundo", "Hola mundo");
     }, iterations);
 }
        private void btnPostSharp_Click(object sender, EventArgs e)
        {
            txtOutput.AppendTextLine("POSTSHARP TEST");
            txtOutput.AppendTextLine("-------------------");
            SmsSenderPostSharp oSms = new SmsSenderPostSharp();

            oSms.Send("Hola mundo", "Hola mundo");
            txtOutput.AppendTextLine("RESULT:");
            txtOutput.AppendTextLine(TraceFile.Output);
            txtOutput.AppendTextLine("-------------------");
            TraceFile.Output = "";
        }