History

GSF: Migrated all file license references from Eclipse to MIT.

ritchiecarroll committed 11 years ago

Commit 6d94f5f1 parent f2bebe31382 files · +3427 −2850Browse files

Showing the changes to Source/Applications/DataSubscriberTest/Program.cs (1 of 1382 files). Show all

Unified · Split

Source/Applications/DataSubscriberTest/Program.cs+15−2
@@ -5,10 +5,10 @@ · 4 unmodified lines
5//5//
6// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See6// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
7// the NOTICE file distributed with this work for additional information regarding copyright ownership.7// the NOTICE file distributed with this work for additional information regarding copyright ownership.
8// The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may8// The GPA licenses this file to you under the MIT License (MIT), the "License"; you may
9// not use this file except in compliance with the License. You may obtain a copy of the License at:9// not use this file except in compliance with the License. You may obtain a copy of the License at:
10//10//
11// http://www.opensource.org/licenses/eclipse-1.0.php11// http://www.opensource.org/licenses/MIT
12//12//
13// Unless agreed to in writing, the subject software distributed under the License is distributed on an13// Unless agreed to in writing, the subject software distributed under the License is distributed on an
14// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the14// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
@@ -25,9 +25,11 @@ · 10 unmodified lines
25 25
26using System;26using System;
27using System.Collections.Generic;27using System.Collections.Generic;
28using System.Data;
28using System.Text;29using System.Text;
29using System.Timers;30using System.Timers;
30using GSF;31using GSF;
32using GSF.IO;
31using GSF.TimeSeries;33using GSF.TimeSeries;
32using GSF.TimeSeries.Transport;34using GSF.TimeSeries.Transport;
33using Random = GSF.Security.Cryptography.Random;35using Random = GSF.Security.Cryptography.Random;
@@ -56,6 +58,7 @@ namespace DataSubscriberTest · 22 unmodified lines
56 subscriber.ConnectionEstablished += subscriber_ConnectionEstablished;58 subscriber.ConnectionEstablished += subscriber_ConnectionEstablished;
57 subscriber.ConnectionTerminated += subscriber_ConnectionTerminated;59 subscriber.ConnectionTerminated += subscriber_ConnectionTerminated;
58 subscriber.NewMeasurements += subscriber_NewMeasurements;60 subscriber.NewMeasurements += subscriber_NewMeasurements;
61 subscriber.MetaDataReceived += subscriber_MetaDataReceived;
59 62
60 StringBuilder connectionString = new StringBuilder();63 StringBuilder connectionString = new StringBuilder();
61 64
@@ -105,6 +108,13 @@ namespace DataSubscriberTest · 43 unmodified lines
105 timer.Stop();108 timer.Stop();
106 }109 }
107 110
111 static void subscriber_MetaDataReceived(object sender, EventArgs<System.Data.DataSet> e)
112 {
113 DataSet dataSet = e.Argument;
114 dataSet.WriteXml(FilePath.GetAbsolutePath("Metadata.xml"), XmlWriteMode.WriteSchema);
115 Console.WriteLine("Data set serialized with {0} tables...", dataSet.Tables.Count);
116 }
117
108 static void timer_Elapsed(object sender, ElapsedEventArgs e)118 static void timer_Elapsed(object sender, ElapsedEventArgs e)
109 {119 {
110 if (subscriber.IsConnected)120 if (subscriber.IsConnected)
@@ -175,6 +185,9 @@ namespace DataSubscriberTest · 64 unmodified lines
175 185
176 static void subscriber_ConnectionEstablished(object sender, EventArgs e)186 static void subscriber_ConnectionEstablished(object sender, EventArgs e)
177 {187 {
188
189 //subscriber.SendServerCommand(ServerCommand.MetaDataRefresh);
190
178 //// Request cipher key rotation191 //// Request cipher key rotation
179 //subscriber.SendServerCommand(ServerCommand.RotateCipherKeys);192 //subscriber.SendServerCommand(ServerCommand.RotateCipherKeys);
180 193

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