Beispiel #1
0
        public static void OnProfileCreated(Scope scope)
        {
            API_Proxy_BackendConsole apiKrios = scope.GetApiKrios();
            SDXProfile createdProfile         = scope.GetCreatedResource <SDXProfile>();

            //Get SDXMutCCloud modConfig. ModConfigs are template for SwissDesk Session.
            SDXModConfig modConfig  = SDXModConfig.Get(apiKrios, SDXModConfig.SDXMutCCloud);
            SDXSession   sdxSession = new SDXSession(createdProfile, modConfig, SDXSession.SessionState_Production, SDXSession.ConnectionMode_Desktop, true, SDXSession.Lang_EN);

            scope.GetEventChannel().WaitOn(sdxSession.Create(apiKrios), scope, OnSessionCreated);
        }
Beispiel #2
0
        public static void OnUemStorageCreated(Scope scope)
        {
            API_Proxy_BackendConsole apiKrios = scope.GetApiKrios();

            TenantKrios tenant = scope.Get <TenantKrios>("tenant");
            Pool        p      = scope.Get <Pool>("pool");

            UserADKomodo createdUser = scope.Get <UserADKomodo>("createdUser");

            SDXProfile sdxProfile = new SDXProfile(tenant.Id, p.Id, createdUser);

            scope.GetEventChannel().WaitOn(sdxProfile.Create(apiKrios), scope, OnProfileCreated);
        }