/// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = FilenamePrefix.GetHashCode();
         hashCode = (hashCode * 397) ^ DaysFromUploadingToHiding.GetHashCode();
         hashCode = (hashCode * 397) ^ DaysFromHidingToDeleting.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public string[] ToStringArray()
 {
     return(new string[]
     {
         InputFile,
         SegmentLength.ToString(),
         OutputLocation,
         FilenamePrefix.EndsWith("/") ? FilenamePrefix : FilenamePrefix + "/",
         PlaylistFilename,
         ProcessId,
         Marshal.GetFunctionPointerForDelegate(CallbackMethod).ToInt64().ToString()
     });
 }
 /// <inheritdoc/>
 public bool Equals(B2LifecycleRule other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(FilenamePrefix.Equals(other.FilenamePrefix) &&
            DaysFromUploadingToHiding == other.DaysFromUploadingToHiding &&
            DaysFromHidingToDeleting == other.DaysFromHidingToDeleting);
 }