public void MakePersistent(BasicTCPCommnicationClasses.WPMediaFrozenMachineCheck TransportClass) { String DateTimeDirectoryPart = TransportClass.ClientTime.ToString("yyyy_MM_dd") + "\\" + TransportClass.PlayerName + "\\" + TransportClass.ClientTime.ToString("HH") + "-" + TransportClass.ClientTime.AddHours(1).ToString("HH"); String RootDirectory = System.IO.Path.Combine(MaschinenStatusRoot, DateTimeDirectoryPart); if (!Directory.Exists(RootDirectory)) Directory.CreateDirectory(RootDirectory); String FileName = TransportClass.ClientTime.ToString("mm_ss_") + String.Format("{0:D03}_", TransportClass.CummulativeErrorStatus) + TransportClass.ID.ToString() + ".WPMediaStatus"; RefreshHistoricCounter(FileName); WMB.Basics.SerializeObjectToFile(System.IO.Path.Combine(RootDirectory, FileName), TransportClass); }
public void SendRequestClass (BasicTCPCommnicationClasses.WPMediaFrozenMachineCheck ToSend) { ServiceSend (ToSend, Guid.Empty, 0); }