Пример #1
0
 public virtual void FailedBy(ReleaseCandidate candidate, DateTime occurenceDateUtc)
 {
     LastActivityDateUtc = occurenceDateUtc;
     LastVersion         = candidate;
 }
Пример #2
0
 public virtual void FinishedBy(ReleaseCandidate candidate, DateTime occurenceDateUtc)
 {
     LastActivityDateUtc   = occurenceDateUtc;
     LastVersion           = candidate;
     LastSuccessfulVersion = candidate;
 }
Пример #3
0
        public virtual void StageFailed(string stageName, ReleaseCandidate candidate, DateTime occurenceDateUtc)
        {
            var stage = Stages.Single(x => x.Name == stageName);

            stage.FailedBy(candidate, occurenceDateUtc);
        }
Пример #4
0
 public virtual void CandidateDeployed(ReleaseCandidate candidate)
 {
     LastDeployedRelease = candidate;
 }
Пример #5
0
        public void On(EventEnvelope <ReleaseCandidateCreatedEvent> evnt)
        {
            var rc = new ReleaseCandidate(evnt.Payload.BuildId, evnt.Payload.ProjectName, evnt.Payload.VersionNumber, evnt.PipelineId);

            evnt.Session.Save(rc);
        }