コード例 #1
0
        public string DoSomething(string someText, ThePluginImplementationOfTheRequest theRequest)
        {
            // since we're able to use the request object as the plugin's strongly type version
            // we can call methods on it directly.
            Tests.Set(someText);

            return(theRequest.CallBackToTheHost("You should see: some text."));
        }
コード例 #2
0
        public string DoSomething(string someText, ThePluginImplementationOfTheRequest theRequest)
        {
            // since we're able to use the request object as the plugin's strongly type version
            // we can call methods on it directly.
            Tests.Set("BadImplementationwithHandlerCalled");

            Console.WriteLine("We get into the call, but we're going to throw.");
            throw new Exception("ha ha");
        }