Example #1
0
        /// <summary>
        /// This method will set up the KAC object and wrap all the methods/functions
        /// </summary>
        /// <param name="Force">This option will force the Init function to rebind everything</param>
        /// <returns></returns>
        public static Boolean InitVOIDWrapper()
        {
            //if (!_KACWrapped )
            //{
            //reset the internal objects
            _VOIDWrapped = false;
            actualVOID   = null;
            VOID         = null;
            LogFormatted("Attempting to Grab VOID Types...");


            //find the base type
            AssemblyLoader.loadedAssemblies.TypeOperation(t =>
            {
                if (t.FullName == "VOID.VOID_Data")
                {
                    VOID_DataType = t;
                }
            });

            if (VOID_DataType == null)
            {
                return(false);
            }

            LogFormatted("VOID Version:{0}", VOID_DataType.Assembly.GetName().Version.ToString());

            LogFormatted("Creating Wrapper Objects");
            VOID = new VOIDAPI(actualVOID);
            //}
            _VOIDWrapped = true;
            return(true);
        }
        /// <summary>
        /// This method will set up the KAC object and wrap all the methods/functions
        /// </summary>
        /// <param name="Force">This option will force the Init function to rebind everything</param>
        /// <returns></returns>
        public static Boolean InitVOIDWrapper()
        {
            //if (!_KACWrapped )
            //{
            //reset the internal objects
            _VOIDWrapped = false;
            actualVOID = null;
            VOID = null;
            LogFormatted("Attempting to Grab VOID Types...");

            //find the base type
            AssemblyLoader.loadedAssemblies.TypeOperation(t =>
            {
                if (t.FullName == "VOID.VOID_Data")
                    VOID_DataType = t;
            });

            if (VOID_DataType == null)
            {
                return false;
            }

            LogFormatted("VOID Version:{0}", VOID_DataType.Assembly.GetName().Version.ToString());

            LogFormatted("Creating Wrapper Objects");
            VOID = new VOIDAPI(actualVOID);
            //}
            _VOIDWrapped = true;
            return true;
        }
Example #3
0
        /// <summary>
        /// This method will set up the KAC object and wrap all the methods/functions
        /// </summary>
        /// <param name="Force">This option will force the Init function to rebind everything</param>
        /// <returns></returns>
        public static Boolean InitVOIDWrapper()
        {
            //if (!_KACWrapped )
            //{
            //reset the internal objects
            _VOIDWrapped = false;
            actualVOID = null;
            VOID = null;
            LogFormatted("Attempting to Grab VOID Types...");

            //find the base type
            VOID_DataType = AssemblyLoader.loadedAssemblies
                .Select(a => a.assembly.GetExportedTypes())
                .SelectMany(t => t)
                .FirstOrDefault(t => t.FullName == "VOID.VOID_Data");

            if (VOID_DataType == null)
            {
                return false;
            }

            LogFormatted("VOID Version:{0}", VOID_DataType.Assembly.GetName().Version.ToString());

            LogFormatted("Creating Wrapper Objects");
            VOID = new VOIDAPI(actualVOID);
            //}
            _VOIDWrapped = true;
            return true;
        }
        /// <summary>
        /// This method will set up the KAC object and wrap all the methods/functions
        /// </summary>
        /// <param name="Force">This option will force the Init function to rebind everything</param>
        /// <returns></returns>
        public static Boolean InitVOIDWrapper()
        {
            //if (!_KACWrapped )
            //{
            //reset the internal objects
            _VOIDWrapped = false;
            actualVOID   = null;
            VOID         = null;
            LogFormatted("Attempting to Grab VOID Types...");


            //find the base type
            VOID_DataType = AssemblyLoader.loadedAssemblies
                            .Select(a => a.assembly.GetExportedTypes())
                            .SelectMany(t => t)
                            .FirstOrDefault(t => t.FullName == "VOID.VOID_Data");

            if (VOID_DataType == null)
            {
                return(false);
            }

            LogFormatted("VOID Version:{0}", VOID_DataType.Assembly.GetName().Version.ToString());

            LogFormatted("Creating Wrapper Objects");
            VOID = new VOIDAPI(actualVOID);
            //}
            _VOIDWrapped = true;
            return(true);
        }