/// <summary>
/// Creation Factory for COMObject and derived types
/// </summary>
public static class Factory
{
// Events

   /// <summary>
   /// notify info, the count of proxies there open are changed   
   /// in case of notify comes from event trigger then the call comes from other thread
   /// </summary>
   static event ProxyCountChangedHandler ProxyCountChanged; 

//  Properties

   /// <summary>
   ///  Returns count of open proxies
   /// </summary>
   static int ProxyCount { get; }

// Methods

   /// <summary>
   /// Must be called from client assembly for COMObject Support
   /// Recieve FactoryInfos from all loaded LateBindingApi based Assemblies
   /// </summary>
   static void Initialize()

   /// <summary>
   /// clears factory informations List
   /// </summary>
   static void Clear()

   /// <summary>
   /// creates a new COMObject based on classType of comProxy 
   /// </summary>
   /// <param name="caller">parent there have created comProxy</param>
   /// <param name="comProxy">new created proxy</param>
   /// <returns>corresponding Wrapper class Instance or plain COMObject</returns>
   static COMObject CreateObjectFromComProxy(COMObject caller, object comProxy)

   /// <summary>
   /// creates a new COMObject based on classType of comProxy 
   /// </summary>
   /// <param name="caller">parent there have created comProxy</param>
   /// <param name="comProxy">new created proxy</param>
   /// <param name="comProxyType">Type of comProxy</param>
   /// <returns>corresponding Wrapper class Instance or plain COMObject<</returns>
   static COMObject CreateObjectFromComProxy(COMObject caller, object comProxy, Type comProxyType)

   /// <summary>
   /// creates a new COMObject from factoryInfo
   /// </summary>
   /// <param name="factoryInfo">Factory Info from Wrapper Assemblies</param>
   /// <param name="caller">parent there have created comProxy</param>
   /// <param name="comProxy">new created proxy</param>
   /// <param name="comProxyType">Type of comProxy</param>
   /// <param name="className">name of COMServer proxy class</param>
   /// <param name="fullClassName">full namespace and name of COMServer proxy class</param>
   /// <returns>corresponding Wrapper class Instance or plain COMObject</returns>
   static COMObject CreateObjectFromComProxy(IFactoryInfo factoryInfo, COMObject caller, object comProxy, 	
						Type comProxyType, string className, string fullClassName)

   /// <summary>
   ///  creates a new COMObject array
   /// </summary>
   /// <param name="caller">parent there have created comProxy</param>
   /// <param name="comProxyArray">new created proxy array</param>
   /// <returns>corresponding Wrapper class Instance array or plain COMObject array</</returns>
   static COMObject[] CreateObjectArrayFromComProxy(COMObject caller, object[] comProxyArray)

   /// <summary>
   /// dispose all open objects
   /// </summary>
   static void DisposeAllCOMProxies()
}

Last edited May 29, 2011 at 3:09 PM by SebastianDotNet, version 8

Comments

No comments yet.