Ejemplo n.º 1
0
        /// <summary>
        /// Checks whether assets have been deployed and, if not, delpoys them.
        /// </summary>
        private void CheckAssetDeployment()
        {
            string          hostname   = _webHelperService.MachineName();
            AssetDeployment deployment = _assetService.ReadDeployment(_authenticationService.TenantId, hostname);

            if (deployment == null)
            {
                _assetService.Deploy(_authenticationService.TenantId);
                _assetService.RegisterDeployment(_authenticationService.TenantId, hostname);
            }
        }