Exportfile for AOT version 1.0 or later Formatversion: 1 ***Element: CLS ; Microsoft Dynamics AX Class: EventHandlerTester unloaded ; -------------------------------------------------------------------------------- CLSVERSION 1 CLASS #EventHandlerTester PROPERTIES Name #EventHandlerTester Origin #{5EAEA708-CD9F-4E13-B77C-420681BD0F06} ENDPROPERTIES METHODS SOURCE #classDeclaration #class EventHandlerTester #{ #} ENDSOURCE SOURCE #runWithAOTSubscription #public void runWithAOTSubscription() #{ # ; #} ENDSOURCE SOURCE #runWithDelegateSubscription #public void runWithDelegateSubscription() #{ # this.theDelegate(); #} ENDSOURCE SOURCE #runWithMethod #public void runWithMethod() #{ # EventHandlerTester::theMethod(); #} ENDSOURCE SOURCE #theDelegate #delegate void theDelegate() #{ #} ENDSOURCE SOURCE #main #public static void main(Args _args) #{ # EventHandlerTester eht = new EventHandlerTester(); # int i; # int maxLoops = 100000; # ; # # for(i=1; i<=maxLoops; i++) # { # eht.runWithAOTSubscription(); # } # # eht.theDelegate += eventhandler(EventHandlerTester::theDelegateMethod); # for(i=1; i<=maxLoops; i++) # { # eht.runWithDelegateSubscription(); # } # # for(i=1; i<=maxLoops; i++) # { # eht.runWithMethod(); # } #} ENDSOURCE SOURCE #theAOTHandler #public static void theAOTHandler(XppPrePostArgs _args) #{ # ; #} ENDSOURCE SOURCE #theDelegateMethod #static public void theDelegateMethod() #{ #} ENDSOURCE SOURCE #theMethod #static public void theMethod() #{ #} ENDSOURCE ENDMETHODS EVENTS METHOD #runWithAOTSubscription EVENTHANDLERS EVENTHANDLER #EH PROPERTIES CalledWhen #Post Class #EventHandlerTester Method #theAOTHandler AOTlink #\Classes\EventHandlerTester\theAOTHandler ENDPROPERTIES ENDEVENTHANDLER ENDEVENTHANDLERS ENDMETHOD EVENT #theDelegate ENDEVENT ENDEVENTS ENDCLASS ***Element: END