public TransferInfoContract GetTransferInfo() { TransferInfoContract contract = new TransferInfoContract(); contract.Initialize(null, DateTime.Now, null, null); return contract; }
private ScheduledFTP() { _thread = new Thread(ThreadProc); _stopEvent = new ManualResetEvent(true); _statusContract = new SystemStatusContract(); _transferInfoContract = new TransferInfoContract(); StatusContract.ComputerName = Environment.MachineName; StatusContract.IpAddress = Dns.GetHostEntry(Environment.MachineName).AddressList[0]; StatusContract.StartupTime = DateTime.Now; StatusContract.TransferCountSinceStartup = 0; _statusLock = new object(); _transferInfoLock = new object(); }