Пример #1
0
        private void updateSyncStart()
        {
            SynchronizationStart start = new SynchronizationStart();

            start.height    = ulong.MaxValue;
            start.timestamp = ulong.MaxValue;

            foreach (var kv in m_subscriptions)
            {
                var subStart = kv.second.getSyncStart();
                start.height    = Math.Min(start.height, subStart.height);
                start.timestamp = Math.Min(start.timestamp, subStart.timestamp);
            }

//C++ TO C# CONVERTER TODO TASK: The following line was determined to be a copy assignment (rather than a reference assignment) - this should be verified and a 'CopyFrom' method should be created:
//ORIGINAL LINE: m_syncStart = start;
            m_syncStart.CopyFrom(start);
        }
Пример #2
0
 protected virtual void OnSynchronizationStart(SynchronizationStarted eventArgs)
 {
     SynchronizationStart?.Invoke(eventArgs);
 }