예제 #1
0
        public void StartingDeploy(AsimovVersion newVersion, string logFileName, AsimovUser user, ParameterValues parameters)
        {
            DeployStatus = DeployStatus.Deploying;
            Version      = new DeployedVersion()
            {
                DeployTimestamp  = DateTime.Now,
                VersionId        = newVersion.Id,
                VersionNumber    = newVersion.Number,
                VersionBranch    = newVersion.Branch,
                VersionTimestamp = newVersion.Timestamp,
                VersionCommit    = newVersion.Commit,
                LogFileName      = logFileName,
                UserId           = user.UserId,
                UserName         = user.UserName,
                DeployFailed     = false,
                Parameters       = parameters.GetInternalDictionary()
            };

            NotificationPublisher.PublishNotifications(new DeployStartedEvent(Name, Version));
        }
        public void StartingDeploy(AsimovVersion newVersion, string logFileName, AsimovUser user, string correlationId, ParameterValues parameters)
        {
            DeployStatus = DeployStatus.Deploying;
            Version = new DeployedVersion
            {
                DeployTimestamp = DateTime.Now,
                VersionId = newVersion.Id,
                VersionNumber = newVersion.Number,
                VersionBranch = newVersion.Branch,
                VersionTimestamp = newVersion.Timestamp,
                VersionCommit = newVersion.Commit,
                LogFileName = logFileName,
                UserId = user.UserId,
                UserName = user.UserName,
                DeployFailed = false,
                CorrelationId = correlationId,
                Parameters = parameters.GetInternalDictionary()
            };

            NotificationPublisher.PublishNotifications(new DeployStartedEvent(Name, Version));
        }