Example #1
0
            private void CreateInstanceInner(
                object pUnkOuter,
                ref Guid riid,
                string key,
                bool isDesignTime,
                out object ppvObject)
            {
                BasicClassFactory.ValidateInterfaceRequest(_classType, ref riid, pUnkOuter);

                ppvObject = _licenseProxy.AllocateAndValidateLicense(_classType, key, isDesignTime);
                if (pUnkOuter != null)
                {
                    ppvObject = BasicClassFactory.CreateAggregatedObject(pUnkOuter, ppvObject);
                }
            }
Example #2
0
            private void CreateInstanceInner(
                object?pUnkOuter,
                ref Guid riid,
                string?key,
                bool isDesignTime,
                out object ppvObject)
            {
                Type interfaceType = BasicClassFactory.GetValidatedInterfaceType(_classType, ref riid, pUnkOuter);

                ppvObject = _licenseProxy.AllocateAndValidateLicense(_classType, key, isDesignTime);
                if (pUnkOuter != null)
                {
                    ppvObject = BasicClassFactory.CreateAggregatedObject(pUnkOuter, ppvObject);
                }

                BasicClassFactory.ValidateObjectIsMarshallableAsInterface(ppvObject, interfaceType);
            }