Ejemplo n.º 1
0
        private void Create()
        {
            // impersonate thread
            if (ThreadUserId != -1)
            {
                SecurityContext.SetThreadPrincipal(ThreadUserId);
            }

            // perform backup
            VirtualizationServerControllerForPrivateCloud.CreateVMFromVMAsunc(packageId, vmTemplate, vmName);
        }