Пример #1
0
        public async Task InstallAsync()
        {
            InstalledApps = new List <Installable>();

            string tenant = TenantConvention.GetTenant(this.Url);

            InstallerLog.Verbose($"Creating database {tenant}.");
            var db = new DbInstaller(tenant);
            await db.InstallAsync().ConfigureAwait(false);

            InstallerLog.Verbose("Getting installables.");
            var installables = Installables.GetInstallables(tenant);

            foreach (var installable in installables)
            {
                try
                {
                    await new AppInstaller(tenant, tenant, this.WithoutSample, installable).InstallAsync().ConfigureAwait(false);
                }
                catch (Exception ex)
                {
                    InstallerLog.Error(ex.Message);
                    InstallerLog.Error($"Could not install module {installable.ApplicationName}.");
                }
            }
        }
Пример #2
0
 public TaskDescriptionViewModel(Installables installables)
 {
     _rectTransform  = installables.RT;
     _textLabel      = installables.TextLabel;
     _toggleDuration = installables.ToggleDuration;
     _delay          = installables.Delay;
 }
Пример #3
0
 public PlayerController(CommonSettings commonSettings, Installables installables, IWeapon weapon)
 {
     _vehicleTransform    = installables.VehicleTransform;
     _turretTransform     = installables.TurretTransform;
     _speed               = commonSettings.Speed;
     _rotationSpeed       = commonSettings.RotationSpeed;
     _turretRotationSpeed = commonSettings.TurretRotationSpeed;
     _weapon              = weapon;
 }
Пример #4
0
        public async Task InstallAsync()
        {
            InstalledApps = new List <Installable>();

            string tenant = TenantConvention.GetTenant(this.Url);

            this.Notify($"Creating database {tenant}.");
            var db = new DbInstaller(tenant);

            db.Notification += delegate(object sender, string message)
            {
                this.Notify(sender, message);
            };

            await db.InstallAsync().ConfigureAwait(false);

            this.Notify("Getting installables.");
            var installables = Installables.GetInstallables(tenant);

            foreach (var installable in installables)
            {
                try
                {
                    var installer = new AppInstaller(tenant, tenant, this.WithoutSample, installable);

                    installer.Notification += delegate(object sender, string message)
                    {
                        this.Notify(sender, message);
                    };

                    await installer.InstallAsync().ConfigureAwait(false);
                }
                catch (Exception ex)
                {
                    this.Notify("Error: " + ex.Message);
                    this.Notify($"Error: Could not install module {installable.ApplicationName}.");
                }
            }

            this.Notify("OK");
        }
Пример #5
0
 public CameraController(Installables installables, SimulationFacade.Installables simInstallables)
 {
     _camTransform    = installables.CamTransform;
     _camRigTransform = installables.CamRigTransform;
     _desiredPoint    = simInstallables.CameraDesiredPoint;
 }