Author: miguel
Date: 2007-06-10 19:08:32 -0400 (Sun, 10 Jun 2007)
New Revision: 79134

Modified:
   trunk/moon/plugin/moon-plugin.cpp
   trunk/moon/plugin/moonlight.cs
Log:
Add notes for Everaldo, or anyone else

Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp   2007-06-10 22:46:51 UTC (rev 79133)
+++ trunk/moon/plugin/moon-plugin.cpp   2007-06-10 23:08:32 UTC (rev 79134)
@@ -260,6 +260,11 @@
 {
        DEBUGMSG ("StreamAsFile: %s", fname);
 
+       // TODO
+       //   1. Call a helper method in managed code that would create the new 
AppDomain
+       //   2. Call a helper method (maybe the same) that would process the 
input parameters
+       //   3. Remove the call here below, and let managed code load the XAML
+
        panel_child_add (this->canvas, xaml_create_from_file (fname, NULL));
 }
 

Modified: trunk/moon/plugin/moonlight.cs
===================================================================
--- trunk/moon/plugin/moonlight.cs      2007-06-10 22:46:51 UTC (rev 79133)
+++ trunk/moon/plugin/moonlight.cs      2007-06-10 23:08:32 UTC (rev 79134)
@@ -2,9 +2,31 @@
 
 class Moonlight {
        static int count;
+
+       //
+       // This method should be invoked in the new AppDomain
+       static void OnNewAppDomain ()
+       {
+               // 1. Load XAML file
+               // 2. Make sure XAML file exposes a few new properites:
+               //    a. Loaded  (this is the method to call)
+               //    b. x:Class (it specifies the assembly to request from the 
server, and the class to load).
+               // 3. Request the browser to download the files
+               // 4. From the assembly, lookup the specified class
+               // 5. From the class lookup the specified method
+               // 6. Run the method
+               // 7. If none of those properties are there, we can return
+       }
        
+       static void CreateInstance ()
+       {
+               // 1. Create a new AppDomain.
+               // 2. Invoke a method in the new AppDomain to load the XAML file
+       }
+       
        static void Main ()
        {
                Console.WriteLine ("Running Moonlight.cs {0}", count++);
        }
+       
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to