Exemple #1
0
        static public string invoke_get_command_line_string(cef_command_line_t *self)
        {
            GetObjectHandler func = Marshal.GetDelegateForFunctionPointer <GetObjectHandler>(self->get_command_line_string);
            CefString        str  = CefString.FromUserFree(func((IntPtr)self));

            return(str?.ToString());
        }
 static ExportedServicedComponentSample()
 {
     try
     {
         // in case we're dealing w/ unsigned assemblies, that is the way to go...
         string   path = Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName, "Spring.Services.dll");
         Assembly a    = Assembly.LoadFrom(path);
         if (a == null)
         {
             a = Assembly.Load("Spring.Services, Version=1.2.0.20001, Culture=neutral, PublicKeyToken=null");
         }
         Type t = a.GetType("Spring.EnterpriseServices.ServicedComponentHelper", true);
         getObject = (GetObjectHandler)Delegate.CreateDelegate(typeof(GetObjectHandler), t.GetMethod("GetObject"));
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
         throw;
     }
 }
 static ExportedServicedComponentSample()
 {
     try
     {
         // in case we're dealing w/ unsigned assemblies, that is the way to go...
         string path = Path.Combine( new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName, "Spring.Services.dll");
         Assembly a = Assembly.LoadFrom(path);
         if (a == null)
         {
             a = Assembly.Load("Spring.Services, Version=1.2.0.20001, Culture=neutral, PublicKeyToken=null");
         }
         Type t = a.GetType("Spring.EnterpriseServices.ServicedComponentHelper", true);
         getObject = (GetObjectHandler) Delegate.CreateDelegate(typeof(GetObjectHandler), t.GetMethod("GetObject"));
     }
     catch(Exception ex)
     {
         Trace.WriteLine(ex);
         throw;
     }
 }