Ejemplo n.º 1
0
 public FtpServer(IPEndPoint[] localEndPoints, string logHeader = null)
     : base(localEndPoints, logHeader)
 {
     foreach (var endPoint in localEndPoints)
     {
         FtpPerformanceCounters.Initialize(endPoint.Port);
     }
 }
Ejemplo n.º 2
0
 private void _timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     FtpPerformanceCounters.SetFtpServiceUptime(DateTime.Now - _startTime);
 }
Ejemplo n.º 3
0
        protected override void OnConnectAttempt()
        {
            FtpPerformanceCounters.IncrementTotalConnectionAttempts();

            base.OnConnectAttempt();
        }