public ProjectionVersionRequestCanceled(ProjectionVersionManagerId id, ProjectionVersion version, string reason)
 {
     Id        = id;
     Timestamp = DateTime.UtcNow.ToFileTimeUtc();
     Version   = version;
     Reason    = reason;
 }
 public ProjectionVersionRequestTimedout(ProjectionVersionManagerId id, ProjectionVersion version, VersionRequestTimebox timebox)
 {
     Id               = id;
     Version          = version;
     RequestTimestamp = DateTime.UtcNow.ToFileTimeUtc();
     Timebox          = timebox;
 }
Exemple #3
0
        public ProjectionVersionManager(ProjectionVersionManagerId id, string hash)
        {
            string projectionName = id.Id;
            var    initialVersion = new ProjectionVersion(projectionName, ProjectionStatus.Building, 1, hash);
            var    timebox        = new VersionRequestTimebox(DateTime.UtcNow);

            RequestVersion(id, initialVersion, timebox);
        }
Exemple #4
0
        public RegisterProjection(ProjectionVersionManagerId id, string hash)
        {
            if (id is null)
            {
                throw new ArgumentNullException(nameof(id));
            }
            // if (string.IsNullOrEmpty(hash)) throw new ArgumentNullException(nameof(hash));

            Id   = id;
            Hash = hash;
        }
Exemple #5
0
        public RebuildProjection(ProjectionVersionManagerId id, string hash)
        {
            if (ReferenceEquals(null, id))
            {
                throw new ArgumentNullException(nameof(id));
            }
            if (string.IsNullOrEmpty(hash))
            {
                throw new ArgumentNullException(nameof(hash));
            }

            Id   = id;
            Hash = hash;
        }
 public TimeoutProjectionVersionRequest(ProjectionVersionManagerId id, ProjectionVersion version, VersionRequestTimebox timebox)
 {
     Id      = id;
     Version = version;
     Timebox = timebox;
 }
 public FinalizeProjectionVersionRequest(ProjectionVersionManagerId id, ProjectionVersion version)
 {
     Id      = id;
     Version = version;
 }
Exemple #8
0
 public NewProjectionVersionIsNowLive(ProjectionVersionManagerId id, ProjectionVersion projectionVersion)
 {
     Id                = id;
     Timestamp         = DateTime.UtcNow.ToFileTimeUtc();
     ProjectionVersion = projectionVersion;
 }
Exemple #9
0
 public RegisterProjection(ProjectionVersionManagerId id, string hash)
 {
     Id   = id;
     Hash = hash;
 }
Exemple #10
0
        private void RequestVersion(ProjectionVersionManagerId id, ProjectionVersion projectionVersion, VersionRequestTimebox timebox)
        {
            var @event = new ProjectionVersionRequested(id, projectionVersion, timebox);

            Apply(@event);
        }
Exemple #11
0
 public CancelProjectionVersionRequest(ProjectionVersionManagerId id, ProjectionVersion version, string reason)
 {
     Id      = id;
     Version = version;
     Reason  = reason;
 }
 public ProjectionVersionRequestCanceled(ProjectionVersionManagerId id, ProjectionVersion projectionVersion)
 {
     Id                = id;
     Timestamp         = DateTime.UtcNow.ToFileTimeUtc();
     ProjectionVersion = projectionVersion;
 }