Esempio n. 1
0
        /// <summary>
        /// Request suspension of a RootHE (HE = Hosting Environment) job
        /// from the MR SDK. If the request succeeds, the related job will change state to be Suspended.
        /// This suspension will be held for a predefined time unless a resumption request
        /// comes from the tenant. After this time passes, the related RootHE job is alerted.
        /// By this capability, tenants would be able to postpone a RootHE job in order
        /// to save time for tenant update, etc. before infrastructure update.
        /// This method only works for jobs of type <see cref="Microsoft.WindowsAzure.ServiceRuntime.Management.PlatformUpdateJob"/>.
        /// Also, this feature is applicable for privileged tenants that own the node. Only such tenants can suspend a RootHE.
        /// </summary>
        /// <seealso cref="RequestResume"/>
        public void RequestSuspend()
        {
            const string      ActionName = "RequestSuspend";
            PlatformUpdateJob job        = GetPlatformUpdateJob(ActionName);

            InvokePlatformUpdateAction(job.RequestSuspend, ActionName);
        }
Esempio n. 2
0
        /// <summary>
        /// Request resumption of a suspended RootHE (HE = Hosting Environment) job
        /// This method only works for jobs of type <see cref="Microsoft.WindowsAzure.ServiceRuntime.Management.PlatformUpdateJob"/>.
        /// Also, this feature is applicable for privileged tenants that own the node. Only such tenants can resume a suspended RootHE job.
        /// </summary>
        /// <seealso cref="RequestSuspend"/>
        public void RequestResume()
        {
            const string      ActionName = "RequestResume";
            PlatformUpdateJob job        = GetPlatformUpdateJob(ActionName);

            InvokePlatformUpdateAction(job.RequestResume, ActionName);
        }
Esempio n. 3
0
        public override void Init()
        {
            window = new Form();
            window.Show();
            window.ClientSize = new Size(1280, 720);

            PlatformUpdate       = new PlatformUpdateJob();
            PlatformUpdateRegJob = jobSystem.Register(PlatformUpdate);
        }
Esempio n. 4
0
        public override void Init()
        {
            SDL.SDL_Init(SDL.SDL_INIT_EVERYTHING);

            SDL.SDL_CreateWindowAndRenderer(1280, 720, SDL.SDL_WindowFlags.SDL_WINDOW_ALLOW_HIGHDPI | SDL.SDL_WindowFlags.SDL_WINDOW_MOUSE_CAPTURE | SDL.SDL_WindowFlags.SDL_WINDOW_RESIZABLE, out window, out renderder);

            PlatformUpdate       = new PlatformUpdateJob(this);
            PlatformUpdateRegJob = jobSystem.Register(PlatformUpdate);
        }