History

GSF.TimeSeries: (1) Added messaging architecture to AdapterCollectionBase implementations, (2) modified OnStatusMessage and OnProcessException overloads to use a default event name if none was specified along with optional MessageFlags

J. Ritchie Carroll committed 9 years ago

Commit 6bc4ce41 parent a23ecba59 files · +955 −1012Browse files

Showing the changes to Source/Libraries/Adapters/TestingAdapters/FrameBasedRandomValueInputAdapter.cs (1 of 59 files). Show all

Unified · Split

Source/Libraries/Adapters/TestingAdapters/FrameBasedRandomValueInputAdapter.cs+13−1
@@ -72,6 +72,18 @@ namespace TestingAdapters · 71 unmodified lines
72 72
73 #endregion73 #endregion
74 74
75 #region [ Constructors ]
76
77 /// <summary>
78 /// Creates a new <see cref="FrameBasedRandomValueInputAdapter"/>.
79 /// </summary>
80 public FrameBasedRandomValueInputAdapter()
81 {
82 DefaultEventName = "RandomValueAdapter";
83 }
84
85 #endregion
86
75 #region [ Properties ]87 #region [ Properties ]
76 88
77 /// <summary>89 /// <summary>
@@ -191,7 +203,7 @@ namespace TestingAdapters · 113 unmodified lines
191 return;203 return;
192 204
193 if (m_unprocessedMeasurements > 10 * m_publishRate)205 if (m_unprocessedMeasurements > 10 * m_publishRate)
194 OnStatusMessage(MessageLevel.Info, "RandomValueAdapter", $"{m_unprocessedMeasurements} unprocessed messages");206 OnStatusMessage(MessageLevel.Info, $"{m_unprocessedMeasurements} unprocessed messages");
195 207
196 m_statusUpdate.Start(10000);208 m_statusUpdate.Start(10000);
197 209

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t