LogViewer.Utilities.DelayedActions.DelayedAction.OnDelayTimerTick C# (CSharp) Method

OnDelayTimerTick() private method

private OnDelayTimerTick ( object state ) : void
state object
return void
            private void OnDelayTimerTick(object state)
            {
                int endTime = Environment.TickCount;
                int diff = startTime - endTime;

                Action a = this.delayedAction;

                StopDelayTimer();

                if (a != null)
                {
                    UiDispatcher.RunOnUIThread(() =>
                    {
                        try
                        {
                            a();
                        }
                        catch (Exception ex)
                        {
                            Debug.WriteLine("OnDelayTimerTick caught unhandled exception: " + ex.ToString());
                        }
                    });
                }
            }