public override int GetHashCode() { unchecked { int hashCode = 5749; int multiplier = 7919; hashCode = (hashCode * multiplier) ^ Revision.GetHashCode(); hashCode = (hashCode * multiplier) ^ ProjectionName.GetHashCode(); hashCode = (hashCode * multiplier) ^ Hash.GetHashCode(); return(hashCode); } }
/// <summary> /// Use Initialize for initializing progress for specified projection /// </summary> /// <param name="version">Projection version that should be initialized</param> public async Task InitializeAsync(ProjectionVersion version) { ProjectionName = version.ProjectionName; IEnumerable <Type> projectionHandledEventTypes = projectionVersionHelper.GetInvolvedEventTypes(ProjectionName.GetTypeByContract()); foreach (var eventType in projectionHandledEventTypes) { TotalEvents += (ulong)await messageCounter.GetCountAsync(eventType).ConfigureAwait(false); } Processed = 0; }