Ejemplo n.º 1
0
 public TransferInfoContract GetTransferInfo()
 {
     TransferInfoContract contract = new TransferInfoContract();
     contract.Initialize(null, DateTime.Now, null, null);
     return contract;
 }
Ejemplo n.º 2
0
 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();
 }