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
7272
7373 #endregion
7474
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+
7587 #region [ Properties ]
7688
7789 /// <summary>
@@ -191,7 +203,7 @@ namespace TestingAdapters · 113 unmodified lines
191203 return;
192204
193205 if (m_unprocessedMeasurements > 10 * m_publishRate)
194− OnStatusMessage(MessageLevel.Info, "RandomValueAdapter", $"{m_unprocessedMeasurements} unprocessed messages");
206+ OnStatusMessage(MessageLevel.Info, $"{m_unprocessedMeasurements} unprocessed messages");
195207
196208 m_statusUpdate.Start(10000);
197209

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