public bool Equals(DistributedJob obj) { if (obj == null) { return(false); } return(obj.Guid == Guid); }
public static void ToWriter(DistributedJob distributedJob, BinaryWriter writer) { writer.Write(distributedJob.Guid.ToByteArray()); writer.Write(distributedJob.Name); writer.Write(distributedJob.Description); writer.Write(distributedJob.Owner); writer.Write(distributedJob.CreateDate.ToBinary()); writer.Write(distributedJob.FileName); var hasStatusKey = !string.IsNullOrEmpty(distributedJob.StatusKey); writer.Write(hasStatusKey); if (hasStatusKey) { writer.Write(distributedJob.StatusKey); } }
public static DistributedJob FromReader(BinaryReader reader) { var newJob = new DistributedJob(); newJob.Guid = new Guid(reader.ReadBytes(16)); newJob.Name = reader.ReadString(); newJob.Description = reader.ReadString(); newJob.Owner = reader.ReadString(); newJob.CreateDate = DateTime.FromBinary(reader.ReadInt64()); newJob.FileName = reader.ReadString(); if (reader.ReadBoolean()) { newJob.StatusKey = reader.ReadString(); } return(newJob); }
public void IncreaseDownloadCount(DistributedJob distributedJob) { }
public void RetrieveCurrentStatus(DistributedJob distributedJob) { }
public void RetrieveDownloadCount(DistributedJob distributedJob) { }
public void CompleteDistributedJob(DistributedJob distributedJob) { }
public void DeleteDistributedJob(DistributedJob distributedJobToDelete) { }
public void AddDistributedJob(DistributedJob distributedJob) { }