History

Rolled back accidental changes to assembly info in the Source/OldCode folder due to automated build scripts.

StephenCWills committed 11 years ago

Commit bd8cf5e1 parent b08365d70 files · +2961 −2961Browse files

Unified · Split

70 files
  1. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Communication/Properties/AssemblyInfo.cs +28 −28
  2. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Core/Properties/AssemblyInfo.cs +30 −30
  3. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Core/Reflection/AssemblyInfo.cs +866 −866
  4. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Security/Properties/AssemblyInfo.cs +28 −28
  5. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Services/Properties/AssemblyInfo.cs +28 −28
  6. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Web/Properties/AssemblyInfo.cs +39 −39
  7. Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Windows/Properties/AssemblyInfo.cs +1 −1
  8. Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Communication.Test/Properties/AssemblyInfo.cs +1 −1
  9. Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Core.Test/Properties/AssemblyInfo.cs +1 −1
  10. Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Security.Test/Properties/AssemblyInfo.cs +1 −1
  11. Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Services.Test/Properties/AssemblyInfo.cs +1 −1
  12. Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Web.Test/Properties/AssemblyInfo.cs +1 −1
  13. Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Windows.Test/Properties/AssemblyInfo.cs +1 −1
  14. Source/OldCode/Framework/Current Version/Source/Tools/Component Installer/Properties/AssemblyInfo.cs +2 −2
  15. Source/OldCode/Framework/Current Version/Source/Tools/Component Installer/Setup/My Project/AssemblyInfo.vb +3 −3
  16. Source/OldCode/Framework/Current Version/Source/Tools/ConfigCrypter/Properties/AssemblyInfo.cs +1 −1
  17. Source/OldCode/Framework/Current Version/Source/Tools/ConfigurationEditor/Properties/AssemblyInfo.cs +1 −1
  18. Source/OldCode/Framework/Current Version/Source/Tools/DataMigrationUtility/AssemblyInfo.vb +1 −1
  19. Source/OldCode/Framework/Current Version/Source/Tools/UDPRebroadcaster/UDPRebroadcaster/Properties/AssemblyInfo.cs +1 −1
  20. Source/OldCode/Framework/Current Version/Source/Tools/UDPRebroadcaster/UDPRebroadcasterConsole/Properties/AssemblyInfo.cs +1 −1
  21. Source/OldCode/Historian/Current Version/Source/Libraries/Hadoop.Replication/Properties/AssemblyInfo.cs +27 −27
  22. Source/OldCode/Historian/Current Version/Source/Libraries/TVA.Historian/Properties/AssemblyInfo.cs +1 −1
  23. Source/OldCode/Historian/Current Version/Source/Libraries/Test/TVA.Historian.Test/Properties/AssemblyInfo.cs +1 −1
  24. Source/OldCode/Historian/Current Version/Source/Tools/HistorianPlaybackUtility/Properties/AssemblyInfo.cs +1 −1
  25. Source/OldCode/Historian/Current Version/Source/Tools/HistorianView/Properties/AssemblyInfo.cs +3 −3
  26. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Communication/Properties/AssemblyInfo.cs +26 −26
  27. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Core/Properties/AssemblyInfo.cs +28 −28
  28. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Core/Reflection/AssemblyInfo.cs +872 −872
  29. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Security/Properties/AssemblyInfo.cs +26 −26
  30. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.ServiceBus/Properties/AssemblyInfo.cs +26 −26
  31. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.ServiceModel/Properties/AssemblyInfo.cs +26 −26
  32. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.ServiceProcess/Properties/AssemblyInfo.cs +26 −26
  33. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Web/Properties/AssemblyInfo.cs +39 −39
  34. Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Windows/Properties/AssemblyInfo.cs +26 −26
  35. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Communication.Tests/Properties/AssemblyInfo.cs +35 −35
  36. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Core.Tests/Properties/AssemblyInfo.cs +35 −35
  37. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Security.Tests/Properties/AssemblyInfo.cs +2 −2
  38. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.ServiceBus.Tests/Properties/AssemblyInfo.cs +2 −2
  39. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.ServiceModel.Tests/Properties/AssemblyInfo.cs +2 −2
  40. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.ServiceProcess.Tests/Properties/AssemblyInfo.cs +2 −2
  41. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Web.Tests/Properties/AssemblyInfo.cs +2 −2
  42. Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Windows.Tests/Properties/AssemblyInfo.cs +2 −2
  43. Source/OldCode/TVACodeLibrary/Source/Tools/ConfigCrypter/Properties/AssemblyInfo.cs +1 −1
  44. Source/OldCode/TVACodeLibrary/Source/Tools/ConfigEditor/Properties/AssemblyInfo.cs +1 −1
  45. Source/OldCode/TVACodeLibrary/Source/Tools/DataMigrationUtility/Properties/AssemblyInfo.cs +3 −3
  46. Source/OldCode/TVACodeLibrary/Source/Tools/TCPRebroadcaster/TCPRebroadcaster/Properties/AssemblyInfo.cs +3 −3
  47. Source/OldCode/TVACodeLibrary/Source/Tools/TCPRebroadcaster/TCPRebroadcasterConsole/Properties/AssemblyInfo.cs +3 −3
  48. Source/OldCode/TVACodeLibrary/Source/Tools/UDPRebroadcaster/UDPRebroadcaster/Properties/AssemblyInfo.cs +1 −1
  49. Source/OldCode/TVACodeLibrary/Source/Tools/UDPRebroadcaster/UDPRebroadcasterConsole/Properties/AssemblyInfo.cs +1 −1
  50. Source/OldCode/TimeSeriesFramework/Source/Applications/DataPublisherTest/Properties/AssemblyInfo.cs +39 −39
  51. Source/OldCode/TimeSeriesFramework/Source/Applications/DataSubscriberTest/Properties/AssemblyInfo.cs +40 −40
  52. Source/OldCode/TimeSeriesFramework/Source/Applications/TsfManager/Properties/AssemblyInfo.cs +58 −58
  53. Source/OldCode/TimeSeriesFramework/Source/Applications/Wave Demo Apps/UpdateWAVMetaData/Properties/AssemblyInfo.cs +36 −36
  54. Source/OldCode/TimeSeriesFramework/Source/Applications/Wave Demo Apps/WavSubscriptionDemo/Properties/AssemblyInfo.cs +55 −55
  55. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/AdoAdapters/Properties/AssemblyInfo.cs +36 −36
  56. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/CSampleAdapters/AssemblyInfo.cpp +38 −38
  57. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/CsvAdapters/Properties/AssemblyInfo.cs +36 −36
  58. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/DataQualityMonitoring/Properties/AssemblyInfo.cs +36 −36
  59. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/Dnp3Adapters/Properties/AssemblyInfo.cs +36 −36
  60. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/DynamicCalculator/Properties/AssemblyInfo.cs +36 −36
  61. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/FrequencyAverager/Properties/AssemblyInfo.cs +36 −36
  62. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/MongoAdapters/Properties/AssemblyInfo.cs +36 −36
  63. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/MySqlAdapters/Properties/AssemblyInfo.cs +36 −36
  64. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/PIAdapters/Properties/AssemblyInfo.cs +27 −27
  65. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/TestingAdapters/Properties/AssemblyInfo.cs +36 −36
  66. Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/WavInputAdapter/Properties/AssemblyInfo.cs +36 −36
  67. Source/OldCode/TimeSeriesFramework/Source/Libraries/TimeSeriesFramework/Properties/AssemblyInfo.cs +40 −40
  68. Source/OldCode/TimeSeriesFramework/Source/Libraries/TimeSeriesFramework/UI/Properties/AssemblyInfo.cs +3 −3
  69. Source/OldCode/TimeSeriesFramework/Source/Libraries/TimeSeriesFramework/UI/WPF/Properties/AssemblyInfo.cs +3 −3
  70. Source/OldCode/TimeSeriesFramework/Source/Tools/ConfigurationCacher/Properties/AssemblyInfo.cs +3 −3
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Communication/Properties/AssemblyInfo.cs+28−28
@@ -1,28 +1,28 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−using System.Security.Permissions;
5−
6−// Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
8−
9−// Informational attributes.
10−[assembly: AssemblyCompany("TVA")]
11−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12−[assembly: AssemblyProduct("openPDC Framework")]
13−
14−// Assembly manifest attributes.
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−[assembly: AssemblyDefaultAlias("TVA.Communication")]
21−[assembly: AssemblyDescription("Communication components of the openPDC Framework.")]
22−[assembly: AssemblyTitle("TVA.Communication")]
23−
24−// Other configuration attributes.
25−[assembly: CLSCompliant(true)]
26−[assembly: ComVisible(false)]
27−[assembly: Guid("fa2223ea-9782-49f1-8757-2a333a1633c2")]
28−[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+using System.Security.Permissions;
5+
6+// Assembly identity attributes.
7+[assembly: AssemblyVersion("1.1.64.54531")]
8+
9+// Informational attributes.
10+[assembly: AssemblyCompany("TVA")]
11+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12+[assembly: AssemblyProduct("openPDC Framework")]
13+
14+// Assembly manifest attributes.
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+[assembly: AssemblyDefaultAlias("TVA.Communication")]
21+[assembly: AssemblyDescription("Communication components of the openPDC Framework.")]
22+[assembly: AssemblyTitle("TVA.Communication")]
23+
24+// Other configuration attributes.
25+[assembly: CLSCompliant(true)]
26+[assembly: ComVisible(false)]
27+[assembly: Guid("fa2223ea-9782-49f1-8757-2a333a1633c2")]
28+[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Core/Properties/AssemblyInfo.cs+30−30
@@ -1,30 +1,30 @@
1−using System;
2−using System.Reflection;
3−using System.Resources;
4−using System.Runtime.InteropServices;
5−using System.Security.Permissions;
6−
7−// Assembly identity attributes.
8−[assembly: AssemblyVersion("2.1.99.0")]
9−
10−// Informational attributes.
11−[assembly: AssemblyCompany("TVA")]
12−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
13−[assembly: AssemblyProduct("openPDC Framework")]
14−
15−// Assembly manifest attributes.
16−#if DEBUG
17−[assembly: AssemblyConfiguration("Debug Build")]
18−#else
19−[assembly: AssemblyConfiguration("Release Build")]
20−#endif
21−[assembly: AssemblyDefaultAlias("TVA.Core")]
22−[assembly: AssemblyDescription("Core components of the openPDC Framework.")]
23−[assembly: AssemblyTitle("TVA.Core")]
24−
25−// Other configuration attributes.
26−[assembly: CLSCompliant(true)]
27−[assembly: ComVisible(false)]
28−[assembly: Guid("9448a8b5-35c1-4dc7-8c42-8712153ac08a")]
29−[assembly: NeutralResourcesLanguage("en-US")]
30−[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
1+using System;
2+using System.Reflection;
3+using System.Resources;
4+using System.Runtime.InteropServices;
5+using System.Security.Permissions;
6+
7+// Assembly identity attributes.
8+[assembly: AssemblyVersion("1.1.64.54531")]
9+
10+// Informational attributes.
11+[assembly: AssemblyCompany("TVA")]
12+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
13+[assembly: AssemblyProduct("openPDC Framework")]
14+
15+// Assembly manifest attributes.
16+#if DEBUG
17+[assembly: AssemblyConfiguration("Debug Build")]
18+#else
19+[assembly: AssemblyConfiguration("Release Build")]
20+#endif
21+[assembly: AssemblyDefaultAlias("TVA.Core")]
22+[assembly: AssemblyDescription("Core components of the openPDC Framework.")]
23+[assembly: AssemblyTitle("TVA.Core")]
24+
25+// Other configuration attributes.
26+[assembly: CLSCompliant(true)]
27+[assembly: ComVisible(false)]
28+[assembly: Guid("9448a8b5-35c1-4dc7-8c42-8712153ac08a")]
29+[assembly: NeutralResourcesLanguage("en-US")]
30+[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Core/Reflection/AssemblyInfo.cs+866−866
@@ -1,867 +1,867 @@
1−//*******************************************************************************************************
2−// AssemblyInfo.cs - Gbtc
3−//
4−// Tennessee Valley Authority, 2009
5−// No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
6−//
7−// This software is made freely available under the TVA Open Source Agreement (see below).
8−//
9−// Code Modification History:
10−// -----------------------------------------------------------------------------------------------------
11−// 04/29/2005 - Pinal C. Patel
12−// Generated original version of source code.
13−// 12/29/2005 - Pinal C. Patel
14−// Migrated 2.0 version of source code from 1.1 source (TVA.Shared.Assembly).
15−// 12/12/2007 - Darrell Zuercher
16−// Edited Code Comments.
17−// 09/08/2008 - J. Ritchie Carroll
18−// Converted to C# as AssemblyInformation.
19−// 09/14/2009 - Stephen C. Wills
20−// Added new header and license agreement.
21−// 10/21/2009 - Pinal C. Patel
22−// Added error checking to assembly attribute properties.
23−//
24−//*******************************************************************************************************
25−
26−#region [ TVA Open Source Agreement ]
27−/*
28−
29− THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE,REPRODUCTION, DISTRIBUTION,
30− MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE
31− TENNESSEE VALLEY AUTHORITY, A CORPORATE AGENCY AND INSTRUMENTALITY OF THE UNITED STATES GOVERNMENT
32− ("GOVERNMENT AGENCY"). GOVERNMENT AGENCY IS AN INTENDED THIRD-PARTY BENEFICIARY OF ALL SUBSEQUENT
33− DISTRIBUTIONS OR REDISTRIBUTIONS OF THE SUBJECT SOFTWARE. ANYONE WHO USES, REPRODUCES, DISTRIBUTES,
34− MODIFIES OR REDISTRIBUTES THE SUBJECT SOFTWARE, AS DEFINED HEREIN, OR ANY PART THEREOF, IS, BY THAT
35− ACTION, ACCEPTING IN FULL THE RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS AGREEMENT.
36−
37− Original Software Designation: openPDC
38− Original Software Title: The TVA Open Source Phasor Data Concentrator
39− User Registration Requested. Please Visit https://naspi.tva.com/Registration/
40− Point of Contact for Original Software: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>
41−
42− 1. DEFINITIONS
43−
44− A. "Contributor" means Government Agency, as the developer of the Original Software, and any entity
45− that makes a Modification.
46−
47− B. "Covered Patents" mean patent claims licensable by a Contributor that are necessarily infringed by
48− the use or sale of its Modification alone or when combined with the Subject Software.
49−
50− C. "Display" means the showing of a copy of the Subject Software, either directly or by means of an
51− image, or any other device.
52−
53− D. "Distribution" means conveyance or transfer of the Subject Software, regardless of means, to
54− another.
55−
56− E. "Larger Work" means computer software that combines Subject Software, or portions thereof, with
57− software separate from the Subject Software that is not governed by the terms of this Agreement.
58−
59− F. "Modification" means any alteration of, including addition to or deletion from, the substance or
60− structure of either the Original Software or Subject Software, and includes derivative works, as that
61− term is defined in the Copyright Statute, 17 USC § 101. However, the act of including Subject Software
62− as part of a Larger Work does not in and of itself constitute a Modification.
63−
64− G. "Original Software" means the computer software first released under this Agreement by Government
65− Agency entitled openPDC, including source code, object code and accompanying documentation, if any.
66−
67− H. "Recipient" means anyone who acquires the Subject Software under this Agreement, including all
68− Contributors.
69−
70− I. "Redistribution" means Distribution of the Subject Software after a Modification has been made.
71−
72− J. "Reproduction" means the making of a counterpart, image or copy of the Subject Software.
73−
74− K. "Sale" means the exchange of the Subject Software for money or equivalent value.
75−
76− L. "Subject Software" means the Original Software, Modifications, or any respective parts thereof.
77−
78− M. "Use" means the application or employment of the Subject Software for any purpose.
79−
80− 2. GRANT OF RIGHTS
81−
82− A. Under Non-Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor,
83− with respect to its own contribution to the Subject Software, hereby grants to each Recipient a
84− non-exclusive, world-wide, royalty-free license to engage in the following activities pertaining to
85− the Subject Software:
86−
87− 1. Use
88−
89− 2. Distribution
90−
91− 3. Reproduction
92−
93− 4. Modification
94−
95− 5. Redistribution
96−
97− 6. Display
98−
99− B. Under Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor, with
100− respect to its own contribution to the Subject Software, hereby grants to each Recipient under Covered
101− Patents a non-exclusive, world-wide, royalty-free license to engage in the following activities
102− pertaining to the Subject Software:
103−
104− 1. Use
105−
106− 2. Distribution
107−
108− 3. Reproduction
109−
110− 4. Sale
111−
112− 5. Offer for Sale
113−
114− C. The rights granted under Paragraph B. also apply to the combination of a Contributor's Modification
115− and the Subject Software if, at the time the Modification is added by the Contributor, the addition of
116− such Modification causes the combination to be covered by the Covered Patents. It does not apply to
117− any other combinations that include a Modification.
118−
119− D. The rights granted in Paragraphs A. and B. allow the Recipient to sublicense those same rights.
120− Such sublicense must be under the same terms and conditions of this Agreement.
121−
122− 3. OBLIGATIONS OF RECIPIENT
123−
124− A. Distribution or Redistribution of the Subject Software must be made under this Agreement except for
125− additions covered under paragraph 3H.
126−
127− 1. Whenever a Recipient distributes or redistributes the Subject Software, a copy of this Agreement
128− must be included with each copy of the Subject Software; and
129−
130− 2. If Recipient distributes or redistributes the Subject Software in any form other than source code,
131− Recipient must also make the source code freely available, and must provide with each copy of the
132− Subject Software information on how to obtain the source code in a reasonable manner on or through a
133− medium customarily used for software exchange.
134−
135− B. Each Recipient must ensure that the following copyright notice appears prominently in the Subject
136− Software:
137−
138− No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
139−
140− C. Each Contributor must characterize its alteration of the Subject Software as a Modification and
141− must identify itself as the originator of its Modification in a manner that reasonably allows
142− subsequent Recipients to identify the originator of the Modification. In fulfillment of these
143− requirements, Contributor must include a file (e.g., a change log file) that describes the alterations
144− made and the date of the alterations, identifies Contributor as originator of the alterations, and
145− consents to characterization of the alterations as a Modification, for example, by including a
146− statement that the Modification is derived, directly or indirectly, from Original Software provided by
147− Government Agency. Once consent is granted, it may not thereafter be revoked.
148−
149− D. A Contributor may add its own copyright notice to the Subject Software. Once a copyright notice has
150− been added to the Subject Software, a Recipient may not remove it without the express permission of
151− the Contributor who added the notice.
152−
153− E. A Recipient may not make any representation in the Subject Software or in any promotional,
154− advertising or other material that may be construed as an endorsement by Government Agency or by any
155− prior Recipient of any product or service provided by Recipient, or that may seek to obtain commercial
156− advantage by the fact of Government Agency's or a prior Recipient's participation in this Agreement.
157−
158− F. In an effort to track usage and maintain accurate records of the Subject Software, each Recipient,
159− upon receipt of the Subject Software, is requested to register with Government Agency by visiting the
160− following website: https://naspi.tva.com/Registration/. Recipient's name and personal information
161− shall be used for statistical purposes only. Once a Recipient makes a Modification available, it is
162− requested that the Recipient inform Government Agency at the web site provided above how to access the
163− Modification.
164−
165− G. Each Contributor represents that that its Modification does not violate any existing agreements,
166− regulations, statutes or rules, and further that Contributor has sufficient rights to grant the rights
167− conveyed by this Agreement.
168−
169− H. A Recipient may choose to offer, and to charge a fee for, warranty, support, indemnity and/or
170− liability obligations to one or more other Recipients of the Subject Software. A Recipient may do so,
171− however, only on its own behalf and not on behalf of Government Agency or any other Recipient. Such a
172− Recipient must make it absolutely clear that any such warranty, support, indemnity and/or liability
173− obligation is offered by that Recipient alone. Further, such Recipient agrees to indemnify Government
174− Agency and every other Recipient for any liability incurred by them as a result of warranty, support,
175− indemnity and/or liability offered by such Recipient.
176−
177− I. A Recipient may create a Larger Work by combining Subject Software with separate software not
178− governed by the terms of this agreement and distribute the Larger Work as a single product. In such
179− case, the Recipient must make sure Subject Software, or portions thereof, included in the Larger Work
180− is subject to this Agreement.
181−
182− J. Notwithstanding any provisions contained herein, Recipient is hereby put on notice that export of
183− any goods or technical data from the United States may require some form of export license from the
184− U.S. Government. Failure to obtain necessary export licenses may result in criminal liability under
185− U.S. laws. Government Agency neither represents that a license shall not be required nor that, if
186− required, it shall be issued. Nothing granted herein provides any such export license.
187−
188− 4. DISCLAIMER OF WARRANTIES AND LIABILITIES; WAIVER AND INDEMNIFICATION
189−
190− A. No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER
191− EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT
192− SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
193− PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR
194− FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS
195− AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR
196− RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS
197− RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND
198− LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT
199− "AS IS."
200−
201− B. Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST GOVERNMENT AGENCY, ITS
202− AGENTS, EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE
203− OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM
204− SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE
205− SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS GOVERNMENT AGENCY, ITS AGENTS,
206− EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY
207− LAW. THE FOREGOING RELEASE AND INDEMNIFICATION SHALL APPLY EVEN IF THE LIABILITIES, DEMANDS, DAMAGES,
208− EXPENSES OR LOSSES ARE CAUSED, OCCASIONED, OR CONTRIBUTED TO BY THE NEGLIGENCE, SOLE OR CONCURRENT, OF
209− GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE
210− IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
211−
212− 5. GENERAL TERMS
213−
214− A. Termination: This Agreement and the rights granted hereunder will terminate automatically if a
215− Recipient fails to comply with these terms and conditions, and fails to cure such noncompliance within
216− thirty (30) days of becoming aware of such noncompliance. Upon termination, a Recipient agrees to
217− immediately cease use and distribution of the Subject Software. All sublicenses to the Subject
218− Software properly granted by the breaching Recipient shall survive any such termination of this
219− Agreement.
220−
221− B. Severability: If any provision of this Agreement is invalid or unenforceable under applicable law,
222− it shall not affect the validity or enforceability of the remainder of the terms of this Agreement.
223−
224− C. Applicable Law: This Agreement shall be subject to United States federal law only for all purposes,
225− including, but not limited to, determining the validity of this Agreement, the meaning of its
226− provisions and the rights, obligations and remedies of the parties.
227−
228− D. Entire Understanding: This Agreement constitutes the entire understanding and agreement of the
229− parties relating to release of the Subject Software and may not be superseded, modified or amended
230− except by further written agreement duly executed by the parties.
231−
232− E. Binding Authority: By accepting and using the Subject Software under this Agreement, a Recipient
233− affirms its authority to bind the Recipient to all terms and conditions of this Agreement and that
234− Recipient hereby agrees to all terms and conditions herein.
235−
236− F. Point of Contact: Any Recipient contact with Government Agency is to be directed to the designated
237− representative as follows: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>.
238−
239−*/
240−#endregion
241−
242−using System;
243−using System.Collections.Generic;
244−using System.Collections.Specialized;
245−using System.Diagnostics;
246−using System.IO;
247−using System.Reflection;
248−using System.Resources;
249−using System.Runtime.InteropServices;
250−using System.Security.Permissions;
251−using TVA.IO;
252−
253−namespace TVA.Reflection
254−{
255− /// <summary>Assembly Information Class.</summary>
256− public class AssemblyInfo
257− {
258− #region [ Members ]
259−
260− // Fields
261− private Assembly m_assemblyInstance;
262−
263− #endregion
264−
265− #region [ Constructors ]
266−
267− /// <summary>Initializes a new instance of the <see cref="AssemblyInfo"/> class.</summary>
268− /// <param name="assemblyInstance">An <see cref="Assembly"/> object.</param>
269− public AssemblyInfo(Assembly assemblyInstance)
270− {
271− m_assemblyInstance = assemblyInstance;
272− }
273−
274− #endregion
275−
276− #region [ Properties ]
277−
278− /// <summary>Gets the title information of the assembly.</summary>
279− /// <returns>The title information of the assembly.</returns>
280− public string Title
281− {
282− get
283− {
284− AssemblyTitleAttribute attribute = GetCustomAttribute(typeof(AssemblyTitleAttribute)) as AssemblyTitleAttribute;
285− if (attribute == null)
286− return string.Empty;
287− else
288− return attribute.Title;
289− }
290− }
291−
292− /// <summary>Gets the description information of the assembly.</summary>
293− /// <returns>The description information of the assembly.</returns>
294− public string Description
295− {
296− get
297− {
298− AssemblyDescriptionAttribute attribute = GetCustomAttribute(typeof(AssemblyDescriptionAttribute)) as AssemblyDescriptionAttribute;
299− if (attribute == null)
300− return string.Empty;
301− else
302− return attribute.Description;
303− }
304− }
305−
306− /// <summary>Gets the company name information of the assembly.</summary>
307− /// <returns>The company name information of the assembly.</returns>
308− public string Company
309− {
310− get
311− {
312− AssemblyCompanyAttribute attribute = GetCustomAttribute(typeof(AssemblyCompanyAttribute)) as AssemblyCompanyAttribute;
313− if (attribute == null)
314− return string.Empty;
315− else
316− return attribute.Company;
317− }
318− }
319−
320− /// <summary>Gets the product name information of the assembly.</summary>
321− /// <returns>The product name information of the assembly.</returns>
322− public string Product
323− {
324− get
325− {
326− AssemblyProductAttribute attribute = GetCustomAttribute(typeof(AssemblyProductAttribute)) as AssemblyProductAttribute;
327− if (attribute == null)
328− return string.Empty;
329− else
330− return attribute.Product;
331− }
332− }
333−
334− /// <summary>Gets the copyright information of the assembly.</summary>
335− /// <returns>The copyright information of the assembly.</returns>
336− public string Copyright
337− {
338− get
339− {
340− AssemblyCopyrightAttribute attribute = GetCustomAttribute(typeof(AssemblyCopyrightAttribute)) as AssemblyCopyrightAttribute;
341− if (attribute == null)
342− return string.Empty;
343− else
344− return attribute.Copyright;
345− }
346− }
347−
348− /// <summary>Gets the trademark information of the assembly.</summary>
349− /// <returns>The trademark information of the assembly.</returns>
350− public string Trademark
351− {
352− get
353− {
354− AssemblyTrademarkAttribute attribute = GetCustomAttribute(typeof(AssemblyTrademarkAttribute)) as AssemblyTrademarkAttribute;
355− if (attribute == null)
356− return string.Empty;
357− else
358− return attribute.Trademark;
359− }
360− }
361−
362− /// <summary>Gets the configuration information of the assembly.</summary>
363− /// <returns>The configuration information of the assembly.</returns>
364− public string Configuration
365− {
366− get
367− {
368− AssemblyConfigurationAttribute attribute = GetCustomAttribute(typeof(AssemblyConfigurationAttribute)) as AssemblyConfigurationAttribute;
369− if (attribute == null)
370− return string.Empty;
371− else
372− return attribute.Configuration;
373− }
374− }
375−
376− /// <summary>Gets a boolean value indicating if the assembly has been built as delay-signed.</summary>
377− /// <returns>True, if the assembly has been built as delay-signed; otherwise, False.</returns>
378− public bool DelaySign
379− {
380− get
381− {
382− AssemblyDelaySignAttribute attribute = GetCustomAttribute(typeof(AssemblyDelaySignAttribute)) as AssemblyDelaySignAttribute;
383− if (attribute == null)
384− return false;
385− else
386− return attribute.DelaySign;
387− }
388− }
389−
390− /// <summary>Gets the version information of the assembly.</summary>
391− /// <returns>The version information of the assembly</returns>
392− public string InformationalVersion
393− {
394− get
395− {
396− AssemblyInformationalVersionAttribute attribute = GetCustomAttribute(typeof(AssemblyInformationalVersionAttribute)) as AssemblyInformationalVersionAttribute;
397− if (attribute == null)
398− return string.Empty;
399− else
400− return attribute.InformationalVersion;
401− }
402− }
403−
404− /// <summary>Gets the name of the file containing the key pair used to generate a strong name for the attributed
405− /// assembly.</summary>
406− /// <returns>A string containing the name of the file that contains the key pair.</returns>
407− public string KeyFile
408− {
409− get
410− {
411− AssemblyKeyFileAttribute attribute = GetCustomAttribute(typeof(AssemblyKeyFileAttribute)) as AssemblyKeyFileAttribute;
412− if (attribute == null)
413− return string.Empty;
414− else
415− return attribute.KeyFile;
416− }
417− }
418−
419− /// <summary>Gets the culture name of the assembly.</summary>
420− /// <returns>The culture name of the assembly.</returns>
421− public string CultureName
422− {
423− get
424− {
425− NeutralResourcesLanguageAttribute attribute = GetCustomAttribute(typeof(NeutralResourcesLanguageAttribute)) as NeutralResourcesLanguageAttribute;
426− if (attribute == null)
427− return string.Empty;
428− else
429− return attribute.CultureName;
430− }
431− }
432−
433− /// <summary>Gets the assembly version used to instruct the System.Resources.ResourceManager to ask for a particular
434− /// version of a satellite assembly to simplify updates of the main assembly of an application.</summary>
435− public string SatelliteContractVersion
436− {
437− get
438− {
439− SatelliteContractVersionAttribute attribute = GetCustomAttribute(typeof(SatelliteContractVersionAttribute)) as SatelliteContractVersionAttribute;
440− if (attribute == null)
441− return string.Empty;
442− else
443− return attribute.Version;
444− }
445− }
446−
447− /// <summary>Gets the string representing the assembly version used to indicate to a COM client that all classes
448− /// in the current version of the assembly are compatible with classes in an earlier version of the assembly.</summary>
449− /// <returns>The string representing the assembly version in MajorVersion.MinorVersion.RevisionNumber.BuildNumber
450− /// format.</returns>
451− public string ComCompatibleVersion
452− {
453− get
454− {
455− ComCompatibleVersionAttribute attribute = GetCustomAttribute(typeof(ComCompatibleVersionAttribute)) as ComCompatibleVersionAttribute;
456− if (attribute == null)
457− return string.Empty;
458− else
459− return attribute.MajorVersion.ToString() + "." + attribute.MinorVersion.ToString() + "." + "." + attribute.BuildNumber.ToString() + attribute.RevisionNumber.ToString();
460− }
461− }
462−
463− /// <summary>Gets a boolean value indicating if the assembly is exposed to COM.</summary>
464− /// <returns>True, if the assembly is exposed to COM; otherwise, False.</returns>
465− public bool ComVisible
466− {
467− get
468− {
469− ComVisibleAttribute attribute = GetCustomAttribute(typeof(ComVisibleAttribute)) as ComVisibleAttribute;
470− if (attribute == null)
471− return false;
472− else
473− return attribute.Value;
474− }
475− }
476−
477− /// <summary>Gets the assembly GUID that is used as an ID if the assembly is exposed to COM.</summary>
478− /// <returns>The assembly GUID that is used as an ID if the assembly is exposed to COM.</returns>
479− public string Guid
480− {
481− get
482− {
483− GuidAttribute attribute = GetCustomAttribute(typeof(GuidAttribute)) as GuidAttribute;
484− if (attribute == null)
485− return string.Empty;
486− else
487− return attribute.Value;
488− }
489− }
490−
491− /// <summary>Gets the string representing the assembly version number in MajorVersion.MinorVersion format.</summary>
492− /// <returns>The string representing the assembly version number in MajorVersion.MinorVersion format.</returns>
493− public string TypeLibVersion
494− {
495− get
496− {
497− TypeLibVersionAttribute attribute = GetCustomAttribute(typeof(TypeLibVersionAttribute)) as TypeLibVersionAttribute;
498− if (attribute == null)
499− return string.Empty;
500− else
501− return attribute.MajorVersion.ToString() + "." + attribute.MinorVersion.ToString();
502− }
503− }
504−
505− /// <summary>Gets a boolean value indicating whether the indicated program element is CLS-compliant.</summary>
506− /// <returns>True, if the program element is CLS-compliant; otherwise, False.</returns>
507− public bool CLSCompliant
508− {
509− get
510− {
511− CLSCompliantAttribute attribute = GetCustomAttribute(typeof(CLSCompliantAttribute)) as CLSCompliantAttribute;
512− if (attribute == null)
513− return false;
514− else
515− return attribute.IsCompliant;
516− }
517− }
518−
519− /// <summary>Gets a value that indicates whether the runtime will track information during code generation for the
520− /// debugger.</summary>
521− /// <returns>True, if the runtime will track information during code generation for the debugger; otherwise, False.</returns>
522− public bool Debuggable
523− {
524− get
525− {
526− DebuggableAttribute attribute = GetCustomAttribute(typeof(DebuggableAttribute)) as DebuggableAttribute;
527− if (attribute == null)
528− return false;
529− else
530− return attribute.IsJITTrackingEnabled;
531− }
532− }
533−
534− /// <summary>Gets the path or UNC location of the loaded file that contains the manifest.</summary>
535− /// <returns>The location of the loaded file that contains the manifest.</returns>
536− public string Location
537− {
538− get
539− {
540− return m_assemblyInstance.Location.ToLower();
541− }
542− }
543−
544− /// <summary>Gets the location of the assembly as specified originally; for example, in a
545− /// AssemblyName object.</summary>
546− /// <returns>The location of the assembly as specified originally.</returns>
547− public string CodeBase
548− {
549− get
550− {
551− return m_assemblyInstance.CodeBase.Replace("file:///", "").ToLower();
552− }
553− }
554−
555− /// <summary>Gets the display name of the assembly.</summary>
556− /// <returns>The display name of the assembly.</returns>
557− public string FullName
558− {
559− get
560− {
561− return m_assemblyInstance.FullName;
562− }
563− }
564−
565− /// <summary>Gets the simple, unencrypted name of the assembly.</summary>
566− /// <returns>A string that is the simple, unencrypted name of the assembly.</returns>
567− public string Name
568− {
569− get
570− {
571− return m_assemblyInstance.GetName().Name;
572− }
573− }
574−
575− /// <summary>Gets the major, minor, revision, and build numbers of the assembly.</summary>
576− /// <returns>A System.Version object representing the major, minor, revision, and build numbers of the assembly.</returns>
577− public Version Version
578− {
579− get
580− {
581− return m_assemblyInstance.GetName().Version;
582− }
583− }
584−
585− /// <summary>Gets the string representing the version of the common language runtime (CLR) saved in the file
586− /// containing the manifest.</summary>
587− /// <returns>The string representing the CLR version folder name. This is not a full path.</returns>
588− public string ImageRuntimeVersion
589− {
590− get
591− {
592− return m_assemblyInstance.ImageRuntimeVersion;
593− }
594− }
595−
596− /// <summary>Gets a boolean value indicating whether the assembly was loaded from the global assembly cache.</summary>
597− /// <returns>True, if the assembly was loaded from the global assembly cache; otherwise, False.</returns>
598− public bool GACLoaded
599− {
600− get
601− {
602− return m_assemblyInstance.GlobalAssemblyCache;
603− }
604− }
605−
606− /// <summary>Gets the date and time when the assembly was last built.</summary>
607− /// <returns>The date and time when the assembly was last built.</returns>
608− public DateTime BuildDate
609− {
610− get
611− {
612− return File.GetLastWriteTime(m_assemblyInstance.Location);
613− }
614− }
615−
616− /// <summary>Gets the root namespace of the assembly.</summary>
617− /// <returns>The root namespace of the assembly.</returns>
618− public string RootNamespace
619− {
620− get
621− {
622− return m_assemblyInstance.GetExportedTypes()[0].Namespace;
623− }
624− }
625−
626− #endregion
627−
628− #region [ Methods ]
629−
630− /// <summary>Gets a collection of assembly attributes exposed by the assembly.</summary>
631− /// <returns>A System.Specialized.KeyValueCollection of assembly attributes.</returns>
632− public NameValueCollection GetAttributes()
633− {
634− NameValueCollection assemblyAttributes = new NameValueCollection();
635−
636− //Add some values that are not in AssemblyInfo.
637− assemblyAttributes.Add("Full Name", FullName);
638− assemblyAttributes.Add("Name", Name);
639− assemblyAttributes.Add("Version", Version.ToString());
640− assemblyAttributes.Add("Image Runtime Version", ImageRuntimeVersion);
641− assemblyAttributes.Add("Build Date", BuildDate.ToString());
642− assemblyAttributes.Add("Location", Location);
643− assemblyAttributes.Add("Code Base", CodeBase);
644− assemblyAttributes.Add("GAC Loaded", GACLoaded.ToString());
645−
646− //Add all attributes available from AssemblyInfo.
647− foreach (object assemblyAttribute in m_assemblyInstance.GetCustomAttributes(false))
648− {
649− if (assemblyAttribute is AssemblyTitleAttribute)
650− {
651− assemblyAttributes.Add("Title", Title);
652− }
653− else if (assemblyAttribute is AssemblyDescriptionAttribute)
654− {
655− assemblyAttributes.Add("Description", Description);
656− }
657− else if (assemblyAttribute is AssemblyCompanyAttribute)
658− {
659− assemblyAttributes.Add("Company", Company);
660− }
661− else if (assemblyAttribute is AssemblyProductAttribute)
662− {
663− assemblyAttributes.Add("Product", Product);
664− }
665− else if (assemblyAttribute is AssemblyCopyrightAttribute)
666− {
667− assemblyAttributes.Add("Copyright", Copyright);
668− }
669− else if (assemblyAttribute is AssemblyTrademarkAttribute)
670− {
671− assemblyAttributes.Add("Trademark", Trademark);
672− }
673− else if (assemblyAttribute is AssemblyConfigurationAttribute)
674− {
675− assemblyAttributes.Add("Configuration", Configuration);
676− }
677− else if (assemblyAttribute is AssemblyDelaySignAttribute)
678− {
679− assemblyAttributes.Add("Delay Sign", DelaySign.ToString());
680− }
681− else if (assemblyAttribute is AssemblyInformationalVersionAttribute)
682− {
683− assemblyAttributes.Add("Informational Version", InformationalVersion);
684− }
685− else if (assemblyAttribute is AssemblyKeyFileAttribute)
686− {
687− assemblyAttributes.Add("Key File", KeyFile);
688− }
689− else if (assemblyAttribute is NeutralResourcesLanguageAttribute)
690− {
691− assemblyAttributes.Add("Culture Name", CultureName);
692− }
693− else if (assemblyAttribute is SatelliteContractVersionAttribute)
694− {
695− assemblyAttributes.Add("Satellite Contract Version", SatelliteContractVersion);
696− }
697− else if (assemblyAttribute is ComCompatibleVersionAttribute)
698− {
699− assemblyAttributes.Add("Com Compatible Version", ComCompatibleVersion);
700− }
701− else if (assemblyAttribute is ComVisibleAttribute)
702− {
703− assemblyAttributes.Add("Com Visible", ComVisible.ToString());
704− }
705− else if (assemblyAttribute is GuidAttribute)
706− {
707− assemblyAttributes.Add("Guid", Guid);
708− }
709− else if (assemblyAttribute is TypeLibVersionAttribute)
710− {
711− assemblyAttributes.Add("Type Lib Version", TypeLibVersion);
712− }
713− else if (assemblyAttribute is CLSCompliantAttribute)
714− {
715− assemblyAttributes.Add("CLS Compliant", CLSCompliant.ToString());
716− }
717− else if (assemblyAttribute is DebuggableAttribute)
718− {
719− assemblyAttributes.Add("Debuggable", Debuggable.ToString());
720− }
721− }
722−
723− return assemblyAttributes;
724− }
725−
726− /// <summary>Gets the specified assembly attribute if it is exposed by the assembly.</summary>
727− /// <param name="attributeType">Type of the attribute to get.</param>
728− /// <returns>The requested assembly attribute if it exists; otherwise null.</returns>
729− public object GetCustomAttribute(Type attributeType)
730− {
731− //Returns the requested assembly attribute.
732− object[] assemblyAttributes = m_assemblyInstance.GetCustomAttributes(attributeType, false);
733− if (assemblyAttributes.Length <= 0)
734− return null;
735− else
736− return assemblyAttributes[0];
737− }
738−
739− /// <summary>Gets the specified embedded resource from the assembly.</summary>
740− /// <param name="resourceName">The full name (including the namespace) of the embedded resource to get.</param>
741− /// <returns>The embedded resource.</returns>
742− public Stream GetEmbeddedResource(string resourceName)
743− {
744− //Extracts and returns the requested embedded resource.
745− return m_assemblyInstance.GetEmbeddedResource(resourceName);
746− }
747−
748− #endregion
749−
750− #region [ Static ]
751−
752− // Static Fields
753− private static AssemblyInfo s_callingAssembly;
754− private static AssemblyInfo s_entryAssembly;
755− private static AssemblyInfo s_executingAssembly;
756− private static Dictionary<string, Assembly> s_assemblyCache;
757− private static bool s_addedResolver;
758−
759− // Static Properties
760−
761− /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that invoked the currently executing method.</summary>
762− public static AssemblyInfo CallingAssembly
763− {
764− get
765− {
766− if (s_callingAssembly == null)
767− {
768− // We have to find the calling assembly of the caller.
769− StackTrace trace = new StackTrace();
770− Assembly caller = Assembly.GetCallingAssembly();
771− Assembly current = Assembly.GetExecutingAssembly();
772− foreach (StackFrame frame in trace.GetFrames())
773− {
774− Assembly assembly = Assembly.GetAssembly(frame.GetMethod().DeclaringType);
775− if (assembly != caller && assembly != current)
776− {
777− // Assembly is neither the current assembly or the calling assembly.
778− s_callingAssembly = new AssemblyInfo(assembly);
779− break;
780− }
781− }
782− }
783−
784− return s_callingAssembly;
785− }
786− }
787−
788− /// <summary>Gets the <see cref="AssemblyInfo"/> object of the process executable in the default application domain.</summary>
789− public static AssemblyInfo EntryAssembly
790− {
791− get
792− {
793− if (s_entryAssembly == null)
794− s_entryAssembly = new AssemblyInfo(Assembly.GetEntryAssembly());
795−
796− return s_entryAssembly;
797− }
798− }
799−
800− /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that contains the code that is currently executing.</summary>
801− public static AssemblyInfo ExecutingAssembly
802− {
803− get
804− {
805− if (s_executingAssembly == null)
806− // Caller's assembly will be the executing assembly for the caller.
807− s_executingAssembly = new AssemblyInfo(Assembly.GetCallingAssembly());
808−
809− return s_executingAssembly;
810− }
811− }
812−
813− // Static Methods
814−
815− /// <summary>Loads the specified assembly that is embedded as a resource in the assembly.</summary>
816− /// <param name="assemblyName">Name of the assembly to load.</param>
817− /// <remarks>This cannot be used to load TVA.Core itself.</remarks>
818− [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.ControlAppDomain)]
819− public static void LoadAssemblyFromResource(string assemblyName)
820− {
821− // Hooks into assembly resolve event for current domain so it can load assembly from embedded resource.
822− if (!s_addedResolver)
823− {
824− AppDomain.CurrentDomain.AssemblyResolve += ResolveAssemblyFromResource;
825− s_addedResolver = true;
826− }
827−
828− // Loads the assembly (This will invoke event that will resolve assembly from resource.).
829− AppDomain.CurrentDomain.Load(assemblyName);
830− }
831−
832− private static Assembly ResolveAssemblyFromResource(object sender, ResolveEventArgs e)
833− {
834− Assembly resourceAssembly;
835− string shortName = e.Name.Split(',')[0];
836−
837− if (s_assemblyCache == null) s_assemblyCache = new Dictionary<string, Assembly>();
838− resourceAssembly = s_assemblyCache[shortName];
839−
840− if (resourceAssembly == null)
841− {
842− // Loops through all of the resources in the executing assembly.
843− foreach (string name in Assembly.GetEntryAssembly().GetManifestResourceNames())
844− {
845− // Sees if the embedded resource name matches the assembly it is trying to load.
846− if (string.Compare(FilePath.GetFileNameWithoutExtension(name), EntryAssembly.RootNamespace + "." + shortName, true) == 0)
847− {
848− // If so, loads embedded resource assembly into a binary buffer.
849− System.IO.Stream resourceStream = Assembly.GetEntryAssembly().GetManifestResourceStream(name);
850− byte[] buffer = new byte[resourceStream.Length];
851− resourceStream.Read(buffer, 0, (int)resourceStream.Length);
852− resourceStream.Close();
853−
854− // Loads assembly from binary buffer.
855− resourceAssembly = Assembly.Load(buffer);
856− s_assemblyCache.Add(shortName, resourceAssembly);
857− break;
858− }
859− }
860− }
861−
862− return resourceAssembly;
863− }
864−
865− #endregion
866− }
1+//*******************************************************************************************************
2+// AssemblyInfo.cs - Gbtc
3+//
4+// Tennessee Valley Authority, 2009
5+// No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
6+//
7+// This software is made freely available under the TVA Open Source Agreement (see below).
8+//
9+// Code Modification History:
10+// -----------------------------------------------------------------------------------------------------
11+// 04/29/2005 - Pinal C. Patel
12+// Generated original version of source code.
13+// 12/29/2005 - Pinal C. Patel
14+// Migrated 2.0 version of source code from 1.1 source (TVA.Shared.Assembly).
15+// 12/12/2007 - Darrell Zuercher
16+// Edited Code Comments.
17+// 09/08/2008 - J. Ritchie Carroll
18+// Converted to C# as AssemblyInformation.
19+// 09/14/2009 - Stephen C. Wills
20+// Added new header and license agreement.
21+// 10/21/2009 - Pinal C. Patel
22+// Added error checking to assembly attribute properties.
23+//
24+//*******************************************************************************************************
25+
26+#region [ TVA Open Source Agreement ]
27+/*
28+
29+ THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE,REPRODUCTION, DISTRIBUTION,
30+ MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE
31+ TENNESSEE VALLEY AUTHORITY, A CORPORATE AGENCY AND INSTRUMENTALITY OF THE UNITED STATES GOVERNMENT
32+ ("GOVERNMENT AGENCY"). GOVERNMENT AGENCY IS AN INTENDED THIRD-PARTY BENEFICIARY OF ALL SUBSEQUENT
33+ DISTRIBUTIONS OR REDISTRIBUTIONS OF THE SUBJECT SOFTWARE. ANYONE WHO USES, REPRODUCES, DISTRIBUTES,
34+ MODIFIES OR REDISTRIBUTES THE SUBJECT SOFTWARE, AS DEFINED HEREIN, OR ANY PART THEREOF, IS, BY THAT
35+ ACTION, ACCEPTING IN FULL THE RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS AGREEMENT.
36+
37+ Original Software Designation: openPDC
38+ Original Software Title: The TVA Open Source Phasor Data Concentrator
39+ User Registration Requested. Please Visit https://naspi.tva.com/Registration/
40+ Point of Contact for Original Software: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>
41+
42+ 1. DEFINITIONS
43+
44+ A. "Contributor" means Government Agency, as the developer of the Original Software, and any entity
45+ that makes a Modification.
46+
47+ B. "Covered Patents" mean patent claims licensable by a Contributor that are necessarily infringed by
48+ the use or sale of its Modification alone or when combined with the Subject Software.
49+
50+ C. "Display" means the showing of a copy of the Subject Software, either directly or by means of an
51+ image, or any other device.
52+
53+ D. "Distribution" means conveyance or transfer of the Subject Software, regardless of means, to
54+ another.
55+
56+ E. "Larger Work" means computer software that combines Subject Software, or portions thereof, with
57+ software separate from the Subject Software that is not governed by the terms of this Agreement.
58+
59+ F. "Modification" means any alteration of, including addition to or deletion from, the substance or
60+ structure of either the Original Software or Subject Software, and includes derivative works, as that
61+ term is defined in the Copyright Statute, 17 USC § 101. However, the act of including Subject Software
62+ as part of a Larger Work does not in and of itself constitute a Modification.
63+
64+ G. "Original Software" means the computer software first released under this Agreement by Government
65+ Agency entitled openPDC, including source code, object code and accompanying documentation, if any.
66+
67+ H. "Recipient" means anyone who acquires the Subject Software under this Agreement, including all
68+ Contributors.
69+
70+ I. "Redistribution" means Distribution of the Subject Software after a Modification has been made.
71+
72+ J. "Reproduction" means the making of a counterpart, image or copy of the Subject Software.
73+
74+ K. "Sale" means the exchange of the Subject Software for money or equivalent value.
75+
76+ L. "Subject Software" means the Original Software, Modifications, or any respective parts thereof.
77+
78+ M. "Use" means the application or employment of the Subject Software for any purpose.
79+
80+ 2. GRANT OF RIGHTS
81+
82+ A. Under Non-Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor,
83+ with respect to its own contribution to the Subject Software, hereby grants to each Recipient a
84+ non-exclusive, world-wide, royalty-free license to engage in the following activities pertaining to
85+ the Subject Software:
86+
87+ 1. Use
88+
89+ 2. Distribution
90+
91+ 3. Reproduction
92+
93+ 4. Modification
94+
95+ 5. Redistribution
96+
97+ 6. Display
98+
99+ B. Under Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor, with
100+ respect to its own contribution to the Subject Software, hereby grants to each Recipient under Covered
101+ Patents a non-exclusive, world-wide, royalty-free license to engage in the following activities
102+ pertaining to the Subject Software:
103+
104+ 1. Use
105+
106+ 2. Distribution
107+
108+ 3. Reproduction
109+
110+ 4. Sale
111+
112+ 5. Offer for Sale
113+
114+ C. The rights granted under Paragraph B. also apply to the combination of a Contributor's Modification
115+ and the Subject Software if, at the time the Modification is added by the Contributor, the addition of
116+ such Modification causes the combination to be covered by the Covered Patents. It does not apply to
117+ any other combinations that include a Modification.
118+
119+ D. The rights granted in Paragraphs A. and B. allow the Recipient to sublicense those same rights.
120+ Such sublicense must be under the same terms and conditions of this Agreement.
121+
122+ 3. OBLIGATIONS OF RECIPIENT
123+
124+ A. Distribution or Redistribution of the Subject Software must be made under this Agreement except for
125+ additions covered under paragraph 3H.
126+
127+ 1. Whenever a Recipient distributes or redistributes the Subject Software, a copy of this Agreement
128+ must be included with each copy of the Subject Software; and
129+
130+ 2. If Recipient distributes or redistributes the Subject Software in any form other than source code,
131+ Recipient must also make the source code freely available, and must provide with each copy of the
132+ Subject Software information on how to obtain the source code in a reasonable manner on or through a
133+ medium customarily used for software exchange.
134+
135+ B. Each Recipient must ensure that the following copyright notice appears prominently in the Subject
136+ Software:
137+
138+ No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
139+
140+ C. Each Contributor must characterize its alteration of the Subject Software as a Modification and
141+ must identify itself as the originator of its Modification in a manner that reasonably allows
142+ subsequent Recipients to identify the originator of the Modification. In fulfillment of these
143+ requirements, Contributor must include a file (e.g., a change log file) that describes the alterations
144+ made and the date of the alterations, identifies Contributor as originator of the alterations, and
145+ consents to characterization of the alterations as a Modification, for example, by including a
146+ statement that the Modification is derived, directly or indirectly, from Original Software provided by
147+ Government Agency. Once consent is granted, it may not thereafter be revoked.
148+
149+ D. A Contributor may add its own copyright notice to the Subject Software. Once a copyright notice has
150+ been added to the Subject Software, a Recipient may not remove it without the express permission of
151+ the Contributor who added the notice.
152+
153+ E. A Recipient may not make any representation in the Subject Software or in any promotional,
154+ advertising or other material that may be construed as an endorsement by Government Agency or by any
155+ prior Recipient of any product or service provided by Recipient, or that may seek to obtain commercial
156+ advantage by the fact of Government Agency's or a prior Recipient's participation in this Agreement.
157+
158+ F. In an effort to track usage and maintain accurate records of the Subject Software, each Recipient,
159+ upon receipt of the Subject Software, is requested to register with Government Agency by visiting the
160+ following website: https://naspi.tva.com/Registration/. Recipient's name and personal information
161+ shall be used for statistical purposes only. Once a Recipient makes a Modification available, it is
162+ requested that the Recipient inform Government Agency at the web site provided above how to access the
163+ Modification.
164+
165+ G. Each Contributor represents that that its Modification does not violate any existing agreements,
166+ regulations, statutes or rules, and further that Contributor has sufficient rights to grant the rights
167+ conveyed by this Agreement.
168+
169+ H. A Recipient may choose to offer, and to charge a fee for, warranty, support, indemnity and/or
170+ liability obligations to one or more other Recipients of the Subject Software. A Recipient may do so,
171+ however, only on its own behalf and not on behalf of Government Agency or any other Recipient. Such a
172+ Recipient must make it absolutely clear that any such warranty, support, indemnity and/or liability
173+ obligation is offered by that Recipient alone. Further, such Recipient agrees to indemnify Government
174+ Agency and every other Recipient for any liability incurred by them as a result of warranty, support,
175+ indemnity and/or liability offered by such Recipient.
176+
177+ I. A Recipient may create a Larger Work by combining Subject Software with separate software not
178+ governed by the terms of this agreement and distribute the Larger Work as a single product. In such
179+ case, the Recipient must make sure Subject Software, or portions thereof, included in the Larger Work
180+ is subject to this Agreement.
181+
182+ J. Notwithstanding any provisions contained herein, Recipient is hereby put on notice that export of
183+ any goods or technical data from the United States may require some form of export license from the
184+ U.S. Government. Failure to obtain necessary export licenses may result in criminal liability under
185+ U.S. laws. Government Agency neither represents that a license shall not be required nor that, if
186+ required, it shall be issued. Nothing granted herein provides any such export license.
187+
188+ 4. DISCLAIMER OF WARRANTIES AND LIABILITIES; WAIVER AND INDEMNIFICATION
189+
190+ A. No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER
191+ EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT
192+ SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
193+ PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR
194+ FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS
195+ AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR
196+ RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS
197+ RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND
198+ LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT
199+ "AS IS."
200+
201+ B. Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST GOVERNMENT AGENCY, ITS
202+ AGENTS, EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE
203+ OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM
204+ SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE
205+ SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS GOVERNMENT AGENCY, ITS AGENTS,
206+ EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY
207+ LAW. THE FOREGOING RELEASE AND INDEMNIFICATION SHALL APPLY EVEN IF THE LIABILITIES, DEMANDS, DAMAGES,
208+ EXPENSES OR LOSSES ARE CAUSED, OCCASIONED, OR CONTRIBUTED TO BY THE NEGLIGENCE, SOLE OR CONCURRENT, OF
209+ GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE
210+ IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
211+
212+ 5. GENERAL TERMS
213+
214+ A. Termination: This Agreement and the rights granted hereunder will terminate automatically if a
215+ Recipient fails to comply with these terms and conditions, and fails to cure such noncompliance within
216+ thirty (30) days of becoming aware of such noncompliance. Upon termination, a Recipient agrees to
217+ immediately cease use and distribution of the Subject Software. All sublicenses to the Subject
218+ Software properly granted by the breaching Recipient shall survive any such termination of this
219+ Agreement.
220+
221+ B. Severability: If any provision of this Agreement is invalid or unenforceable under applicable law,
222+ it shall not affect the validity or enforceability of the remainder of the terms of this Agreement.
223+
224+ C. Applicable Law: This Agreement shall be subject to United States federal law only for all purposes,
225+ including, but not limited to, determining the validity of this Agreement, the meaning of its
226+ provisions and the rights, obligations and remedies of the parties.
227+
228+ D. Entire Understanding: This Agreement constitutes the entire understanding and agreement of the
229+ parties relating to release of the Subject Software and may not be superseded, modified or amended
230+ except by further written agreement duly executed by the parties.
231+
232+ E. Binding Authority: By accepting and using the Subject Software under this Agreement, a Recipient
233+ affirms its authority to bind the Recipient to all terms and conditions of this Agreement and that
234+ Recipient hereby agrees to all terms and conditions herein.
235+
236+ F. Point of Contact: Any Recipient contact with Government Agency is to be directed to the designated
237+ representative as follows: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>.
238+
239+*/
240+#endregion
241+
242+using System;
243+using System.Collections.Generic;
244+using System.Collections.Specialized;
245+using System.Diagnostics;
246+using System.IO;
247+using System.Reflection;
248+using System.Resources;
249+using System.Runtime.InteropServices;
250+using System.Security.Permissions;
251+using TVA.IO;
252+
253+namespace TVA.Reflection
254+{
255+ /// <summary>Assembly Information Class.</summary>
256+ public class AssemblyInfo
257+ {
258+ #region [ Members ]
259+
260+ // Fields
261+ private Assembly m_assemblyInstance;
262+
263+ #endregion
264+
265+ #region [ Constructors ]
266+
267+ /// <summary>Initializes a new instance of the <see cref="AssemblyInfo"/> class.</summary>
268+ /// <param name="assemblyInstance">An <see cref="Assembly"/> object.</param>
269+ public AssemblyInfo(Assembly assemblyInstance)
270+ {
271+ m_assemblyInstance = assemblyInstance;
272+ }
273+
274+ #endregion
275+
276+ #region [ Properties ]
277+
278+ /// <summary>Gets the title information of the assembly.</summary>
279+ /// <returns>The title information of the assembly.</returns>
280+ public string Title
281+ {
282+ get
283+ {
284+ AssemblyTitleAttribute attribute = GetCustomAttribute(typeof(AssemblyTitleAttribute)) as AssemblyTitleAttribute;
285+ if (attribute == null)
286+ return string.Empty;
287+ else
288+ return attribute.Title;
289+ }
290+ }
291+
292+ /// <summary>Gets the description information of the assembly.</summary>
293+ /// <returns>The description information of the assembly.</returns>
294+ public string Description
295+ {
296+ get
297+ {
298+ AssemblyDescriptionAttribute attribute = GetCustomAttribute(typeof(AssemblyDescriptionAttribute)) as AssemblyDescriptionAttribute;
299+ if (attribute == null)
300+ return string.Empty;
301+ else
302+ return attribute.Description;
303+ }
304+ }
305+
306+ /// <summary>Gets the company name information of the assembly.</summary>
307+ /// <returns>The company name information of the assembly.</returns>
308+ public string Company
309+ {
310+ get
311+ {
312+ AssemblyCompanyAttribute attribute = GetCustomAttribute(typeof(AssemblyCompanyAttribute)) as AssemblyCompanyAttribute;
313+ if (attribute == null)
314+ return string.Empty;
315+ else
316+ return attribute.Company;
317+ }
318+ }
319+
320+ /// <summary>Gets the product name information of the assembly.</summary>
321+ /// <returns>The product name information of the assembly.</returns>
322+ public string Product
323+ {
324+ get
325+ {
326+ AssemblyProductAttribute attribute = GetCustomAttribute(typeof(AssemblyProductAttribute)) as AssemblyProductAttribute;
327+ if (attribute == null)
328+ return string.Empty;
329+ else
330+ return attribute.Product;
331+ }
332+ }
333+
334+ /// <summary>Gets the copyright information of the assembly.</summary>
335+ /// <returns>The copyright information of the assembly.</returns>
336+ public string Copyright
337+ {
338+ get
339+ {
340+ AssemblyCopyrightAttribute attribute = GetCustomAttribute(typeof(AssemblyCopyrightAttribute)) as AssemblyCopyrightAttribute;
341+ if (attribute == null)
342+ return string.Empty;
343+ else
344+ return attribute.Copyright;
345+ }
346+ }
347+
348+ /// <summary>Gets the trademark information of the assembly.</summary>
349+ /// <returns>The trademark information of the assembly.</returns>
350+ public string Trademark
351+ {
352+ get
353+ {
354+ AssemblyTrademarkAttribute attribute = GetCustomAttribute(typeof(AssemblyTrademarkAttribute)) as AssemblyTrademarkAttribute;
355+ if (attribute == null)
356+ return string.Empty;
357+ else
358+ return attribute.Trademark;
359+ }
360+ }
361+
362+ /// <summary>Gets the configuration information of the assembly.</summary>
363+ /// <returns>The configuration information of the assembly.</returns>
364+ public string Configuration
365+ {
366+ get
367+ {
368+ AssemblyConfigurationAttribute attribute = GetCustomAttribute(typeof(AssemblyConfigurationAttribute)) as AssemblyConfigurationAttribute;
369+ if (attribute == null)
370+ return string.Empty;
371+ else
372+ return attribute.Configuration;
373+ }
374+ }
375+
376+ /// <summary>Gets a boolean value indicating if the assembly has been built as delay-signed.</summary>
377+ /// <returns>True, if the assembly has been built as delay-signed; otherwise, False.</returns>
378+ public bool DelaySign
379+ {
380+ get
381+ {
382+ AssemblyDelaySignAttribute attribute = GetCustomAttribute(typeof(AssemblyDelaySignAttribute)) as AssemblyDelaySignAttribute;
383+ if (attribute == null)
384+ return false;
385+ else
386+ return attribute.DelaySign;
387+ }
388+ }
389+
390+ /// <summary>Gets the version information of the assembly.</summary>
391+ /// <returns>The version information of the assembly</returns>
392+ public string InformationalVersion
393+ {
394+ get
395+ {
396+ AssemblyInformationalVersionAttribute attribute = GetCustomAttribute(typeof(AssemblyInformationalVersionAttribute)) as AssemblyInformationalVersionAttribute;
397+ if (attribute == null)
398+ return string.Empty;
399+ else
400+ return attribute.InformationalVersion;
401+ }
402+ }
403+
404+ /// <summary>Gets the name of the file containing the key pair used to generate a strong name for the attributed
405+ /// assembly.</summary>
406+ /// <returns>A string containing the name of the file that contains the key pair.</returns>
407+ public string KeyFile
408+ {
409+ get
410+ {
411+ AssemblyKeyFileAttribute attribute = GetCustomAttribute(typeof(AssemblyKeyFileAttribute)) as AssemblyKeyFileAttribute;
412+ if (attribute == null)
413+ return string.Empty;
414+ else
415+ return attribute.KeyFile;
416+ }
417+ }
418+
419+ /// <summary>Gets the culture name of the assembly.</summary>
420+ /// <returns>The culture name of the assembly.</returns>
421+ public string CultureName
422+ {
423+ get
424+ {
425+ NeutralResourcesLanguageAttribute attribute = GetCustomAttribute(typeof(NeutralResourcesLanguageAttribute)) as NeutralResourcesLanguageAttribute;
426+ if (attribute == null)
427+ return string.Empty;
428+ else
429+ return attribute.CultureName;
430+ }
431+ }
432+
433+ /// <summary>Gets the assembly version used to instruct the System.Resources.ResourceManager to ask for a particular
434+ /// version of a satellite assembly to simplify updates of the main assembly of an application.</summary>
435+ public string SatelliteContractVersion
436+ {
437+ get
438+ {
439+ SatelliteContractVersionAttribute attribute = GetCustomAttribute(typeof(SatelliteContractVersionAttribute)) as SatelliteContractVersionAttribute;
440+ if (attribute == null)
441+ return string.Empty;
442+ else
443+ return attribute.Version;
444+ }
445+ }
446+
447+ /// <summary>Gets the string representing the assembly version used to indicate to a COM client that all classes
448+ /// in the current version of the assembly are compatible with classes in an earlier version of the assembly.</summary>
449+ /// <returns>The string representing the assembly version in MajorVersion.MinorVersion.RevisionNumber.BuildNumber
450+ /// format.</returns>
451+ public string ComCompatibleVersion
452+ {
453+ get
454+ {
455+ ComCompatibleVersionAttribute attribute = GetCustomAttribute(typeof(ComCompatibleVersionAttribute)) as ComCompatibleVersionAttribute;
456+ if (attribute == null)
457+ return string.Empty;
458+ else
459+ return attribute.MajorVersion.ToString() + "." + attribute.MinorVersion.ToString() + "." + "." + attribute.BuildNumber.ToString() + attribute.RevisionNumber.ToString();
460+ }
461+ }
462+
463+ /// <summary>Gets a boolean value indicating if the assembly is exposed to COM.</summary>
464+ /// <returns>True, if the assembly is exposed to COM; otherwise, False.</returns>
465+ public bool ComVisible
466+ {
467+ get
468+ {
469+ ComVisibleAttribute attribute = GetCustomAttribute(typeof(ComVisibleAttribute)) as ComVisibleAttribute;
470+ if (attribute == null)
471+ return false;
472+ else
473+ return attribute.Value;
474+ }
475+ }
476+
477+ /// <summary>Gets the assembly GUID that is used as an ID if the assembly is exposed to COM.</summary>
478+ /// <returns>The assembly GUID that is used as an ID if the assembly is exposed to COM.</returns>
479+ public string Guid
480+ {
481+ get
482+ {
483+ GuidAttribute attribute = GetCustomAttribute(typeof(GuidAttribute)) as GuidAttribute;
484+ if (attribute == null)
485+ return string.Empty;
486+ else
487+ return attribute.Value;
488+ }
489+ }
490+
491+ /// <summary>Gets the string representing the assembly version number in MajorVersion.MinorVersion format.</summary>
492+ /// <returns>The string representing the assembly version number in MajorVersion.MinorVersion format.</returns>
493+ public string TypeLibVersion
494+ {
495+ get
496+ {
497+ TypeLibVersionAttribute attribute = GetCustomAttribute(typeof(TypeLibVersionAttribute)) as TypeLibVersionAttribute;
498+ if (attribute == null)
499+ return string.Empty;
500+ else
501+ return attribute.MajorVersion.ToString() + "." + attribute.MinorVersion.ToString();
502+ }
503+ }
504+
505+ /// <summary>Gets a boolean value indicating whether the indicated program element is CLS-compliant.</summary>
506+ /// <returns>True, if the program element is CLS-compliant; otherwise, False.</returns>
507+ public bool CLSCompliant
508+ {
509+ get
510+ {
511+ CLSCompliantAttribute attribute = GetCustomAttribute(typeof(CLSCompliantAttribute)) as CLSCompliantAttribute;
512+ if (attribute == null)
513+ return false;
514+ else
515+ return attribute.IsCompliant;
516+ }
517+ }
518+
519+ /// <summary>Gets a value that indicates whether the runtime will track information during code generation for the
520+ /// debugger.</summary>
521+ /// <returns>True, if the runtime will track information during code generation for the debugger; otherwise, False.</returns>
522+ public bool Debuggable
523+ {
524+ get
525+ {
526+ DebuggableAttribute attribute = GetCustomAttribute(typeof(DebuggableAttribute)) as DebuggableAttribute;
527+ if (attribute == null)
528+ return false;
529+ else
530+ return attribute.IsJITTrackingEnabled;
531+ }
532+ }
533+
534+ /// <summary>Gets the path or UNC location of the loaded file that contains the manifest.</summary>
535+ /// <returns>The location of the loaded file that contains the manifest.</returns>
536+ public string Location
537+ {
538+ get
539+ {
540+ return m_assemblyInstance.Location.ToLower();
541+ }
542+ }
543+
544+ /// <summary>Gets the location of the assembly as specified originally; for example, in a
545+ /// AssemblyName object.</summary>
546+ /// <returns>The location of the assembly as specified originally.</returns>
547+ public string CodeBase
548+ {
549+ get
550+ {
551+ return m_assemblyInstance.CodeBase.Replace("file:///", "").ToLower();
552+ }
553+ }
554+
555+ /// <summary>Gets the display name of the assembly.</summary>
556+ /// <returns>The display name of the assembly.</returns>
557+ public string FullName
558+ {
559+ get
560+ {
561+ return m_assemblyInstance.FullName;
562+ }
563+ }
564+
565+ /// <summary>Gets the simple, unencrypted name of the assembly.</summary>
566+ /// <returns>A string that is the simple, unencrypted name of the assembly.</returns>
567+ public string Name
568+ {
569+ get
570+ {
571+ return m_assemblyInstance.GetName().Name;
572+ }
573+ }
574+
575+ /// <summary>Gets the major, minor, revision, and build numbers of the assembly.</summary>
576+ /// <returns>A System.Version object representing the major, minor, revision, and build numbers of the assembly.</returns>
577+ public Version Version
578+ {
579+ get
580+ {
581+ return m_assemblyInstance.GetName().Version;
582+ }
583+ }
584+
585+ /// <summary>Gets the string representing the version of the common language runtime (CLR) saved in the file
586+ /// containing the manifest.</summary>
587+ /// <returns>The string representing the CLR version folder name. This is not a full path.</returns>
588+ public string ImageRuntimeVersion
589+ {
590+ get
591+ {
592+ return m_assemblyInstance.ImageRuntimeVersion;
593+ }
594+ }
595+
596+ /// <summary>Gets a boolean value indicating whether the assembly was loaded from the global assembly cache.</summary>
597+ /// <returns>True, if the assembly was loaded from the global assembly cache; otherwise, False.</returns>
598+ public bool GACLoaded
599+ {
600+ get
601+ {
602+ return m_assemblyInstance.GlobalAssemblyCache;
603+ }
604+ }
605+
606+ /// <summary>Gets the date and time when the assembly was last built.</summary>
607+ /// <returns>The date and time when the assembly was last built.</returns>
608+ public DateTime BuildDate
609+ {
610+ get
611+ {
612+ return File.GetLastWriteTime(m_assemblyInstance.Location);
613+ }
614+ }
615+
616+ /// <summary>Gets the root namespace of the assembly.</summary>
617+ /// <returns>The root namespace of the assembly.</returns>
618+ public string RootNamespace
619+ {
620+ get
621+ {
622+ return m_assemblyInstance.GetExportedTypes()[0].Namespace;
623+ }
624+ }
625+
626+ #endregion
627+
628+ #region [ Methods ]
629+
630+ /// <summary>Gets a collection of assembly attributes exposed by the assembly.</summary>
631+ /// <returns>A System.Specialized.KeyValueCollection of assembly attributes.</returns>
632+ public NameValueCollection GetAttributes()
633+ {
634+ NameValueCollection assemblyAttributes = new NameValueCollection();
635+
636+ //Add some values that are not in AssemblyInfo.
637+ assemblyAttributes.Add("Full Name", FullName);
638+ assemblyAttributes.Add("Name", Name);
639+ assemblyAttributes.Add("Version", Version.ToString());
640+ assemblyAttributes.Add("Image Runtime Version", ImageRuntimeVersion);
641+ assemblyAttributes.Add("Build Date", BuildDate.ToString());
642+ assemblyAttributes.Add("Location", Location);
643+ assemblyAttributes.Add("Code Base", CodeBase);
644+ assemblyAttributes.Add("GAC Loaded", GACLoaded.ToString());
645+
646+ //Add all attributes available from AssemblyInfo.
647+ foreach (object assemblyAttribute in m_assemblyInstance.GetCustomAttributes(false))
648+ {
649+ if (assemblyAttribute is AssemblyTitleAttribute)
650+ {
651+ assemblyAttributes.Add("Title", Title);
652+ }
653+ else if (assemblyAttribute is AssemblyDescriptionAttribute)
654+ {
655+ assemblyAttributes.Add("Description", Description);
656+ }
657+ else if (assemblyAttribute is AssemblyCompanyAttribute)
658+ {
659+ assemblyAttributes.Add("Company", Company);
660+ }
661+ else if (assemblyAttribute is AssemblyProductAttribute)
662+ {
663+ assemblyAttributes.Add("Product", Product);
664+ }
665+ else if (assemblyAttribute is AssemblyCopyrightAttribute)
666+ {
667+ assemblyAttributes.Add("Copyright", Copyright);
668+ }
669+ else if (assemblyAttribute is AssemblyTrademarkAttribute)
670+ {
671+ assemblyAttributes.Add("Trademark", Trademark);
672+ }
673+ else if (assemblyAttribute is AssemblyConfigurationAttribute)
674+ {
675+ assemblyAttributes.Add("Configuration", Configuration);
676+ }
677+ else if (assemblyAttribute is AssemblyDelaySignAttribute)
678+ {
679+ assemblyAttributes.Add("Delay Sign", DelaySign.ToString());
680+ }
681+ else if (assemblyAttribute is AssemblyInformationalVersionAttribute)
682+ {
683+ assemblyAttributes.Add("Informational Version", InformationalVersion);
684+ }
685+ else if (assemblyAttribute is AssemblyKeyFileAttribute)
686+ {
687+ assemblyAttributes.Add("Key File", KeyFile);
688+ }
689+ else if (assemblyAttribute is NeutralResourcesLanguageAttribute)
690+ {
691+ assemblyAttributes.Add("Culture Name", CultureName);
692+ }
693+ else if (assemblyAttribute is SatelliteContractVersionAttribute)
694+ {
695+ assemblyAttributes.Add("Satellite Contract Version", SatelliteContractVersion);
696+ }
697+ else if (assemblyAttribute is ComCompatibleVersionAttribute)
698+ {
699+ assemblyAttributes.Add("Com Compatible Version", ComCompatibleVersion);
700+ }
701+ else if (assemblyAttribute is ComVisibleAttribute)
702+ {
703+ assemblyAttributes.Add("Com Visible", ComVisible.ToString());
704+ }
705+ else if (assemblyAttribute is GuidAttribute)
706+ {
707+ assemblyAttributes.Add("Guid", Guid);
708+ }
709+ else if (assemblyAttribute is TypeLibVersionAttribute)
710+ {
711+ assemblyAttributes.Add("Type Lib Version", TypeLibVersion);
712+ }
713+ else if (assemblyAttribute is CLSCompliantAttribute)
714+ {
715+ assemblyAttributes.Add("CLS Compliant", CLSCompliant.ToString());
716+ }
717+ else if (assemblyAttribute is DebuggableAttribute)
718+ {
719+ assemblyAttributes.Add("Debuggable", Debuggable.ToString());
720+ }
721+ }
722+
723+ return assemblyAttributes;
724+ }
725+
726+ /// <summary>Gets the specified assembly attribute if it is exposed by the assembly.</summary>
727+ /// <param name="attributeType">Type of the attribute to get.</param>
728+ /// <returns>The requested assembly attribute if it exists; otherwise null.</returns>
729+ public object GetCustomAttribute(Type attributeType)
730+ {
731+ //Returns the requested assembly attribute.
732+ object[] assemblyAttributes = m_assemblyInstance.GetCustomAttributes(attributeType, false);
733+ if (assemblyAttributes.Length <= 0)
734+ return null;
735+ else
736+ return assemblyAttributes[0];
737+ }
738+
739+ /// <summary>Gets the specified embedded resource from the assembly.</summary>
740+ /// <param name="resourceName">The full name (including the namespace) of the embedded resource to get.</param>
741+ /// <returns>The embedded resource.</returns>
742+ public Stream GetEmbeddedResource(string resourceName)
743+ {
744+ //Extracts and returns the requested embedded resource.
745+ return m_assemblyInstance.GetEmbeddedResource(resourceName);
746+ }
747+
748+ #endregion
749+
750+ #region [ Static ]
751+
752+ // Static Fields
753+ private static AssemblyInfo s_callingAssembly;
754+ private static AssemblyInfo s_entryAssembly;
755+ private static AssemblyInfo s_executingAssembly;
756+ private static Dictionary<string, Assembly> s_assemblyCache;
757+ private static bool s_addedResolver;
758+
759+ // Static Properties
760+
761+ /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that invoked the currently executing method.</summary>
762+ public static AssemblyInfo CallingAssembly
763+ {
764+ get
765+ {
766+ if (s_callingAssembly == null)
767+ {
768+ // We have to find the calling assembly of the caller.
769+ StackTrace trace = new StackTrace();
770+ Assembly caller = Assembly.GetCallingAssembly();
771+ Assembly current = Assembly.GetExecutingAssembly();
772+ foreach (StackFrame frame in trace.GetFrames())
773+ {
774+ Assembly assembly = Assembly.GetAssembly(frame.GetMethod().DeclaringType);
775+ if (assembly != caller && assembly != current)
776+ {
777+ // Assembly is neither the current assembly or the calling assembly.
778+ s_callingAssembly = new AssemblyInfo(assembly);
779+ break;
780+ }
781+ }
782+ }
783+
784+ return s_callingAssembly;
785+ }
786+ }
787+
788+ /// <summary>Gets the <see cref="AssemblyInfo"/> object of the process executable in the default application domain.</summary>
789+ public static AssemblyInfo EntryAssembly
790+ {
791+ get
792+ {
793+ if (s_entryAssembly == null)
794+ s_entryAssembly = new AssemblyInfo(Assembly.GetEntryAssembly());
795+
796+ return s_entryAssembly;
797+ }
798+ }
799+
800+ /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that contains the code that is currently executing.</summary>
801+ public static AssemblyInfo ExecutingAssembly
802+ {
803+ get
804+ {
805+ if (s_executingAssembly == null)
806+ // Caller's assembly will be the executing assembly for the caller.
807+ s_executingAssembly = new AssemblyInfo(Assembly.GetCallingAssembly());
808+
809+ return s_executingAssembly;
810+ }
811+ }
812+
813+ // Static Methods
814+
815+ /// <summary>Loads the specified assembly that is embedded as a resource in the assembly.</summary>
816+ /// <param name="assemblyName">Name of the assembly to load.</param>
817+ /// <remarks>This cannot be used to load TVA.Core itself.</remarks>
818+ [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.ControlAppDomain)]
819+ public static void LoadAssemblyFromResource(string assemblyName)
820+ {
821+ // Hooks into assembly resolve event for current domain so it can load assembly from embedded resource.
822+ if (!s_addedResolver)
823+ {
824+ AppDomain.CurrentDomain.AssemblyResolve += ResolveAssemblyFromResource;
825+ s_addedResolver = true;
826+ }
827+
828+ // Loads the assembly (This will invoke event that will resolve assembly from resource.).
829+ AppDomain.CurrentDomain.Load(assemblyName);
830+ }
831+
832+ private static Assembly ResolveAssemblyFromResource(object sender, ResolveEventArgs e)
833+ {
834+ Assembly resourceAssembly;
835+ string shortName = e.Name.Split(',')[0];
836+
837+ if (s_assemblyCache == null) s_assemblyCache = new Dictionary<string, Assembly>();
838+ resourceAssembly = s_assemblyCache[shortName];
839+
840+ if (resourceAssembly == null)
841+ {
842+ // Loops through all of the resources in the executing assembly.
843+ foreach (string name in Assembly.GetEntryAssembly().GetManifestResourceNames())
844+ {
845+ // Sees if the embedded resource name matches the assembly it is trying to load.
846+ if (string.Compare(FilePath.GetFileNameWithoutExtension(name), EntryAssembly.RootNamespace + "." + shortName, true) == 0)
847+ {
848+ // If so, loads embedded resource assembly into a binary buffer.
849+ System.IO.Stream resourceStream = Assembly.GetEntryAssembly().GetManifestResourceStream(name);
850+ byte[] buffer = new byte[resourceStream.Length];
851+ resourceStream.Read(buffer, 0, (int)resourceStream.Length);
852+ resourceStream.Close();
853+
854+ // Loads assembly from binary buffer.
855+ resourceAssembly = Assembly.Load(buffer);
856+ s_assemblyCache.Add(shortName, resourceAssembly);
857+ break;
858+ }
859+ }
860+ }
861+
862+ return resourceAssembly;
863+ }
864+
865+ #endregion
866+ }
867867 }
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Security/Properties/AssemblyInfo.cs+28−28
@@ -1,28 +1,28 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−using System.Security.Permissions;
5−
6−// Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
8−
9−// Informational attributes.
10−[assembly: AssemblyCompany("TVA")]
11−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12−[assembly: AssemblyProduct("openPDC Framework")]
13−
14−// Assembly manifest attributes.
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−[assembly: AssemblyDefaultAlias("TVA.Security")]
21−[assembly: AssemblyDescription("Security components of the openPDC Framework.")]
22−[assembly: AssemblyTitle("TVA.Security")]
23−
24−// Other configuration attributes.
25−[assembly: CLSCompliant(true)]
26−[assembly: ComVisible(false)]
27−[assembly: Guid("96b92296-6422-4f3c-8d30-72f6ecf6c558")]
28−[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+using System.Security.Permissions;
5+
6+// Assembly identity attributes.
7+[assembly: AssemblyVersion("1.1.64.54531")]
8+
9+// Informational attributes.
10+[assembly: AssemblyCompany("TVA")]
11+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12+[assembly: AssemblyProduct("openPDC Framework")]
13+
14+// Assembly manifest attributes.
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+[assembly: AssemblyDefaultAlias("TVA.Security")]
21+[assembly: AssemblyDescription("Security components of the openPDC Framework.")]
22+[assembly: AssemblyTitle("TVA.Security")]
23+
24+// Other configuration attributes.
25+[assembly: CLSCompliant(true)]
26+[assembly: ComVisible(false)]
27+[assembly: Guid("96b92296-6422-4f3c-8d30-72f6ecf6c558")]
28+[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Services/Properties/AssemblyInfo.cs+28−28
@@ -1,28 +1,28 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−using System.Security.Permissions;
5−
6−// Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
8−
9−// Informational attributes.
10−[assembly: AssemblyCompany("TVA")]
11−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12−[assembly: AssemblyProduct("openPDC Framework")]
13−
14−// Assembly manifest attributes.
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−[assembly: AssemblyDefaultAlias("TVA.Services")]
21−[assembly: AssemblyDescription("Windows service components of the openPDC Framework.")]
22−[assembly: AssemblyTitle("TVA.Services")]
23−
24−// Other configuration attributes.
25−[assembly: CLSCompliant(true)]
26−[assembly: ComVisible(false)]
27−[assembly: Guid("8822ca22-cda5-4562-9a67-2adb084730e1")]
28−[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+using System.Security.Permissions;
5+
6+// Assembly identity attributes.
7+[assembly: AssemblyVersion("1.1.64.54531")]
8+
9+// Informational attributes.
10+[assembly: AssemblyCompany("TVA")]
11+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12+[assembly: AssemblyProduct("openPDC Framework")]
13+
14+// Assembly manifest attributes.
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+[assembly: AssemblyDefaultAlias("TVA.Services")]
21+[assembly: AssemblyDescription("Windows service components of the openPDC Framework.")]
22+[assembly: AssemblyTitle("TVA.Services")]
23+
24+// Other configuration attributes.
25+[assembly: CLSCompliant(true)]
26+[assembly: ComVisible(false)]
27+[assembly: Guid("8822ca22-cda5-4562-9a67-2adb084730e1")]
28+[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Web/Properties/AssemblyInfo.cs+39−39
@@ -1,39 +1,39 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−using System.Security.Permissions;
5−using System.Web.UI;
6−using TVA.Web.Hosting;
7−
8−// Assembly identity attributes.
9−[assembly: AssemblyVersion("2.1.99.0")]
10−
11−// Informational attributes.
12−[assembly: AssemblyCompany("TVA")]
13−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
14−[assembly: AssemblyProduct("openPDC Framework")]
15−
16−// Assembly manifest attributes.
17−#if DEBUG
18−[assembly: AssemblyConfiguration("Debug Build")]
19−#else
20−[assembly: AssemblyConfiguration("Release Build")]
21−#endif
22−[assembly: AssemblyDefaultAlias("TVA.Web")]
23−[assembly: AssemblyDescription("Web application components of the openPDC Framework.")]
24−[assembly: AssemblyTitle("TVA.Web")]
25−
26−// Other configuration attributes.
27−[assembly: CLSCompliant(true)]
28−[assembly: ComVisible(false)]
29−[assembly: Guid("eebbee45-2987-4bbd-9cc1-ff6d4dcf55f7")]
30−[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
31−
32−// Embedd server-side controls.
33−[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityPortal.aspx", "TVA.Web.Embedded")]
34−[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityService.svc", "TVA.Web.Embedded")]
35−
36−// Embedd images used by embedded controls.
37−[assembly: WebResource("TVA.Web.Embedded.Images.TVALogo.png", "img/png")]
38−[assembly: WebResource("TVA.Web.Embedded.Images.Help.png", "img/png")]
39−[assembly: WebResource("TVA.Web.Embedded.Images.Warning.png", "img/png")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+using System.Security.Permissions;
5+using System.Web.UI;
6+using TVA.Web.Hosting;
7+
8+// Assembly identity attributes.
9+[assembly: AssemblyVersion("1.1.64.54531")]
10+
11+// Informational attributes.
12+[assembly: AssemblyCompany("TVA")]
13+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
14+[assembly: AssemblyProduct("openPDC Framework")]
15+
16+// Assembly manifest attributes.
17+#if DEBUG
18+[assembly: AssemblyConfiguration("Debug Build")]
19+#else
20+[assembly: AssemblyConfiguration("Release Build")]
21+#endif
22+[assembly: AssemblyDefaultAlias("TVA.Web")]
23+[assembly: AssemblyDescription("Web application components of the openPDC Framework.")]
24+[assembly: AssemblyTitle("TVA.Web")]
25+
26+// Other configuration attributes.
27+[assembly: CLSCompliant(true)]
28+[assembly: ComVisible(false)]
29+[assembly: Guid("eebbee45-2987-4bbd-9cc1-ff6d4dcf55f7")]
30+[assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)]
31+
32+// Embedd server-side controls.
33+[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityPortal.aspx", "TVA.Web.Embedded")]
34+[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityService.svc", "TVA.Web.Embedded")]
35+
36+// Embedd images used by embedded controls.
37+[assembly: WebResource("TVA.Web.Embedded.Images.TVALogo.png", "img/png")]
38+[assembly: WebResource("TVA.Web.Embedded.Images.Help.png", "img/png")]
39+[assembly: WebResource("TVA.Web.Embedded.Images.Warning.png", "img/png")]
Source/OldCode/Framework/Current Version/Source/Libraries/TVA.Windows/Properties/AssemblyInfo.cs+1−1
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices; · 3 unmodified lines
44 using System.Security.Permissions;
55
66 // Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
7+[assembly: AssemblyVersion("1.1.64.54531")]
88
99 // Informational attributes.
1010 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Communication.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.64.54531")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Core.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.64.54531")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Security.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.64.54531")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Services.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.64.54531")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Web.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.64.54531")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Libraries/Test/TVA.Windows.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.64.54531")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Tools/Component Installer/Properties/AssemblyInfo.cs+2−2
@@ -26,5 +26,5 @@ using System.Runtime.InteropServices; · 25 unmodified lines
2626 // You can specify all the values or you can default the Revision and Build Numbers
2727 // by using the '*' as shown below:
2828
29−[assembly: AssemblyVersion("2.1.99.0")]
30−[assembly: AssemblyFileVersion("2.1.99.0")]
29+[assembly: AssemblyVersion("1.1.64.54531")]
30+[assembly: AssemblyFileVersion("2.0.0.0")]
Source/OldCode/Framework/Current Version/Source/Tools/Component Installer/Setup/My Project/AssemblyInfo.vb+3−3
@@ -29,7 +29,7 @@ Imports System.Runtime.InteropServices · 28 unmodified lines
2929 '
3030 ' You can specify all the values or you can default the Build and Revision Numbers
3131 ' by using the '*' as shown below:
32−' <Assembly: AssemblyVersion("2.1.99.0")>
32+' <Assembly: AssemblyVersion("1.1.64.54531")>
3333
34−<Assembly: AssemblyVersion("2.1.99.0")>
35−<Assembly: AssemblyFileVersion("2.1.99.0")>
34+<Assembly: AssemblyVersion("1.1.64.54531")>
35+<Assembly: AssemblyFileVersion("1.0.0.0")>
Source/OldCode/Framework/Current Version/Source/Tools/ConfigCrypter/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("1.1.64.54531")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Tools/ConfigurationEditor/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("1.1.64.54531")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Tools/DataMigrationUtility/AssemblyInfo.vb+1−1
@@ -24,4 +24,4 @@ Imports System.Runtime.InteropServices · 23 unmodified lines
2424 ' You can specify all the values or you can default the Revision and Build Numbers
2525 ' by using the '*' as shown below
2626
27−<Assembly: AssemblyVersion("2.1.99.0")>
27+<Assembly: AssemblyVersion("1.1.64.54531")>
Source/OldCode/Framework/Current Version/Source/Tools/UDPRebroadcaster/UDPRebroadcaster/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("1.1.64.54531")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Framework/Current Version/Source/Tools/UDPRebroadcaster/UDPRebroadcasterConsole/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("1.1.64.54531")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Historian/Current Version/Source/Libraries/Hadoop.Replication/Properties/AssemblyInfo.cs+27−27
@@ -1,27 +1,27 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−using System.Security.Permissions;
5−
6−// Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
8−
9−// Informational attributes.
10−[assembly: AssemblyCompany("TVA")]
11−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12−[assembly: AssemblyProduct("openPDC Historian")]
13−
14−// Assembly manifest attributes.
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−[assembly: AssemblyDefaultAlias("Hadoop.Replication")]
21−[assembly: AssemblyDescription("Historian replication component to Hadoop.")]
22−[assembly: AssemblyTitle("Hadoop.Replication")]
23−
24−// Other configuration attributes.
25−[assembly: CLSCompliant(true)]
26−[assembly: ComVisible(false)]
27−[assembly: Guid("fbb49f9b-954b-40a7-986f-460d12cb31e9")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+using System.Security.Permissions;
5+
6+// Assembly identity attributes.
7+[assembly: AssemblyVersion("1.1.241.0")]
8+
9+// Informational attributes.
10+[assembly: AssemblyCompany("TVA")]
11+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12+[assembly: AssemblyProduct("openPDC Historian")]
13+
14+// Assembly manifest attributes.
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+[assembly: AssemblyDefaultAlias("Hadoop.Replication")]
21+[assembly: AssemblyDescription("Historian replication component to Hadoop.")]
22+[assembly: AssemblyTitle("Hadoop.Replication")]
23+
24+// Other configuration attributes.
25+[assembly: CLSCompliant(true)]
26+[assembly: ComVisible(false)]
27+[assembly: Guid("fbb49f9b-954b-40a7-986f-460d12cb31e9")]
Source/OldCode/Historian/Current Version/Source/Libraries/TVA.Historian/Properties/AssemblyInfo.cs+1−1
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices; · 3 unmodified lines
44 using System.Security.Permissions;
55
66 // Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
7+[assembly: AssemblyVersion("1.1.241.0")]
88
99 // Informational attributes.
1010 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Historian/Current Version/Source/Libraries/Test/TVA.Historian.Test/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.241.0")]
77
88 // Informational attributes.
99 [assembly: AssemblyCompany("TVA")]
Source/OldCode/Historian/Current Version/Source/Tools/HistorianPlaybackUtility/Properties/AssemblyInfo.cs+1−1
@@ -3,7 +3,7 @@ using System.Reflection; · 2 unmodified lines
33 using System.Runtime.InteropServices;
44
55 // Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
6+[assembly: AssemblyVersion("1.1.241.0")]
77
88 // Informational attributes.
99 [assembly: AssemblyTitle("HistorianPlaybackUtility")]
Source/OldCode/Historian/Current Version/Source/Tools/HistorianView/Properties/AssemblyInfo.cs+3−3
@@ -52,6 +52,6 @@ using System.Windows; · 51 unmodified lines
5252 //
5353 // You can specify all the values or you can default the Build and Revision Numbers
5454 // by using the '*' as shown below:
55−// [assembly: AssemblyVersion("2.1.99.0")]
56−[assembly: AssemblyVersion("2.1.99.0")]
57−[assembly: AssemblyFileVersion("2.1.99.0")]
55+// [assembly: AssemblyVersion("1.1.241.0")]
56+[assembly: AssemblyVersion("1.1.241.0")]
57+[assembly: AssemblyFileVersion("1.0.0.0")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Communication/Properties/AssemblyInfo.cs+26−26
@@ -1,26 +1,26 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("TVA")]
10−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11−[assembly: AssemblyProduct("TVA Code Library")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−[assembly: AssemblyDefaultAlias("TVA.Communication")]
20−[assembly: AssemblyDescription("Library of components for TCP, UDP, serial and file-based communication in an abstract fashion.")]
21−[assembly: AssemblyTitle("TVA.Communication")]
22−
23−// Other configuration attributes.
24−[assembly: CLSCompliant(true)]
25−[assembly: ComVisible(false)]
26−[assembly: Guid("fa2223ea-9782-49f1-8757-2a333a1633c2")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("4.0.4.70")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("TVA")]
10+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11+[assembly: AssemblyProduct("TVA Code Library")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+[assembly: AssemblyDefaultAlias("TVA.Communication")]
20+[assembly: AssemblyDescription("Library of components for TCP, UDP, serial and file-based communication in an abstract fashion.")]
21+[assembly: AssemblyTitle("TVA.Communication")]
22+
23+// Other configuration attributes.
24+[assembly: CLSCompliant(true)]
25+[assembly: ComVisible(false)]
26+[assembly: Guid("fa2223ea-9782-49f1-8757-2a333a1633c2")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Core/Properties/AssemblyInfo.cs+28−28
@@ -1,28 +1,28 @@
1−using System;
2−using System.Reflection;
3−using System.Resources;
4−using System.Runtime.InteropServices;
5−
6−// Assembly identity attributes.
7−[assembly: AssemblyVersion("2.1.99.0")]
8−
9−// Informational attributes.
10−[assembly: AssemblyCompany("TVA")]
11−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12−[assembly: AssemblyProduct("TVA Code Library")]
13−
14−// Assembly manifest attributes.
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−[assembly: AssemblyDefaultAlias("TVA.Core")]
21−[assembly: AssemblyDescription("Library of .NET extensions and components - adapter framework, process queue, configuration api, diagnostics, error handling, active directory, interop, checksums, ftp, mail, unit conversion, binary parsing, scheduler, ntp time, precision timer, int24, unit24, console extensions, database extensions, drawing extension, reflection extensions, xml extensions, bit extensions, buffer extensions, char extensions, data-time extensions, enum extensions, string extensions.")]
22−[assembly: AssemblyTitle("TVA.Core")]
23−
24−// Other configuration attributes.
25−[assembly: CLSCompliant(true)]
26−[assembly: ComVisible(false)]
27−[assembly: Guid("9448a8b5-35c1-4dc7-8c42-8712153ac08a")]
28−[assembly: NeutralResourcesLanguage("en-US")]
1+using System;
2+using System.Reflection;
3+using System.Resources;
4+using System.Runtime.InteropServices;
5+
6+// Assembly identity attributes.
7+[assembly: AssemblyVersion("4.0.4.70")]
8+
9+// Informational attributes.
10+[assembly: AssemblyCompany("TVA")]
11+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
12+[assembly: AssemblyProduct("TVA Code Library")]
13+
14+// Assembly manifest attributes.
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+[assembly: AssemblyDefaultAlias("TVA.Core")]
21+[assembly: AssemblyDescription("Library of .NET extensions and components - adapter framework, process queue, configuration api, diagnostics, error handling, active directory, interop, checksums, ftp, mail, unit conversion, binary parsing, scheduler, ntp time, precision timer, int24, unit24, console extensions, database extensions, drawing extension, reflection extensions, xml extensions, bit extensions, buffer extensions, char extensions, data-time extensions, enum extensions, string extensions.")]
22+[assembly: AssemblyTitle("TVA.Core")]
23+
24+// Other configuration attributes.
25+[assembly: CLSCompliant(true)]
26+[assembly: ComVisible(false)]
27+[assembly: Guid("9448a8b5-35c1-4dc7-8c42-8712153ac08a")]
28+[assembly: NeutralResourcesLanguage("en-US")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Core/Reflection/AssemblyInfo.cs+872−872
@@ -1,873 +1,873 @@
1−//*******************************************************************************************************
2−// AssemblyInfo.cs - Gbtc
3−//
4−// Tennessee Valley Authority, 2009
5−// No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
6−//
7−// This software is made freely available under the TVA Open Source Agreement (see below).
8−// Code in this file licensed to TVA under one or more contributor license agreements listed below.
9−//
10−// Code Modification History:
11−// -----------------------------------------------------------------------------------------------------
12−// 04/29/2005 - Pinal C. Patel
13−// Generated original version of source code.
14−// 12/29/2005 - Pinal C. Patel
15−// Migrated 2.0 version of source code from 1.1 source (TVA.Shared.Assembly).
16−// 12/12/2007 - Darrell Zuercher
17−// Edited Code Comments.
18−// 09/08/2008 - J. Ritchie Carroll
19−// Converted to C# as AssemblyInformation.
20−// 09/14/2009 - Stephen C. Wills
21−// Added new header and license agreement.
22−// 10/21/2009 - Pinal C. Patel
23−// Added error checking to assembly attribute properties.
24−// 09/28/2010 - Pinal C. Patel
25−// Modified EntryAssembly to perform a reflection only load of the currently executing process
26−// to deal with entry assembly not being available in non-default application domains.
27−// Changed GetCustomAttribute() to return CustomAttributeData instead of Object to deal with
28−// possible reflection only load being performed in EntryAssembly.
29−// Removed Debuggable property since it was not very useful and added complexity when extracting.
30−// 09/21/2011 - J. Ritchie Carroll
31−// Added Mono implementation exception regions.
32−//
33−//*******************************************************************************************************
34−
35−#region [ TVA Open Source Agreement ]
36−/*
37−
38− THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE,REPRODUCTION, DISTRIBUTION,
39− MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE
40− TENNESSEE VALLEY AUTHORITY, A CORPORATE AGENCY AND INSTRUMENTALITY OF THE UNITED STATES GOVERNMENT
41− ("GOVERNMENT AGENCY"). GOVERNMENT AGENCY IS AN INTENDED THIRD-PARTY BENEFICIARY OF ALL SUBSEQUENT
42− DISTRIBUTIONS OR REDISTRIBUTIONS OF THE SUBJECT SOFTWARE. ANYONE WHO USES, REPRODUCES, DISTRIBUTES,
43− MODIFIES OR REDISTRIBUTES THE SUBJECT SOFTWARE, AS DEFINED HEREIN, OR ANY PART THEREOF, IS, BY THAT
44− ACTION, ACCEPTING IN FULL THE RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS AGREEMENT.
45−
46− Original Software Designation: openPDC
47− Original Software Title: The TVA Open Source Phasor Data Concentrator
48− User Registration Requested. Please Visit https://naspi.tva.com/Registration/
49− Point of Contact for Original Software: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>
50−
51− 1. DEFINITIONS
52−
53− A. "Contributor" means Government Agency, as the developer of the Original Software, and any entity
54− that makes a Modification.
55−
56− B. "Covered Patents" mean patent claims licensable by a Contributor that are necessarily infringed by
57− the use or sale of its Modification alone or when combined with the Subject Software.
58−
59− C. "Display" means the showing of a copy of the Subject Software, either directly or by means of an
60− image, or any other device.
61−
62− D. "Distribution" means conveyance or transfer of the Subject Software, regardless of means, to
63− another.
64−
65− E. "Larger Work" means computer software that combines Subject Software, or portions thereof, with
66− software separate from the Subject Software that is not governed by the terms of this Agreement.
67−
68− F. "Modification" means any alteration of, including addition to or deletion from, the substance or
69− structure of either the Original Software or Subject Software, and includes derivative works, as that
70− term is defined in the Copyright Statute, 17 USC § 101. However, the act of including Subject Software
71− as part of a Larger Work does not in and of itself constitute a Modification.
72−
73− G. "Original Software" means the computer software first released under this Agreement by Government
74− Agency entitled openPDC, including source code, object code and accompanying documentation, if any.
75−
76− H. "Recipient" means anyone who acquires the Subject Software under this Agreement, including all
77− Contributors.
78−
79− I. "Redistribution" means Distribution of the Subject Software after a Modification has been made.
80−
81− J. "Reproduction" means the making of a counterpart, image or copy of the Subject Software.
82−
83− K. "Sale" means the exchange of the Subject Software for money or equivalent value.
84−
85− L. "Subject Software" means the Original Software, Modifications, or any respective parts thereof.
86−
87− M. "Use" means the application or employment of the Subject Software for any purpose.
88−
89− 2. GRANT OF RIGHTS
90−
91− A. Under Non-Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor,
92− with respect to its own contribution to the Subject Software, hereby grants to each Recipient a
93− non-exclusive, world-wide, royalty-free license to engage in the following activities pertaining to
94− the Subject Software:
95−
96− 1. Use
97−
98− 2. Distribution
99−
100− 3. Reproduction
101−
102− 4. Modification
103−
104− 5. Redistribution
105−
106− 6. Display
107−
108− B. Under Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor, with
109− respect to its own contribution to the Subject Software, hereby grants to each Recipient under Covered
110− Patents a non-exclusive, world-wide, royalty-free license to engage in the following activities
111− pertaining to the Subject Software:
112−
113− 1. Use
114−
115− 2. Distribution
116−
117− 3. Reproduction
118−
119− 4. Sale
120−
121− 5. Offer for Sale
122−
123− C. The rights granted under Paragraph B. also apply to the combination of a Contributor's Modification
124− and the Subject Software if, at the time the Modification is added by the Contributor, the addition of
125− such Modification causes the combination to be covered by the Covered Patents. It does not apply to
126− any other combinations that include a Modification.
127−
128− D. The rights granted in Paragraphs A. and B. allow the Recipient to sublicense those same rights.
129− Such sublicense must be under the same terms and conditions of this Agreement.
130−
131− 3. OBLIGATIONS OF RECIPIENT
132−
133− A. Distribution or Redistribution of the Subject Software must be made under this Agreement except for
134− additions covered under paragraph 3H.
135−
136− 1. Whenever a Recipient distributes or redistributes the Subject Software, a copy of this Agreement
137− must be included with each copy of the Subject Software; and
138−
139− 2. If Recipient distributes or redistributes the Subject Software in any form other than source code,
140− Recipient must also make the source code freely available, and must provide with each copy of the
141− Subject Software information on how to obtain the source code in a reasonable manner on or through a
142− medium customarily used for software exchange.
143−
144− B. Each Recipient must ensure that the following copyright notice appears prominently in the Subject
145− Software:
146−
147− No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
148−
149− C. Each Contributor must characterize its alteration of the Subject Software as a Modification and
150− must identify itself as the originator of its Modification in a manner that reasonably allows
151− subsequent Recipients to identify the originator of the Modification. In fulfillment of these
152− requirements, Contributor must include a file (e.g., a change log file) that describes the alterations
153− made and the date of the alterations, identifies Contributor as originator of the alterations, and
154− consents to characterization of the alterations as a Modification, for example, by including a
155− statement that the Modification is derived, directly or indirectly, from Original Software provided by
156− Government Agency. Once consent is granted, it may not thereafter be revoked.
157−
158− D. A Contributor may add its own copyright notice to the Subject Software. Once a copyright notice has
159− been added to the Subject Software, a Recipient may not remove it without the express permission of
160− the Contributor who added the notice.
161−
162− E. A Recipient may not make any representation in the Subject Software or in any promotional,
163− advertising or other material that may be construed as an endorsement by Government Agency or by any
164− prior Recipient of any product or service provided by Recipient, or that may seek to obtain commercial
165− advantage by the fact of Government Agency's or a prior Recipient's participation in this Agreement.
166−
167− F. In an effort to track usage and maintain accurate records of the Subject Software, each Recipient,
168− upon receipt of the Subject Software, is requested to register with Government Agency by visiting the
169− following website: https://naspi.tva.com/Registration/. Recipient's name and personal information
170− shall be used for statistical purposes only. Once a Recipient makes a Modification available, it is
171− requested that the Recipient inform Government Agency at the web site provided above how to access the
172− Modification.
173−
174− G. Each Contributor represents that that its Modification does not violate any existing agreements,
175− regulations, statutes or rules, and further that Contributor has sufficient rights to grant the rights
176− conveyed by this Agreement.
177−
178− H. A Recipient may choose to offer, and to charge a fee for, warranty, support, indemnity and/or
179− liability obligations to one or more other Recipients of the Subject Software. A Recipient may do so,
180− however, only on its own behalf and not on behalf of Government Agency or any other Recipient. Such a
181− Recipient must make it absolutely clear that any such warranty, support, indemnity and/or liability
182− obligation is offered by that Recipient alone. Further, such Recipient agrees to indemnify Government
183− Agency and every other Recipient for any liability incurred by them as a result of warranty, support,
184− indemnity and/or liability offered by such Recipient.
185−
186− I. A Recipient may create a Larger Work by combining Subject Software with separate software not
187− governed by the terms of this agreement and distribute the Larger Work as a single product. In such
188− case, the Recipient must make sure Subject Software, or portions thereof, included in the Larger Work
189− is subject to this Agreement.
190−
191− J. Notwithstanding any provisions contained herein, Recipient is hereby put on notice that export of
192− any goods or technical data from the United States may require some form of export license from the
193− U.S. Government. Failure to obtain necessary export licenses may result in criminal liability under
194− U.S. laws. Government Agency neither represents that a license shall not be required nor that, if
195− required, it shall be issued. Nothing granted herein provides any such export license.
196−
197− 4. DISCLAIMER OF WARRANTIES AND LIABILITIES; WAIVER AND INDEMNIFICATION
198−
199− A. No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER
200− EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT
201− SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
202− PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR
203− FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS
204− AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR
205− RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS
206− RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND
207− LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT
208− "AS IS."
209−
210− B. Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST GOVERNMENT AGENCY, ITS
211− AGENTS, EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE
212− OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM
213− SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE
214− SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS GOVERNMENT AGENCY, ITS AGENTS,
215− EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY
216− LAW. THE FOREGOING RELEASE AND INDEMNIFICATION SHALL APPLY EVEN IF THE LIABILITIES, DEMANDS, DAMAGES,
217− EXPENSES OR LOSSES ARE CAUSED, OCCASIONED, OR CONTRIBUTED TO BY THE NEGLIGENCE, SOLE OR CONCURRENT, OF
218− GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE
219− IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
220−
221− 5. GENERAL TERMS
222−
223− A. Termination: This Agreement and the rights granted hereunder will terminate automatically if a
224− Recipient fails to comply with these terms and conditions, and fails to cure such noncompliance within
225− thirty (30) days of becoming aware of such noncompliance. Upon termination, a Recipient agrees to
226− immediately cease use and distribution of the Subject Software. All sublicenses to the Subject
227− Software properly granted by the breaching Recipient shall survive any such termination of this
228− Agreement.
229−
230− B. Severability: If any provision of this Agreement is invalid or unenforceable under applicable law,
231− it shall not affect the validity or enforceability of the remainder of the terms of this Agreement.
232−
233− C. Applicable Law: This Agreement shall be subject to United States federal law only for all purposes,
234− including, but not limited to, determining the validity of this Agreement, the meaning of its
235− provisions and the rights, obligations and remedies of the parties.
236−
237− D. Entire Understanding: This Agreement constitutes the entire understanding and agreement of the
238− parties relating to release of the Subject Software and may not be superseded, modified or amended
239− except by further written agreement duly executed by the parties.
240−
241− E. Binding Authority: By accepting and using the Subject Software under this Agreement, a Recipient
242− affirms its authority to bind the Recipient to all terms and conditions of this Agreement and that
243− Recipient hereby agrees to all terms and conditions herein.
244−
245− F. Point of Contact: Any Recipient contact with Government Agency is to be directed to the designated
246− representative as follows: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>.
247−
248−*/
249−#endregion
250−
251−#region [ Contributor License Agreements ]
252−
253−//******************************************************************************************************
254−//
255−// Copyright © 2011, Grid Protection Alliance. All Rights Reserved.
256−//
257−// The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may
258−// not use this file except in compliance with the License. You may obtain a copy of the License at:
259−//
260−// http://www.opensource.org/licenses/eclipse-1.0.php
261−//
262−// Unless agreed to in writing, the subject software distributed under the License is distributed on an
263−// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
264−// License for the specific language governing permissions and limitations.
265−//
266−//******************************************************************************************************
267−
268−#endregion
269−
270−using System;
271−using System.Collections.Generic;
272−using System.Collections.Specialized;
273−using System.Diagnostics;
274−using System.IO;
275−using System.Linq;
276−using System.Reflection;
277−using System.Resources;
278−using System.Runtime.InteropServices;
279−using System.Security.Permissions;
280−using TVA.IO;
281−
282−namespace TVA.Reflection
283−{
284− /// <summary>Assembly Information Class.</summary>
285− public class AssemblyInfo
286− {
287− #region [ Members ]
288−
289− // Fields
290− private Assembly m_assemblyInstance;
291−
292− #endregion
293−
294− #region [ Constructors ]
295−
296− /// <summary>Initializes a new instance of the <see cref="AssemblyInfo"/> class.</summary>
297− /// <param name="assemblyInstance">An <see cref="Assembly"/> object.</param>
298− public AssemblyInfo(Assembly assemblyInstance)
299− {
300− m_assemblyInstance = assemblyInstance;
301− }
302−
303− #endregion
304−
305− #region [ Properties ]
306−
307− /// <summary>
308− /// Gets the underlying <see cref="Assembly"/> being represented by this <see cref="AssemblyInfo"/> object.
309− /// </summary>
310− public Assembly Assembly
311− {
312− get
313− {
314− return m_assemblyInstance;
315− }
316− }
317−
318− /// <summary>
319− /// Gets the title information of the <see cref="Assembly"/>.
320− /// </summary>
321− public string Title
322− {
323− get
324− {
325− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyTitleAttribute));
326− if ((object)attribute == null)
327− return string.Empty;
328− else
329− return (string)attribute.ConstructorArguments[0].Value;
330− }
331− }
332−
333− /// <summary>
334− /// Gets the description information of the <see cref="Assembly"/>.
335− /// </summary>
336− public string Description
337− {
338− get
339− {
340− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyDescriptionAttribute));
341− if ((object)attribute == null)
342− return string.Empty;
343− else
344− return (string)attribute.ConstructorArguments[0].Value;
345− }
346− }
347−
348− /// <summary>
349− /// Gets the company name information of the <see cref="Assembly"/>.
350− /// </summary>
351− public string Company
352− {
353− get
354− {
355− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyCompanyAttribute));
356− if ((object)attribute == null)
357− return string.Empty;
358− else
359− return (string)attribute.ConstructorArguments[0].Value;
360− }
361− }
362−
363− /// <summary>
364− /// Gets the product name information of the <see cref="Assembly"/>.
365− /// </summary>
366− public string Product
367− {
368− get
369− {
370− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyProductAttribute));
371− if ((object)attribute == null)
372− return string.Empty;
373− else
374− return (string)attribute.ConstructorArguments[0].Value;
375− }
376− }
377−
378− /// <summary>
379− /// Gets the copyright information of the <see cref="Assembly"/>.
380− /// </summary>
381− public string Copyright
382− {
383− get
384− {
385− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyCopyrightAttribute));
386− if ((object)attribute == null)
387− return string.Empty;
388− else
389− return (string)attribute.ConstructorArguments[0].Value;
390− }
391− }
392−
393− /// <summary>
394− /// Gets the trademark information of the <see cref="Assembly"/>.
395− /// </summary>
396− public string Trademark
397− {
398− get
399− {
400− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyTrademarkAttribute));
401− if ((object)attribute == null)
402− return string.Empty;
403− else
404− return (string)attribute.ConstructorArguments[0].Value;
405− }
406− }
407−
408− /// <summary>
409− /// Gets the configuration information of the <see cref="Assembly"/>.
410− /// </summary>
411− public string Configuration
412− {
413− get
414− {
415− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyConfigurationAttribute));
416− if ((object)attribute == null)
417− return string.Empty;
418− else
419− return (string)attribute.ConstructorArguments[0].Value;
420− }
421− }
422−
423− /// <summary>
424− /// Gets a boolean value indicating if the <see cref="Assembly"/> has been built as delay-signed.
425− /// </summary>
426− public bool DelaySign
427− {
428− get
429− {
430− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyDelaySignAttribute));
431− if ((object)attribute == null)
432− return false;
433− else
434− return (bool)attribute.ConstructorArguments[0].Value;
435− }
436− }
437−
438− /// <summary>
439− /// Gets the version information of the <see cref="Assembly"/>.
440− /// </summary>
441− public string InformationalVersion
442− {
443− get
444− {
445− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyInformationalVersionAttribute));
446− if ((object)attribute == null)
447− return string.Empty;
448− else
449− return (string)attribute.ConstructorArguments[0].Value;
450− }
451− }
452−
453− /// <summary>
454− /// Gets the name of the file containing the key pair used to generate a strong name for the attributed <see cref="Assembly"/>.
455− /// </summary>
456− public string KeyFile
457− {
458− get
459− {
460− CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyKeyFileAttribute));
461− if ((object)attribute == null)
462− return string.Empty;
463− else
464− return (string)attribute.ConstructorArguments[0].Value;
465− }
466− }
467−
468− /// <summary>
469− /// Gets the culture name of the <see cref="Assembly"/>.
470− /// </summary>
471− public string CultureName
472− {
473− get
474− {
475− CustomAttributeData attribute = GetCustomAttribute(typeof(NeutralResourcesLanguageAttribute));
476− if ((object)attribute == null)
477− return string.Empty;
478− else
479− return (string)attribute.ConstructorArguments[0].Value;
480− }
481− }
482−
483− /// <summary>
484− /// Gets the assembly version used to instruct the System.Resources.ResourceManager to ask for a particular
485− /// version of a satellite assembly to simplify updates of the main assembly of an application.
486− /// </summary>
487− public string SatelliteContractVersion
488− {
489− get
490− {
491− CustomAttributeData attribute = GetCustomAttribute(typeof(SatelliteContractVersionAttribute));
492− if ((object)attribute == null)
493− return string.Empty;
494− else
495− return (string)attribute.ConstructorArguments[0].Value;
496− }
497− }
498−
499− /// <summary>
500− /// Gets the string representing the assembly version used to indicate to a COM client that all classes
501− /// in the current version of the assembly are compatible with classes in an earlier version of the assembly.
502− /// </summary>
503− public string ComCompatibleVersion
504− {
505− get
506− {
507− CustomAttributeData attribute = GetCustomAttribute(typeof(ComCompatibleVersionAttribute));
508− if ((object)attribute == null)
509− return string.Empty;
510− else
511− return attribute.ConstructorArguments[0].Value.ToString() + "." +
512− attribute.ConstructorArguments[1].Value.ToString() + "." +
513− attribute.ConstructorArguments[2].Value.ToString() + "." +
514− attribute.ConstructorArguments[3].Value.ToString();
515− }
516− }
517−
518− /// <summary>
519− /// Gets a boolean value indicating if the <see cref="Assembly"/> is exposed to COM.
520− /// </summary>
521− public bool ComVisible
522− {
523− get
524− {
525− CustomAttributeData attribute = GetCustomAttribute(typeof(ComVisibleAttribute));
526− if ((object)attribute == null)
527− return false;
528− else
529− return (bool)attribute.ConstructorArguments[0].Value;
530− }
531− }
532−
533− /// <summary>
534− /// Gets the GUID that is used as an ID if the <see cref="Assembly"/> is exposed to COM.
535− /// </summary>
536− public string Guid
537− {
538− get
539− {
540− CustomAttributeData attribute = GetCustomAttribute(typeof(GuidAttribute));
541− if ((object)attribute == null)
542− return string.Empty;
543− else
544− return (string)attribute.ConstructorArguments[0].Value;
545− }
546− }
547−
548− /// <summary>
549− /// Gets the string representing the <see cref="Assembly"/> version number in MajorVersion.MinorVersion format.
550− /// </summary>
551− public string TypeLibVersion
552− {
553− get
554− {
555− CustomAttributeData attribute = GetCustomAttribute(typeof(TypeLibVersionAttribute));
556− if ((object)attribute == null)
557− return string.Empty;
558− else
559− return attribute.ConstructorArguments[0].Value.ToString() + "." +
560− attribute.ConstructorArguments[1].Value.ToString();
561− }
562− }
563−
564− /// <summary>
565− /// Gets a boolean value indicating whether the <see cref="Assembly"/> is CLS-compliant.
566− /// </summary>
567− public bool CLSCompliant
568− {
569− get
570− {
571− CustomAttributeData attribute = GetCustomAttribute(typeof(CLSCompliantAttribute));
572− if ((object)attribute == null)
573− return false;
574− else
575− return (bool)attribute.ConstructorArguments[0].Value;
576− }
577− }
578−
579− /// <summary>
580− /// Gets the path or UNC location of the loaded file that contains the manifest.
581− /// </summary>
582− public string Location
583− {
584− get
585− {
586− return m_assemblyInstance.Location.ToLower();
587− }
588− }
589−
590− /// <summary>
591− /// Gets the location of the <see cref="Assembly"/> as specified originally.
592− /// </summary>
593− public string CodeBase
594− {
595− get
596− {
597− return m_assemblyInstance.CodeBase.Replace("file:///", "").ToLower();
598− }
599− }
600−
601− /// <summary>
602− /// Gets the display name of the <see cref="Assembly"/>.
603− /// </summary>
604− public string FullName
605− {
606− get
607− {
608− return m_assemblyInstance.FullName;
609− }
610− }
611−
612− /// <summary>
613− /// Gets the simple, unencrypted name of the <see cref="Assembly"/>.
614− /// </summary>
615− public string Name
616− {
617− get
618− {
619− return m_assemblyInstance.GetName().Name;
620− }
621− }
622−
623− /// <summary>
624− /// Gets the major, minor, revision, and build numbers of the <see cref="Assembly"/>.
625− /// </summary>
626− public Version Version
627− {
628− get
629− {
630− return m_assemblyInstance.GetName().Version;
631− }
632− }
633−
634− /// <summary>
635− /// Gets the string representing the version of the common language runtime (CLR) saved in the file
636− /// containing the manifest.
637− /// </summary>
638− public string ImageRuntimeVersion
639− {
640− get
641− {
642− return m_assemblyInstance.ImageRuntimeVersion;
643− }
644− }
645−
646− /// <summary>
647− /// Gets a boolean value indicating whether the <see cref="Assembly"/> was loaded from the global assembly cache.
648− /// </summary>
649− public bool GACLoaded
650− {
651− get
652− {
653− return m_assemblyInstance.GlobalAssemblyCache;
654− }
655− }
656−
657− /// <summary>
658− /// Gets the date and time when the <see cref="Assembly"/> was built.
659− /// </summary>
660− public DateTime BuildDate
661− {
662− get
663− {
664− return File.GetLastWriteTime(m_assemblyInstance.Location);
665− }
666− }
667−
668− /// <summary>
669− /// Gets the root namespace of the <see cref="Assembly"/>.
670− /// </summary>
671− public string RootNamespace
672− {
673− get
674− {
675− return m_assemblyInstance.GetExportedTypes()[0].Namespace;
676− }
677− }
678−
679− #endregion
680−
681− #region [ Methods ]
682−
683− /// <summary>Gets a collection of assembly attributes exposed by the assembly.</summary>
684− /// <returns>A System.Specialized.KeyValueCollection of assembly attributes.</returns>
685− public NameValueCollection GetAttributes()
686− {
687− NameValueCollection assemblyAttributes = new NameValueCollection();
688−
689− //Add some values that are not in AssemblyInfo.
690− assemblyAttributes.Add("Full Name", FullName);
691− assemblyAttributes.Add("Name", Name);
692− assemblyAttributes.Add("Version", Version.ToString());
693− assemblyAttributes.Add("Image Runtime Version", ImageRuntimeVersion);
694− assemblyAttributes.Add("Build Date", BuildDate.ToString());
695− assemblyAttributes.Add("Location", Location);
696− assemblyAttributes.Add("Code Base", CodeBase);
697− assemblyAttributes.Add("GAC Loaded", GACLoaded.ToString());
698−
699− //Add all attributes available from AssemblyInfo.
700− assemblyAttributes.Add("Title", Title);
701− assemblyAttributes.Add("Description", Description);
702− assemblyAttributes.Add("Company", Company);
703− assemblyAttributes.Add("Product", Product);
704− assemblyAttributes.Add("Copyright", Copyright);
705− assemblyAttributes.Add("Trademark", Trademark);
706− assemblyAttributes.Add("Configuration", Configuration);
707− assemblyAttributes.Add("Delay Sign", DelaySign.ToString());
708− assemblyAttributes.Add("Informational Version", InformationalVersion);
709− assemblyAttributes.Add("Key File", KeyFile);
710− assemblyAttributes.Add("Culture Name", CultureName);
711− assemblyAttributes.Add("Satellite Contract Version", SatelliteContractVersion);
712− assemblyAttributes.Add("Com Compatible Version", ComCompatibleVersion);
713− assemblyAttributes.Add("Com Visible", ComVisible.ToString());
714− assemblyAttributes.Add("Guid", Guid);
715− assemblyAttributes.Add("Type Lib Version", TypeLibVersion);
716− assemblyAttributes.Add("CLS Compliant", CLSCompliant.ToString());
717−
718− return assemblyAttributes;
719− }
720−
721− /// <summary>Gets the specified assembly attribute if it is exposed by the assembly.</summary>
722− /// <param name="attributeType">Type of the attribute to get.</param>
723− /// <returns>The requested assembly attribute if it exists; otherwise null.</returns>
724− /// <remarks>
725− /// This method always returns <c>null</c> under Mono deployments.
726− /// </remarks>
727− public CustomAttributeData GetCustomAttribute(Type attributeType)
728− {
729−#if MONO
730− return null;
731−#else
732− //Returns the requested assembly attribute.
733− return m_assemblyInstance.GetCustomAttributesData().FirstOrDefault(assemblyAttribute => assemblyAttribute.Constructor.DeclaringType == attributeType);
734−#endif
735− }
736−
737− /// <summary>Gets the specified embedded resource from the assembly.</summary>
738− /// <param name="resourceName">The full name (including the namespace) of the embedded resource to get.</param>
739− /// <returns>The embedded resource.</returns>
740− public Stream GetEmbeddedResource(string resourceName)
741− {
742− //Extracts and returns the requested embedded resource.
743− return m_assemblyInstance.GetEmbeddedResource(resourceName);
744− }
745−
746− #endregion
747−
748− #region [ Static ]
749−
750− // Static Fields
751− private static AssemblyInfo s_callingAssembly;
752− private static AssemblyInfo s_entryAssembly;
753− private static AssemblyInfo s_executingAssembly;
754− private static Dictionary<string, Assembly> s_assemblyCache;
755− private static bool s_addedResolver;
756−
757− // Static Properties
758−
759− /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that invoked the currently executing method.</summary>
760− public static AssemblyInfo CallingAssembly
761− {
762− get
763− {
764− if ((object)s_callingAssembly == null)
765− {
766− // We have to find the calling assembly of the caller.
767− StackTrace trace = new StackTrace();
768− Assembly caller = Assembly.GetCallingAssembly();
769− Assembly current = Assembly.GetExecutingAssembly();
770− foreach (StackFrame frame in trace.GetFrames())
771− {
772− Assembly assembly = Assembly.GetAssembly(frame.GetMethod().DeclaringType);
773− if (assembly != caller && assembly != current)
774− {
775− // Assembly is neither the current assembly or the calling assembly.
776− s_callingAssembly = new AssemblyInfo(assembly);
777− break;
778− }
779− }
780− }
781−
782− return s_callingAssembly;
783− }
784− }
785−
786− /// <summary>Gets the <see cref="AssemblyInfo"/> object of the process executable in the default application domain.</summary>
787− public static AssemblyInfo EntryAssembly
788− {
789− get
790− {
791− if ((object)s_entryAssembly == null)
792− {
793− Assembly entryAssembly = Assembly.GetEntryAssembly();
794− if ((object)entryAssembly == null)
795− entryAssembly = Assembly.ReflectionOnlyLoadFrom(Process.GetCurrentProcess().MainModule.FileName);
796−
797− s_entryAssembly = new AssemblyInfo(entryAssembly);
798− }
799−
800− return s_entryAssembly;
801− }
802− }
803−
804− /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that contains the code that is currently executing.</summary>
805− public static AssemblyInfo ExecutingAssembly
806− {
807− get
808− {
809− if ((object)s_executingAssembly == null)
810− // Caller's assembly will be the executing assembly for the caller.
811− s_executingAssembly = new AssemblyInfo(Assembly.GetCallingAssembly());
812−
813− return s_executingAssembly;
814− }
815− }
816−
817− // Static Methods
818−
819− /// <summary>Loads the specified assembly that is embedded as a resource in the assembly.</summary>
820− /// <param name="assemblyName">Name of the assembly to load.</param>
821− /// <remarks>This cannot be used to load TVA.Core itself.</remarks>
822− [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.ControlAppDomain)]
823− public static void LoadAssemblyFromResource(string assemblyName)
824− {
825− // Hooks into assembly resolve event for current domain so it can load assembly from embedded resource.
826− if (!s_addedResolver)
827− {
828− AppDomain.CurrentDomain.AssemblyResolve += ResolveAssemblyFromResource;
829− s_addedResolver = true;
830− }
831−
832− // Loads the assembly (This will invoke event that will resolve assembly from resource.).
833− AppDomain.CurrentDomain.Load(assemblyName);
834− }
835−
836− private static Assembly ResolveAssemblyFromResource(object sender, ResolveEventArgs e)
837− {
838− Assembly resourceAssembly;
839− string shortName = e.Name.Split(',')[0];
840−
841− if ((object)s_assemblyCache == null)
842− s_assemblyCache = new Dictionary<string, Assembly>();
843−
844− resourceAssembly = s_assemblyCache[shortName];
845−
846− if ((object)resourceAssembly == null)
847− {
848− // Loops through all of the resources in the executing assembly.
849− foreach (string name in Assembly.GetEntryAssembly().GetManifestResourceNames())
850− {
851− // Sees if the embedded resource name matches the assembly it is trying to load.
852− if (string.Compare(FilePath.GetFileNameWithoutExtension(name), EntryAssembly.RootNamespace + "." + shortName, true) == 0)
853− {
854− // If so, loads embedded resource assembly into a binary buffer.
855− System.IO.Stream resourceStream = Assembly.GetEntryAssembly().GetManifestResourceStream(name);
856− byte[] buffer = new byte[resourceStream.Length];
857− resourceStream.Read(buffer, 0, (int)resourceStream.Length);
858− resourceStream.Close();
859−
860− // Loads assembly from binary buffer.
861− resourceAssembly = Assembly.Load(buffer);
862− s_assemblyCache.Add(shortName, resourceAssembly);
863− break;
864− }
865− }
866− }
867−
868− return resourceAssembly;
869− }
870−
871− #endregion
872− }
1+//*******************************************************************************************************
2+// AssemblyInfo.cs - Gbtc
3+//
4+// Tennessee Valley Authority, 2009
5+// No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
6+//
7+// This software is made freely available under the TVA Open Source Agreement (see below).
8+// Code in this file licensed to TVA under one or more contributor license agreements listed below.
9+//
10+// Code Modification History:
11+// -----------------------------------------------------------------------------------------------------
12+// 04/29/2005 - Pinal C. Patel
13+// Generated original version of source code.
14+// 12/29/2005 - Pinal C. Patel
15+// Migrated 2.0 version of source code from 1.1 source (TVA.Shared.Assembly).
16+// 12/12/2007 - Darrell Zuercher
17+// Edited Code Comments.
18+// 09/08/2008 - J. Ritchie Carroll
19+// Converted to C# as AssemblyInformation.
20+// 09/14/2009 - Stephen C. Wills
21+// Added new header and license agreement.
22+// 10/21/2009 - Pinal C. Patel
23+// Added error checking to assembly attribute properties.
24+// 09/28/2010 - Pinal C. Patel
25+// Modified EntryAssembly to perform a reflection only load of the currently executing process
26+// to deal with entry assembly not being available in non-default application domains.
27+// Changed GetCustomAttribute() to return CustomAttributeData instead of Object to deal with
28+// possible reflection only load being performed in EntryAssembly.
29+// Removed Debuggable property since it was not very useful and added complexity when extracting.
30+// 09/21/2011 - J. Ritchie Carroll
31+// Added Mono implementation exception regions.
32+//
33+//*******************************************************************************************************
34+
35+#region [ TVA Open Source Agreement ]
36+/*
37+
38+ THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE,REPRODUCTION, DISTRIBUTION,
39+ MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE
40+ TENNESSEE VALLEY AUTHORITY, A CORPORATE AGENCY AND INSTRUMENTALITY OF THE UNITED STATES GOVERNMENT
41+ ("GOVERNMENT AGENCY"). GOVERNMENT AGENCY IS AN INTENDED THIRD-PARTY BENEFICIARY OF ALL SUBSEQUENT
42+ DISTRIBUTIONS OR REDISTRIBUTIONS OF THE SUBJECT SOFTWARE. ANYONE WHO USES, REPRODUCES, DISTRIBUTES,
43+ MODIFIES OR REDISTRIBUTES THE SUBJECT SOFTWARE, AS DEFINED HEREIN, OR ANY PART THEREOF, IS, BY THAT
44+ ACTION, ACCEPTING IN FULL THE RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS AGREEMENT.
45+
46+ Original Software Designation: openPDC
47+ Original Software Title: The TVA Open Source Phasor Data Concentrator
48+ User Registration Requested. Please Visit https://naspi.tva.com/Registration/
49+ Point of Contact for Original Software: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>
50+
51+ 1. DEFINITIONS
52+
53+ A. "Contributor" means Government Agency, as the developer of the Original Software, and any entity
54+ that makes a Modification.
55+
56+ B. "Covered Patents" mean patent claims licensable by a Contributor that are necessarily infringed by
57+ the use or sale of its Modification alone or when combined with the Subject Software.
58+
59+ C. "Display" means the showing of a copy of the Subject Software, either directly or by means of an
60+ image, or any other device.
61+
62+ D. "Distribution" means conveyance or transfer of the Subject Software, regardless of means, to
63+ another.
64+
65+ E. "Larger Work" means computer software that combines Subject Software, or portions thereof, with
66+ software separate from the Subject Software that is not governed by the terms of this Agreement.
67+
68+ F. "Modification" means any alteration of, including addition to or deletion from, the substance or
69+ structure of either the Original Software or Subject Software, and includes derivative works, as that
70+ term is defined in the Copyright Statute, 17 USC § 101. However, the act of including Subject Software
71+ as part of a Larger Work does not in and of itself constitute a Modification.
72+
73+ G. "Original Software" means the computer software first released under this Agreement by Government
74+ Agency entitled openPDC, including source code, object code and accompanying documentation, if any.
75+
76+ H. "Recipient" means anyone who acquires the Subject Software under this Agreement, including all
77+ Contributors.
78+
79+ I. "Redistribution" means Distribution of the Subject Software after a Modification has been made.
80+
81+ J. "Reproduction" means the making of a counterpart, image or copy of the Subject Software.
82+
83+ K. "Sale" means the exchange of the Subject Software for money or equivalent value.
84+
85+ L. "Subject Software" means the Original Software, Modifications, or any respective parts thereof.
86+
87+ M. "Use" means the application or employment of the Subject Software for any purpose.
88+
89+ 2. GRANT OF RIGHTS
90+
91+ A. Under Non-Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor,
92+ with respect to its own contribution to the Subject Software, hereby grants to each Recipient a
93+ non-exclusive, world-wide, royalty-free license to engage in the following activities pertaining to
94+ the Subject Software:
95+
96+ 1. Use
97+
98+ 2. Distribution
99+
100+ 3. Reproduction
101+
102+ 4. Modification
103+
104+ 5. Redistribution
105+
106+ 6. Display
107+
108+ B. Under Patent Rights: Subject to the terms and conditions of this Agreement, each Contributor, with
109+ respect to its own contribution to the Subject Software, hereby grants to each Recipient under Covered
110+ Patents a non-exclusive, world-wide, royalty-free license to engage in the following activities
111+ pertaining to the Subject Software:
112+
113+ 1. Use
114+
115+ 2. Distribution
116+
117+ 3. Reproduction
118+
119+ 4. Sale
120+
121+ 5. Offer for Sale
122+
123+ C. The rights granted under Paragraph B. also apply to the combination of a Contributor's Modification
124+ and the Subject Software if, at the time the Modification is added by the Contributor, the addition of
125+ such Modification causes the combination to be covered by the Covered Patents. It does not apply to
126+ any other combinations that include a Modification.
127+
128+ D. The rights granted in Paragraphs A. and B. allow the Recipient to sublicense those same rights.
129+ Such sublicense must be under the same terms and conditions of this Agreement.
130+
131+ 3. OBLIGATIONS OF RECIPIENT
132+
133+ A. Distribution or Redistribution of the Subject Software must be made under this Agreement except for
134+ additions covered under paragraph 3H.
135+
136+ 1. Whenever a Recipient distributes or redistributes the Subject Software, a copy of this Agreement
137+ must be included with each copy of the Subject Software; and
138+
139+ 2. If Recipient distributes or redistributes the Subject Software in any form other than source code,
140+ Recipient must also make the source code freely available, and must provide with each copy of the
141+ Subject Software information on how to obtain the source code in a reasonable manner on or through a
142+ medium customarily used for software exchange.
143+
144+ B. Each Recipient must ensure that the following copyright notice appears prominently in the Subject
145+ Software:
146+
147+ No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.
148+
149+ C. Each Contributor must characterize its alteration of the Subject Software as a Modification and
150+ must identify itself as the originator of its Modification in a manner that reasonably allows
151+ subsequent Recipients to identify the originator of the Modification. In fulfillment of these
152+ requirements, Contributor must include a file (e.g., a change log file) that describes the alterations
153+ made and the date of the alterations, identifies Contributor as originator of the alterations, and
154+ consents to characterization of the alterations as a Modification, for example, by including a
155+ statement that the Modification is derived, directly or indirectly, from Original Software provided by
156+ Government Agency. Once consent is granted, it may not thereafter be revoked.
157+
158+ D. A Contributor may add its own copyright notice to the Subject Software. Once a copyright notice has
159+ been added to the Subject Software, a Recipient may not remove it without the express permission of
160+ the Contributor who added the notice.
161+
162+ E. A Recipient may not make any representation in the Subject Software or in any promotional,
163+ advertising or other material that may be construed as an endorsement by Government Agency or by any
164+ prior Recipient of any product or service provided by Recipient, or that may seek to obtain commercial
165+ advantage by the fact of Government Agency's or a prior Recipient's participation in this Agreement.
166+
167+ F. In an effort to track usage and maintain accurate records of the Subject Software, each Recipient,
168+ upon receipt of the Subject Software, is requested to register with Government Agency by visiting the
169+ following website: https://naspi.tva.com/Registration/. Recipient's name and personal information
170+ shall be used for statistical purposes only. Once a Recipient makes a Modification available, it is
171+ requested that the Recipient inform Government Agency at the web site provided above how to access the
172+ Modification.
173+
174+ G. Each Contributor represents that that its Modification does not violate any existing agreements,
175+ regulations, statutes or rules, and further that Contributor has sufficient rights to grant the rights
176+ conveyed by this Agreement.
177+
178+ H. A Recipient may choose to offer, and to charge a fee for, warranty, support, indemnity and/or
179+ liability obligations to one or more other Recipients of the Subject Software. A Recipient may do so,
180+ however, only on its own behalf and not on behalf of Government Agency or any other Recipient. Such a
181+ Recipient must make it absolutely clear that any such warranty, support, indemnity and/or liability
182+ obligation is offered by that Recipient alone. Further, such Recipient agrees to indemnify Government
183+ Agency and every other Recipient for any liability incurred by them as a result of warranty, support,
184+ indemnity and/or liability offered by such Recipient.
185+
186+ I. A Recipient may create a Larger Work by combining Subject Software with separate software not
187+ governed by the terms of this agreement and distribute the Larger Work as a single product. In such
188+ case, the Recipient must make sure Subject Software, or portions thereof, included in the Larger Work
189+ is subject to this Agreement.
190+
191+ J. Notwithstanding any provisions contained herein, Recipient is hereby put on notice that export of
192+ any goods or technical data from the United States may require some form of export license from the
193+ U.S. Government. Failure to obtain necessary export licenses may result in criminal liability under
194+ U.S. laws. Government Agency neither represents that a license shall not be required nor that, if
195+ required, it shall be issued. Nothing granted herein provides any such export license.
196+
197+ 4. DISCLAIMER OF WARRANTIES AND LIABILITIES; WAIVER AND INDEMNIFICATION
198+
199+ A. No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, EITHER
200+ EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SUBJECT
201+ SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
202+ PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL BE ERROR
203+ FREE, OR ANY WARRANTY THAT DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE. THIS
204+ AGREEMENT DOES NOT, IN ANY MANNER, CONSTITUTE AN ENDORSEMENT BY GOVERNMENT AGENCY OR ANY PRIOR
205+ RECIPIENT OF ANY RESULTS, RESULTING DESIGNS, HARDWARE, SOFTWARE PRODUCTS OR ANY OTHER APPLICATIONS
206+ RESULTING FROM USE OF THE SUBJECT SOFTWARE. FURTHER, GOVERNMENT AGENCY DISCLAIMS ALL WARRANTIES AND
207+ LIABILITIES REGARDING THIRD-PARTY SOFTWARE, IF PRESENT IN THE ORIGINAL SOFTWARE, AND DISTRIBUTES IT
208+ "AS IS."
209+
210+ B. Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST GOVERNMENT AGENCY, ITS
211+ AGENTS, EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE
212+ OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM
213+ SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE
214+ SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS GOVERNMENT AGENCY, ITS AGENTS,
215+ EMPLOYEES, CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY
216+ LAW. THE FOREGOING RELEASE AND INDEMNIFICATION SHALL APPLY EVEN IF THE LIABILITIES, DEMANDS, DAMAGES,
217+ EXPENSES OR LOSSES ARE CAUSED, OCCASIONED, OR CONTRIBUTED TO BY THE NEGLIGENCE, SOLE OR CONCURRENT, OF
218+ GOVERNMENT AGENCY OR ANY PRIOR RECIPIENT. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE
219+ IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
220+
221+ 5. GENERAL TERMS
222+
223+ A. Termination: This Agreement and the rights granted hereunder will terminate automatically if a
224+ Recipient fails to comply with these terms and conditions, and fails to cure such noncompliance within
225+ thirty (30) days of becoming aware of such noncompliance. Upon termination, a Recipient agrees to
226+ immediately cease use and distribution of the Subject Software. All sublicenses to the Subject
227+ Software properly granted by the breaching Recipient shall survive any such termination of this
228+ Agreement.
229+
230+ B. Severability: If any provision of this Agreement is invalid or unenforceable under applicable law,
231+ it shall not affect the validity or enforceability of the remainder of the terms of this Agreement.
232+
233+ C. Applicable Law: This Agreement shall be subject to United States federal law only for all purposes,
234+ including, but not limited to, determining the validity of this Agreement, the meaning of its
235+ provisions and the rights, obligations and remedies of the parties.
236+
237+ D. Entire Understanding: This Agreement constitutes the entire understanding and agreement of the
238+ parties relating to release of the Subject Software and may not be superseded, modified or amended
239+ except by further written agreement duly executed by the parties.
240+
241+ E. Binding Authority: By accepting and using the Subject Software under this Agreement, a Recipient
242+ affirms its authority to bind the Recipient to all terms and conditions of this Agreement and that
243+ Recipient hereby agrees to all terms and conditions herein.
244+
245+ F. Point of Contact: Any Recipient contact with Government Agency is to be directed to the designated
246+ representative as follows: J. Ritchie Carroll <mailto:jrcarrol@tva.gov>.
247+
248+*/
249+#endregion
250+
251+#region [ Contributor License Agreements ]
252+
253+//******************************************************************************************************
254+//
255+// Copyright © 2011, Grid Protection Alliance. All Rights Reserved.
256+//
257+// The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may
258+// not use this file except in compliance with the License. You may obtain a copy of the License at:
259+//
260+// http://www.opensource.org/licenses/eclipse-1.0.php
261+//
262+// Unless agreed to in writing, the subject software distributed under the License is distributed on an
263+// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
264+// License for the specific language governing permissions and limitations.
265+//
266+//******************************************************************************************************
267+
268+#endregion
269+
270+using System;
271+using System.Collections.Generic;
272+using System.Collections.Specialized;
273+using System.Diagnostics;
274+using System.IO;
275+using System.Linq;
276+using System.Reflection;
277+using System.Resources;
278+using System.Runtime.InteropServices;
279+using System.Security.Permissions;
280+using TVA.IO;
281+
282+namespace TVA.Reflection
283+{
284+ /// <summary>Assembly Information Class.</summary>
285+ public class AssemblyInfo
286+ {
287+ #region [ Members ]
288+
289+ // Fields
290+ private Assembly m_assemblyInstance;
291+
292+ #endregion
293+
294+ #region [ Constructors ]
295+
296+ /// <summary>Initializes a new instance of the <see cref="AssemblyInfo"/> class.</summary>
297+ /// <param name="assemblyInstance">An <see cref="Assembly"/> object.</param>
298+ public AssemblyInfo(Assembly assemblyInstance)
299+ {
300+ m_assemblyInstance = assemblyInstance;
301+ }
302+
303+ #endregion
304+
305+ #region [ Properties ]
306+
307+ /// <summary>
308+ /// Gets the underlying <see cref="Assembly"/> being represented by this <see cref="AssemblyInfo"/> object.
309+ /// </summary>
310+ public Assembly Assembly
311+ {
312+ get
313+ {
314+ return m_assemblyInstance;
315+ }
316+ }
317+
318+ /// <summary>
319+ /// Gets the title information of the <see cref="Assembly"/>.
320+ /// </summary>
321+ public string Title
322+ {
323+ get
324+ {
325+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyTitleAttribute));
326+ if ((object)attribute == null)
327+ return string.Empty;
328+ else
329+ return (string)attribute.ConstructorArguments[0].Value;
330+ }
331+ }
332+
333+ /// <summary>
334+ /// Gets the description information of the <see cref="Assembly"/>.
335+ /// </summary>
336+ public string Description
337+ {
338+ get
339+ {
340+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyDescriptionAttribute));
341+ if ((object)attribute == null)
342+ return string.Empty;
343+ else
344+ return (string)attribute.ConstructorArguments[0].Value;
345+ }
346+ }
347+
348+ /// <summary>
349+ /// Gets the company name information of the <see cref="Assembly"/>.
350+ /// </summary>
351+ public string Company
352+ {
353+ get
354+ {
355+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyCompanyAttribute));
356+ if ((object)attribute == null)
357+ return string.Empty;
358+ else
359+ return (string)attribute.ConstructorArguments[0].Value;
360+ }
361+ }
362+
363+ /// <summary>
364+ /// Gets the product name information of the <see cref="Assembly"/>.
365+ /// </summary>
366+ public string Product
367+ {
368+ get
369+ {
370+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyProductAttribute));
371+ if ((object)attribute == null)
372+ return string.Empty;
373+ else
374+ return (string)attribute.ConstructorArguments[0].Value;
375+ }
376+ }
377+
378+ /// <summary>
379+ /// Gets the copyright information of the <see cref="Assembly"/>.
380+ /// </summary>
381+ public string Copyright
382+ {
383+ get
384+ {
385+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyCopyrightAttribute));
386+ if ((object)attribute == null)
387+ return string.Empty;
388+ else
389+ return (string)attribute.ConstructorArguments[0].Value;
390+ }
391+ }
392+
393+ /// <summary>
394+ /// Gets the trademark information of the <see cref="Assembly"/>.
395+ /// </summary>
396+ public string Trademark
397+ {
398+ get
399+ {
400+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyTrademarkAttribute));
401+ if ((object)attribute == null)
402+ return string.Empty;
403+ else
404+ return (string)attribute.ConstructorArguments[0].Value;
405+ }
406+ }
407+
408+ /// <summary>
409+ /// Gets the configuration information of the <see cref="Assembly"/>.
410+ /// </summary>
411+ public string Configuration
412+ {
413+ get
414+ {
415+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyConfigurationAttribute));
416+ if ((object)attribute == null)
417+ return string.Empty;
418+ else
419+ return (string)attribute.ConstructorArguments[0].Value;
420+ }
421+ }
422+
423+ /// <summary>
424+ /// Gets a boolean value indicating if the <see cref="Assembly"/> has been built as delay-signed.
425+ /// </summary>
426+ public bool DelaySign
427+ {
428+ get
429+ {
430+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyDelaySignAttribute));
431+ if ((object)attribute == null)
432+ return false;
433+ else
434+ return (bool)attribute.ConstructorArguments[0].Value;
435+ }
436+ }
437+
438+ /// <summary>
439+ /// Gets the version information of the <see cref="Assembly"/>.
440+ /// </summary>
441+ public string InformationalVersion
442+ {
443+ get
444+ {
445+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyInformationalVersionAttribute));
446+ if ((object)attribute == null)
447+ return string.Empty;
448+ else
449+ return (string)attribute.ConstructorArguments[0].Value;
450+ }
451+ }
452+
453+ /// <summary>
454+ /// Gets the name of the file containing the key pair used to generate a strong name for the attributed <see cref="Assembly"/>.
455+ /// </summary>
456+ public string KeyFile
457+ {
458+ get
459+ {
460+ CustomAttributeData attribute = GetCustomAttribute(typeof(AssemblyKeyFileAttribute));
461+ if ((object)attribute == null)
462+ return string.Empty;
463+ else
464+ return (string)attribute.ConstructorArguments[0].Value;
465+ }
466+ }
467+
468+ /// <summary>
469+ /// Gets the culture name of the <see cref="Assembly"/>.
470+ /// </summary>
471+ public string CultureName
472+ {
473+ get
474+ {
475+ CustomAttributeData attribute = GetCustomAttribute(typeof(NeutralResourcesLanguageAttribute));
476+ if ((object)attribute == null)
477+ return string.Empty;
478+ else
479+ return (string)attribute.ConstructorArguments[0].Value;
480+ }
481+ }
482+
483+ /// <summary>
484+ /// Gets the assembly version used to instruct the System.Resources.ResourceManager to ask for a particular
485+ /// version of a satellite assembly to simplify updates of the main assembly of an application.
486+ /// </summary>
487+ public string SatelliteContractVersion
488+ {
489+ get
490+ {
491+ CustomAttributeData attribute = GetCustomAttribute(typeof(SatelliteContractVersionAttribute));
492+ if ((object)attribute == null)
493+ return string.Empty;
494+ else
495+ return (string)attribute.ConstructorArguments[0].Value;
496+ }
497+ }
498+
499+ /// <summary>
500+ /// Gets the string representing the assembly version used to indicate to a COM client that all classes
501+ /// in the current version of the assembly are compatible with classes in an earlier version of the assembly.
502+ /// </summary>
503+ public string ComCompatibleVersion
504+ {
505+ get
506+ {
507+ CustomAttributeData attribute = GetCustomAttribute(typeof(ComCompatibleVersionAttribute));
508+ if ((object)attribute == null)
509+ return string.Empty;
510+ else
511+ return attribute.ConstructorArguments[0].Value.ToString() + "." +
512+ attribute.ConstructorArguments[1].Value.ToString() + "." +
513+ attribute.ConstructorArguments[2].Value.ToString() + "." +
514+ attribute.ConstructorArguments[3].Value.ToString();
515+ }
516+ }
517+
518+ /// <summary>
519+ /// Gets a boolean value indicating if the <see cref="Assembly"/> is exposed to COM.
520+ /// </summary>
521+ public bool ComVisible
522+ {
523+ get
524+ {
525+ CustomAttributeData attribute = GetCustomAttribute(typeof(ComVisibleAttribute));
526+ if ((object)attribute == null)
527+ return false;
528+ else
529+ return (bool)attribute.ConstructorArguments[0].Value;
530+ }
531+ }
532+
533+ /// <summary>
534+ /// Gets the GUID that is used as an ID if the <see cref="Assembly"/> is exposed to COM.
535+ /// </summary>
536+ public string Guid
537+ {
538+ get
539+ {
540+ CustomAttributeData attribute = GetCustomAttribute(typeof(GuidAttribute));
541+ if ((object)attribute == null)
542+ return string.Empty;
543+ else
544+ return (string)attribute.ConstructorArguments[0].Value;
545+ }
546+ }
547+
548+ /// <summary>
549+ /// Gets the string representing the <see cref="Assembly"/> version number in MajorVersion.MinorVersion format.
550+ /// </summary>
551+ public string TypeLibVersion
552+ {
553+ get
554+ {
555+ CustomAttributeData attribute = GetCustomAttribute(typeof(TypeLibVersionAttribute));
556+ if ((object)attribute == null)
557+ return string.Empty;
558+ else
559+ return attribute.ConstructorArguments[0].Value.ToString() + "." +
560+ attribute.ConstructorArguments[1].Value.ToString();
561+ }
562+ }
563+
564+ /// <summary>
565+ /// Gets a boolean value indicating whether the <see cref="Assembly"/> is CLS-compliant.
566+ /// </summary>
567+ public bool CLSCompliant
568+ {
569+ get
570+ {
571+ CustomAttributeData attribute = GetCustomAttribute(typeof(CLSCompliantAttribute));
572+ if ((object)attribute == null)
573+ return false;
574+ else
575+ return (bool)attribute.ConstructorArguments[0].Value;
576+ }
577+ }
578+
579+ /// <summary>
580+ /// Gets the path or UNC location of the loaded file that contains the manifest.
581+ /// </summary>
582+ public string Location
583+ {
584+ get
585+ {
586+ return m_assemblyInstance.Location.ToLower();
587+ }
588+ }
589+
590+ /// <summary>
591+ /// Gets the location of the <see cref="Assembly"/> as specified originally.
592+ /// </summary>
593+ public string CodeBase
594+ {
595+ get
596+ {
597+ return m_assemblyInstance.CodeBase.Replace("file:///", "").ToLower();
598+ }
599+ }
600+
601+ /// <summary>
602+ /// Gets the display name of the <see cref="Assembly"/>.
603+ /// </summary>
604+ public string FullName
605+ {
606+ get
607+ {
608+ return m_assemblyInstance.FullName;
609+ }
610+ }
611+
612+ /// <summary>
613+ /// Gets the simple, unencrypted name of the <see cref="Assembly"/>.
614+ /// </summary>
615+ public string Name
616+ {
617+ get
618+ {
619+ return m_assemblyInstance.GetName().Name;
620+ }
621+ }
622+
623+ /// <summary>
624+ /// Gets the major, minor, revision, and build numbers of the <see cref="Assembly"/>.
625+ /// </summary>
626+ public Version Version
627+ {
628+ get
629+ {
630+ return m_assemblyInstance.GetName().Version;
631+ }
632+ }
633+
634+ /// <summary>
635+ /// Gets the string representing the version of the common language runtime (CLR) saved in the file
636+ /// containing the manifest.
637+ /// </summary>
638+ public string ImageRuntimeVersion
639+ {
640+ get
641+ {
642+ return m_assemblyInstance.ImageRuntimeVersion;
643+ }
644+ }
645+
646+ /// <summary>
647+ /// Gets a boolean value indicating whether the <see cref="Assembly"/> was loaded from the global assembly cache.
648+ /// </summary>
649+ public bool GACLoaded
650+ {
651+ get
652+ {
653+ return m_assemblyInstance.GlobalAssemblyCache;
654+ }
655+ }
656+
657+ /// <summary>
658+ /// Gets the date and time when the <see cref="Assembly"/> was built.
659+ /// </summary>
660+ public DateTime BuildDate
661+ {
662+ get
663+ {
664+ return File.GetLastWriteTime(m_assemblyInstance.Location);
665+ }
666+ }
667+
668+ /// <summary>
669+ /// Gets the root namespace of the <see cref="Assembly"/>.
670+ /// </summary>
671+ public string RootNamespace
672+ {
673+ get
674+ {
675+ return m_assemblyInstance.GetExportedTypes()[0].Namespace;
676+ }
677+ }
678+
679+ #endregion
680+
681+ #region [ Methods ]
682+
683+ /// <summary>Gets a collection of assembly attributes exposed by the assembly.</summary>
684+ /// <returns>A System.Specialized.KeyValueCollection of assembly attributes.</returns>
685+ public NameValueCollection GetAttributes()
686+ {
687+ NameValueCollection assemblyAttributes = new NameValueCollection();
688+
689+ //Add some values that are not in AssemblyInfo.
690+ assemblyAttributes.Add("Full Name", FullName);
691+ assemblyAttributes.Add("Name", Name);
692+ assemblyAttributes.Add("Version", Version.ToString());
693+ assemblyAttributes.Add("Image Runtime Version", ImageRuntimeVersion);
694+ assemblyAttributes.Add("Build Date", BuildDate.ToString());
695+ assemblyAttributes.Add("Location", Location);
696+ assemblyAttributes.Add("Code Base", CodeBase);
697+ assemblyAttributes.Add("GAC Loaded", GACLoaded.ToString());
698+
699+ //Add all attributes available from AssemblyInfo.
700+ assemblyAttributes.Add("Title", Title);
701+ assemblyAttributes.Add("Description", Description);
702+ assemblyAttributes.Add("Company", Company);
703+ assemblyAttributes.Add("Product", Product);
704+ assemblyAttributes.Add("Copyright", Copyright);
705+ assemblyAttributes.Add("Trademark", Trademark);
706+ assemblyAttributes.Add("Configuration", Configuration);
707+ assemblyAttributes.Add("Delay Sign", DelaySign.ToString());
708+ assemblyAttributes.Add("Informational Version", InformationalVersion);
709+ assemblyAttributes.Add("Key File", KeyFile);
710+ assemblyAttributes.Add("Culture Name", CultureName);
711+ assemblyAttributes.Add("Satellite Contract Version", SatelliteContractVersion);
712+ assemblyAttributes.Add("Com Compatible Version", ComCompatibleVersion);
713+ assemblyAttributes.Add("Com Visible", ComVisible.ToString());
714+ assemblyAttributes.Add("Guid", Guid);
715+ assemblyAttributes.Add("Type Lib Version", TypeLibVersion);
716+ assemblyAttributes.Add("CLS Compliant", CLSCompliant.ToString());
717+
718+ return assemblyAttributes;
719+ }
720+
721+ /// <summary>Gets the specified assembly attribute if it is exposed by the assembly.</summary>
722+ /// <param name="attributeType">Type of the attribute to get.</param>
723+ /// <returns>The requested assembly attribute if it exists; otherwise null.</returns>
724+ /// <remarks>
725+ /// This method always returns <c>null</c> under Mono deployments.
726+ /// </remarks>
727+ public CustomAttributeData GetCustomAttribute(Type attributeType)
728+ {
729+#if MONO
730+ return null;
731+#else
732+ //Returns the requested assembly attribute.
733+ return m_assemblyInstance.GetCustomAttributesData().FirstOrDefault(assemblyAttribute => assemblyAttribute.Constructor.DeclaringType == attributeType);
734+#endif
735+ }
736+
737+ /// <summary>Gets the specified embedded resource from the assembly.</summary>
738+ /// <param name="resourceName">The full name (including the namespace) of the embedded resource to get.</param>
739+ /// <returns>The embedded resource.</returns>
740+ public Stream GetEmbeddedResource(string resourceName)
741+ {
742+ //Extracts and returns the requested embedded resource.
743+ return m_assemblyInstance.GetEmbeddedResource(resourceName);
744+ }
745+
746+ #endregion
747+
748+ #region [ Static ]
749+
750+ // Static Fields
751+ private static AssemblyInfo s_callingAssembly;
752+ private static AssemblyInfo s_entryAssembly;
753+ private static AssemblyInfo s_executingAssembly;
754+ private static Dictionary<string, Assembly> s_assemblyCache;
755+ private static bool s_addedResolver;
756+
757+ // Static Properties
758+
759+ /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that invoked the currently executing method.</summary>
760+ public static AssemblyInfo CallingAssembly
761+ {
762+ get
763+ {
764+ if ((object)s_callingAssembly == null)
765+ {
766+ // We have to find the calling assembly of the caller.
767+ StackTrace trace = new StackTrace();
768+ Assembly caller = Assembly.GetCallingAssembly();
769+ Assembly current = Assembly.GetExecutingAssembly();
770+ foreach (StackFrame frame in trace.GetFrames())
771+ {
772+ Assembly assembly = Assembly.GetAssembly(frame.GetMethod().DeclaringType);
773+ if (assembly != caller && assembly != current)
774+ {
775+ // Assembly is neither the current assembly or the calling assembly.
776+ s_callingAssembly = new AssemblyInfo(assembly);
777+ break;
778+ }
779+ }
780+ }
781+
782+ return s_callingAssembly;
783+ }
784+ }
785+
786+ /// <summary>Gets the <see cref="AssemblyInfo"/> object of the process executable in the default application domain.</summary>
787+ public static AssemblyInfo EntryAssembly
788+ {
789+ get
790+ {
791+ if ((object)s_entryAssembly == null)
792+ {
793+ Assembly entryAssembly = Assembly.GetEntryAssembly();
794+ if ((object)entryAssembly == null)
795+ entryAssembly = Assembly.ReflectionOnlyLoadFrom(Process.GetCurrentProcess().MainModule.FileName);
796+
797+ s_entryAssembly = new AssemblyInfo(entryAssembly);
798+ }
799+
800+ return s_entryAssembly;
801+ }
802+ }
803+
804+ /// <summary>Gets the <see cref="AssemblyInfo"/> object of the assembly that contains the code that is currently executing.</summary>
805+ public static AssemblyInfo ExecutingAssembly
806+ {
807+ get
808+ {
809+ if ((object)s_executingAssembly == null)
810+ // Caller's assembly will be the executing assembly for the caller.
811+ s_executingAssembly = new AssemblyInfo(Assembly.GetCallingAssembly());
812+
813+ return s_executingAssembly;
814+ }
815+ }
816+
817+ // Static Methods
818+
819+ /// <summary>Loads the specified assembly that is embedded as a resource in the assembly.</summary>
820+ /// <param name="assemblyName">Name of the assembly to load.</param>
821+ /// <remarks>This cannot be used to load TVA.Core itself.</remarks>
822+ [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.ControlAppDomain)]
823+ public static void LoadAssemblyFromResource(string assemblyName)
824+ {
825+ // Hooks into assembly resolve event for current domain so it can load assembly from embedded resource.
826+ if (!s_addedResolver)
827+ {
828+ AppDomain.CurrentDomain.AssemblyResolve += ResolveAssemblyFromResource;
829+ s_addedResolver = true;
830+ }
831+
832+ // Loads the assembly (This will invoke event that will resolve assembly from resource.).
833+ AppDomain.CurrentDomain.Load(assemblyName);
834+ }
835+
836+ private static Assembly ResolveAssemblyFromResource(object sender, ResolveEventArgs e)
837+ {
838+ Assembly resourceAssembly;
839+ string shortName = e.Name.Split(',')[0];
840+
841+ if ((object)s_assemblyCache == null)
842+ s_assemblyCache = new Dictionary<string, Assembly>();
843+
844+ resourceAssembly = s_assemblyCache[shortName];
845+
846+ if ((object)resourceAssembly == null)
847+ {
848+ // Loops through all of the resources in the executing assembly.
849+ foreach (string name in Assembly.GetEntryAssembly().GetManifestResourceNames())
850+ {
851+ // Sees if the embedded resource name matches the assembly it is trying to load.
852+ if (string.Compare(FilePath.GetFileNameWithoutExtension(name), EntryAssembly.RootNamespace + "." + shortName, true) == 0)
853+ {
854+ // If so, loads embedded resource assembly into a binary buffer.
855+ System.IO.Stream resourceStream = Assembly.GetEntryAssembly().GetManifestResourceStream(name);
856+ byte[] buffer = new byte[resourceStream.Length];
857+ resourceStream.Read(buffer, 0, (int)resourceStream.Length);
858+ resourceStream.Close();
859+
860+ // Loads assembly from binary buffer.
861+ resourceAssembly = Assembly.Load(buffer);
862+ s_assemblyCache.Add(shortName, resourceAssembly);
863+ break;
864+ }
865+ }
866+ }
867+
868+ return resourceAssembly;
869+ }
870+
871+ #endregion
872+ }
873873 }
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Security/Properties/AssemblyInfo.cs+26−26
@@ -1,26 +1,26 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("TVA")]
10−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11−[assembly: AssemblyProduct("TVA Code Library")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−[assembly: AssemblyDefaultAlias("TVA.Security")]
20−[assembly: AssemblyDescription("Library of core security framework for implementing role-based security across various .NET application types.")]
21−[assembly: AssemblyTitle("TVA.Security")]
22−
23−// Other configuration attributes.
24−[assembly: CLSCompliant(true)]
25−[assembly: ComVisible(false)]
26−[assembly: Guid("96b92296-6422-4f3c-8d30-72f6ecf6c558")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("4.0.4.70")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("TVA")]
10+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11+[assembly: AssemblyProduct("TVA Code Library")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+[assembly: AssemblyDefaultAlias("TVA.Security")]
20+[assembly: AssemblyDescription("Library of core security framework for implementing role-based security across various .NET application types.")]
21+[assembly: AssemblyTitle("TVA.Security")]
22+
23+// Other configuration attributes.
24+[assembly: CLSCompliant(true)]
25+[assembly: ComVisible(false)]
26+[assembly: Guid("96b92296-6422-4f3c-8d30-72f6ecf6c558")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.ServiceBus/Properties/AssemblyInfo.cs+26−26
@@ -1,26 +1,26 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("TVA")]
10−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11−[assembly: AssemblyProduct("TVA Code Library")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−[assembly: AssemblyDefaultAlias("TVA.ServiceBus")]
20−[assembly: AssemblyDescription("Library of lightweight WCF-based Service Bus with queue and topic support for secure event-driven messaging between disjoint systems.")]
21−[assembly: AssemblyTitle("TVA.ServiceBus")]
22−
23−// Other configuration attributes.
24−[assembly: CLSCompliant(true)]
25−[assembly: ComVisible(false)]
26−[assembly: Guid("055544a1-be9e-4727-9946-173e3548d2e0")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("4.0.4.70")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("TVA")]
10+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11+[assembly: AssemblyProduct("TVA Code Library")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+[assembly: AssemblyDefaultAlias("TVA.ServiceBus")]
20+[assembly: AssemblyDescription("Library of lightweight WCF-based Service Bus with queue and topic support for secure event-driven messaging between disjoint systems.")]
21+[assembly: AssemblyTitle("TVA.ServiceBus")]
22+
23+// Other configuration attributes.
24+[assembly: CLSCompliant(true)]
25+[assembly: ComVisible(false)]
26+[assembly: Guid("055544a1-be9e-4727-9946-173e3548d2e0")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.ServiceModel/Properties/AssemblyInfo.cs+26−26
@@ -1,26 +1,26 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("TVA")]
10−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11−[assembly: AssemblyProduct("TVA Code Library")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−[assembly: AssemblyDefaultAlias("TVA.ServiceModel")]
20−[assembly: AssemblyDescription("Library of base WCF service with self-hosting capability, and WCF Authorization Policy and Host Factories for implementing role-based security.")]
21−[assembly: AssemblyTitle("TVA.ServiceModel")]
22−
23−// Other configuration attributes.
24−[assembly: CLSCompliant(true)]
25−[assembly: ComVisible(false)]
26−[assembly: Guid("57b04fab-3c0f-4d28-ad88-47e4222ebbe0")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("4.0.4.70")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("TVA")]
10+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11+[assembly: AssemblyProduct("TVA Code Library")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+[assembly: AssemblyDefaultAlias("TVA.ServiceModel")]
20+[assembly: AssemblyDescription("Library of base WCF service with self-hosting capability, and WCF Authorization Policy and Host Factories for implementing role-based security.")]
21+[assembly: AssemblyTitle("TVA.ServiceModel")]
22+
23+// Other configuration attributes.
24+[assembly: CLSCompliant(true)]
25+[assembly: ComVisible(false)]
26+[assembly: Guid("57b04fab-3c0f-4d28-ad88-47e4222ebbe0")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.ServiceProcess/Properties/AssemblyInfo.cs+26−26
@@ -1,26 +1,26 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("TVA")]
10−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11−[assembly: AssemblyProduct("TVA Code Library")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−[assembly: AssemblyDefaultAlias("TVA.ServiceProcess")]
20−[assembly: AssemblyDescription("Library of components that facilitate remote interaction with a Windows Service from Console, Windows and Web application.")]
21−[assembly: AssemblyTitle("TVA.ServiceProcess")]
22−
23−// Other configuration attributes.
24−[assembly: CLSCompliant(true)]
25−[assembly: ComVisible(false)]
26−[assembly: Guid("eebbee45-2987-4bbd-9cc1-ff6d4dcf55f7")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("4.0.4.70")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("TVA")]
10+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11+[assembly: AssemblyProduct("TVA Code Library")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+[assembly: AssemblyDefaultAlias("TVA.ServiceProcess")]
20+[assembly: AssemblyDescription("Library of components that facilitate remote interaction with a Windows Service from Console, Windows and Web application.")]
21+[assembly: AssemblyTitle("TVA.ServiceProcess")]
22+
23+// Other configuration attributes.
24+[assembly: CLSCompliant(true)]
25+[assembly: ComVisible(false)]
26+[assembly: Guid("eebbee45-2987-4bbd-9cc1-ff6d4dcf55f7")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Web/Properties/AssemblyInfo.cs+39−39
@@ -1,39 +1,39 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−using System.Web.UI;
5−using TVA.Web.Hosting;
6−
7−// Assembly identity attributes.
8−[assembly: AssemblyVersion("2.1.99.0")]
9−
10−// Informational attributes.
11−[assembly: AssemblyCompany("TVA")]
12−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
13−[assembly: AssemblyProduct("TVA Code Library")]
14−
15−// Assembly manifest attributes.
16−#if DEBUG
17−[assembly: AssemblyConfiguration("Debug Build")]
18−#else
19−[assembly: AssemblyConfiguration("Release Build")]
20−#endif
21−[assembly: AssemblyDefaultAlias("TVA.Web")]
22−[assembly: AssemblyDescription("Library of ASP.NET web forms extensions, embedded resource hosting and HTTP Module for implementing role-based security.")]
23−[assembly: AssemblyTitle("TVA.Web")]
24−
25−// Other configuration attributes.
26−[assembly: CLSCompliant(true)]
27−[assembly: ComVisible(false)]
28−[assembly: Guid("eebbee45-2987-4bbd-9cc1-ff6d4dcf55f7")]
29−
30−// Embedd server-side controls.
31−[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityPortal.aspx", "TVA.Web.Embedded")]
32−[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityService.svc", "TVA.Web.Embedded")]
33−
34−// Embedd resources used by embedded controls.
35−[assembly: WebResource("TVA.Web.Embedded.Files.Help.pdf", "application/pdf")]
36−[assembly: WebResource("TVA.Web.Embedded.Images.TVALogo.png", "img/png")]
37−[assembly: WebResource("TVA.Web.Embedded.Images.Help.png", "img/png")]
38−[assembly: WebResource("TVA.Web.Embedded.Images.Warning.png", "img/png")]
39−[assembly: WebResource("TVA.Web.Embedded.Styles.SecurityPortal.css", "text/css")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+using System.Web.UI;
5+using TVA.Web.Hosting;
6+
7+// Assembly identity attributes.
8+[assembly: AssemblyVersion("4.0.4.70")]
9+
10+// Informational attributes.
11+[assembly: AssemblyCompany("TVA")]
12+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
13+[assembly: AssemblyProduct("TVA Code Library")]
14+
15+// Assembly manifest attributes.
16+#if DEBUG
17+[assembly: AssemblyConfiguration("Debug Build")]
18+#else
19+[assembly: AssemblyConfiguration("Release Build")]
20+#endif
21+[assembly: AssemblyDefaultAlias("TVA.Web")]
22+[assembly: AssemblyDescription("Library of ASP.NET web forms extensions, embedded resource hosting and HTTP Module for implementing role-based security.")]
23+[assembly: AssemblyTitle("TVA.Web")]
24+
25+// Other configuration attributes.
26+[assembly: CLSCompliant(true)]
27+[assembly: ComVisible(false)]
28+[assembly: Guid("eebbee45-2987-4bbd-9cc1-ff6d4dcf55f7")]
29+
30+// Embedd server-side controls.
31+[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityPortal.aspx", "TVA.Web.Embedded")]
32+[assembly: EmbeddedResourceFile("TVA.Web.Embedded.SecurityService.svc", "TVA.Web.Embedded")]
33+
34+// Embedd resources used by embedded controls.
35+[assembly: WebResource("TVA.Web.Embedded.Files.Help.pdf", "application/pdf")]
36+[assembly: WebResource("TVA.Web.Embedded.Images.TVALogo.png", "img/png")]
37+[assembly: WebResource("TVA.Web.Embedded.Images.Help.png", "img/png")]
38+[assembly: WebResource("TVA.Web.Embedded.Images.Warning.png", "img/png")]
39+[assembly: WebResource("TVA.Web.Embedded.Styles.SecurityPortal.css", "text/css")]
Source/OldCode/TVACodeLibrary/Source/Libraries/TVA.Windows/Properties/AssemblyInfo.cs+26−26
@@ -1,26 +1,26 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("TVA")]
10−[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11−[assembly: AssemblyProduct("TVA Code Library")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−[assembly: AssemblyDefaultAlias("TVA.Windows")]
20−[assembly: AssemblyDescription("Library of property grid extensions, about dialog and base Windows Form and WPF Window for implementing role-based security.")]
21−[assembly: AssemblyTitle("TVA.Windows")]
22−
23−// Other configuration attributes.
24−[assembly: CLSCompliant(true)]
25−[assembly: ComVisible(false)]
26−[assembly: Guid("85dfc906-a5f5-41ff-9a40-230ded5cd69d")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("4.0.4.70")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("TVA")]
10+[assembly: AssemblyCopyright("No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved.")]
11+[assembly: AssemblyProduct("TVA Code Library")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+[assembly: AssemblyDefaultAlias("TVA.Windows")]
20+[assembly: AssemblyDescription("Library of property grid extensions, about dialog and base Windows Form and WPF Window for implementing role-based security.")]
21+[assembly: AssemblyTitle("TVA.Windows")]
22+
23+// Other configuration attributes.
24+[assembly: CLSCompliant(true)]
25+[assembly: ComVisible(false)]
26+[assembly: Guid("85dfc906-a5f5-41ff-9a40-230ded5cd69d")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Communication.Tests/Properties/AssemblyInfo.cs+35−35
@@ -1,35 +1,35 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("TVA.Communication.Tests")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("TVA")]
12−[assembly: AssemblyProduct("TVA.Communication.Tests")]
13−[assembly: AssemblyCopyright("Copyright © TVA 2010")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("4e9721ed-bd90-4e2e-9c0b-e47b03c3dbee")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("TVA.Communication.Tests")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("TVA")]
12+[assembly: AssemblyProduct("TVA.Communication.Tests")]
13+[assembly: AssemblyCopyright("Copyright © TVA 2010")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("4e9721ed-bd90-4e2e-9c0b-e47b03c3dbee")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Core.Tests/Properties/AssemblyInfo.cs+35−35
@@ -1,35 +1,35 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("TVA.Core.Tests")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("TVA")]
12−[assembly: AssemblyProduct("TVA.Core.Tests")]
13−[assembly: AssemblyCopyright("Copyright © TVA 2010")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("8cbc9ff6-34ef-4b01-a42b-ff59d741f4c5")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("TVA.Core.Tests")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("TVA")]
12+[assembly: AssemblyProduct("TVA.Core.Tests")]
13+[assembly: AssemblyCopyright("Copyright © TVA 2010")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("8cbc9ff6-34ef-4b01-a42b-ff59d741f4c5")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Security.Tests/Properties/AssemblyInfo.cs+2−2
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.ServiceBus.Tests/Properties/AssemblyInfo.cs+2−2
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.ServiceModel.Tests/Properties/AssemblyInfo.cs+2−2
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.ServiceProcess.Tests/Properties/AssemblyInfo.cs+2−2
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Web.Tests/Properties/AssemblyInfo.cs+2−2
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Libraries/Tests/TVA.Windows.Tests/Properties/AssemblyInfo.cs+2−2
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Tools/ConfigCrypter/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("4.0.4.70")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/TVACodeLibrary/Source/Tools/ConfigEditor/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("4.0.4.70")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/TVACodeLibrary/Source/Tools/DataMigrationUtility/Properties/AssemblyInfo.cs+3−3
@@ -31,6 +31,6 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
34+// [assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyVersion("4.0.4.70")]
36+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Tools/TCPRebroadcaster/TCPRebroadcaster/Properties/AssemblyInfo.cs+3−3
@@ -30,6 +30,6 @@ using System.Runtime.InteropServices; · 29 unmodified lines
3030 //
3131 // You can specify all the values or you can default the Build and Revision Numbers
3232 // by using the '*' as shown below:
33−// [assembly: AssemblyVersion("2.1.99.0")]
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
33+// [assembly: AssemblyVersion("4.0.4.70")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Tools/TCPRebroadcaster/TCPRebroadcasterConsole/Properties/AssemblyInfo.cs+3−3
@@ -30,6 +30,6 @@ using System.Runtime.InteropServices; · 29 unmodified lines
3030 //
3131 // You can specify all the values or you can default the Build and Revision Numbers
3232 // by using the '*' as shown below:
33−// [assembly: AssemblyVersion("2.1.99.0")]
34−[assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyFileVersion("2.1.99.0")]
33+// [assembly: AssemblyVersion("4.0.4.70")]
34+[assembly: AssemblyVersion("4.0.4.70")]
35+[assembly: AssemblyFileVersion("4.0.4.70")]
Source/OldCode/TVACodeLibrary/Source/Tools/UDPRebroadcaster/UDPRebroadcaster/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("4.0.4.70")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/TVACodeLibrary/Source/Tools/UDPRebroadcaster/UDPRebroadcasterConsole/Properties/AssemblyInfo.cs+1−1
@@ -2,7 +2,7 @@ · 1 unmodified line
22 using System.Runtime.InteropServices;
33
44 // Assembly identity attributes.
5−[assembly: AssemblyVersion("2.1.99.0")]
5+[assembly: AssemblyVersion("4.0.4.70")]
66
77 // Informational attributes.
88 [assembly: AssemblyCompany("TVA")]
Source/OldCode/TimeSeriesFramework/Source/Applications/DataPublisherTest/Properties/AssemblyInfo.cs+39−39
@@ -1,39 +1,39 @@
1−using System.Reflection;
2−using System.Runtime.InteropServices;
3−
4−// General Information about an assembly is controlled through the following
5−// set of attributes. Change these attribute values to modify the information
6−// associated with an assembly.
7−[assembly: AssemblyTitle("Data Publisher Test")]
8−[assembly: AssemblyDescription("Data Publisher Test Application")]
9−[assembly: AssemblyCompany("Grid Protection Alliance")]
10−[assembly: AssemblyProduct("Time-series Data Processing Framework")]
11−[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
12−[assembly: AssemblyTrademark("")]
13−[assembly: AssemblyCulture("")]
14−
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−
21−// Setting ComVisible to false makes the types in this assembly not visible
22−// to COM components. If you need to access a type in this assembly from
23−// COM, set the ComVisible attribute to true on that type.
24−[assembly: ComVisible(false)]
25−
26−// The following GUID is for the ID of the typelib if this project is exposed to COM
27−[assembly: Guid("13f856b7-395b-478c-aae2-fd6880a18969")]
28−
29−// Version information for an assembly consists of the following four values:
30−//
31−// Major Version
32−// Minor Version
33−// Build Number
34−// Revision
35−//
36−// You can specify all the values or you can default the Build and Revision Numbers
37−// by using the '*' as shown below:
38−// [assembly: AssemblyVersion("2.1.99.0")]
39−[assembly: AssemblyVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.InteropServices;
3+
4+// General Information about an assembly is controlled through the following
5+// set of attributes. Change these attribute values to modify the information
6+// associated with an assembly.
7+[assembly: AssemblyTitle("Data Publisher Test")]
8+[assembly: AssemblyDescription("Data Publisher Test Application")]
9+[assembly: AssemblyCompany("Grid Protection Alliance")]
10+[assembly: AssemblyProduct("Time-series Data Processing Framework")]
11+[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
12+[assembly: AssemblyTrademark("")]
13+[assembly: AssemblyCulture("")]
14+
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+
21+// Setting ComVisible to false makes the types in this assembly not visible
22+// to COM components. If you need to access a type in this assembly from
23+// COM, set the ComVisible attribute to true on that type.
24+[assembly: ComVisible(false)]
25+
26+// The following GUID is for the ID of the typelib if this project is exposed to COM
27+[assembly: Guid("13f856b7-395b-478c-aae2-fd6880a18969")]
28+
29+// Version information for an assembly consists of the following four values:
30+//
31+// Major Version
32+// Minor Version
33+// Build Number
34+// Revision
35+//
36+// You can specify all the values or you can default the Build and Revision Numbers
37+// by using the '*' as shown below:
38+// [assembly: AssemblyVersion("1.1.141.0")]
39+[assembly: AssemblyVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Applications/DataSubscriberTest/Properties/AssemblyInfo.cs+40−40
@@ -1,40 +1,40 @@
1−using System.Reflection;
2−using System.Runtime.InteropServices;
3−
4−// General Information about an assembly is controlled through the following
5−// set of attributes. Change these attribute values to modify the information
6−// associated with an assembly.
7−[assembly: AssemblyTitle("Data Subscriber Test")]
8−[assembly: AssemblyDescription("Data Subscriber Test Application")]
9−[assembly: AssemblyCompany("Grid Protection Alliance")]
10−[assembly: AssemblyProduct("Time-series Data Processing Framework")]
11−[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
12−[assembly: AssemblyTrademark("")]
13−[assembly: AssemblyCulture("")]
14−
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−
21−// Setting ComVisible to false makes the types in this assembly not visible
22−// to COM components. If you need to access a type in this assembly from
23−// COM, set the ComVisible attribute to true on that type.
24−[assembly: ComVisible(false)]
25−
26−// The following GUID is for the ID of the typelib if this project is exposed to COM
27−[assembly: Guid("58040511-5b2b-4a40-aa82-0278737f1ca2")]
28−
29−// Version information for an assembly consists of the following four values:
30−//
31−// Major Version
32−// Minor Version
33−// Build Number
34−// Revision
35−//
36−// You can specify all the values or you can default the Build and Revision Numbers
37−// by using the '*' as shown below:
38−// [assembly: AssemblyVersion("2.1.99.0")]
39−[assembly: AssemblyVersion("2.1.99.0")]
40−
1+using System.Reflection;
2+using System.Runtime.InteropServices;
3+
4+// General Information about an assembly is controlled through the following
5+// set of attributes. Change these attribute values to modify the information
6+// associated with an assembly.
7+[assembly: AssemblyTitle("Data Subscriber Test")]
8+[assembly: AssemblyDescription("Data Subscriber Test Application")]
9+[assembly: AssemblyCompany("Grid Protection Alliance")]
10+[assembly: AssemblyProduct("Time-series Data Processing Framework")]
11+[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
12+[assembly: AssemblyTrademark("")]
13+[assembly: AssemblyCulture("")]
14+
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+
21+// Setting ComVisible to false makes the types in this assembly not visible
22+// to COM components. If you need to access a type in this assembly from
23+// COM, set the ComVisible attribute to true on that type.
24+[assembly: ComVisible(false)]
25+
26+// The following GUID is for the ID of the typelib if this project is exposed to COM
27+[assembly: Guid("58040511-5b2b-4a40-aa82-0278737f1ca2")]
28+
29+// Version information for an assembly consists of the following four values:
30+//
31+// Major Version
32+// Minor Version
33+// Build Number
34+// Revision
35+//
36+// You can specify all the values or you can default the Build and Revision Numbers
37+// by using the '*' as shown below:
38+// [assembly: AssemblyVersion("1.1.141.0")]
39+[assembly: AssemblyVersion("1.1.141.0")]
40+
Source/OldCode/TimeSeriesFramework/Source/Applications/TsfManager/Properties/AssemblyInfo.cs+58−58
@@ -1,58 +1,58 @@
1−using System.Reflection;
2−using System.Runtime.InteropServices;
3−using System.Windows;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("TSF Manager")]
9−[assembly: AssemblyDescription("Time-series Framework UI Management Application")]
10−[assembly: AssemblyCompany("Grid Protection Alliance")]
11−[assembly: AssemblyProduct("Time-series Data Processing Framework")]
12−[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
13−[assembly: AssemblyTrademark("")]
14−[assembly: AssemblyCulture("")]
15−
16−#if DEBUG
17−[assembly: AssemblyConfiguration("Debug Build")]
18−#else
19−[assembly: AssemblyConfiguration("Release Build")]
20−#endif
21−
22−// Setting ComVisible to false makes the types in this assembly not visible
23−// to COM components. If you need to access a type in this assembly from
24−// COM, set the ComVisible attribute to true on that type.
25−[assembly: ComVisible(false)]
26−
27−//In order to begin building localizable applications, set
28−//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
29−//inside a <PropertyGroup>. For example, if you are using US english
30−//in your source files, set the <UICulture> to en-US. Then uncomment
31−//the NeutralResourceLanguage attribute below. Update the "en-US" in
32−//the line below to match the UICulture setting in the project file.
33−
34−//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
35−
36−
37−[assembly: ThemeInfo(
38− ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
39− //(used if a resource is not found in the page,
40− // or application resource dictionaries)
41− ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
42− //(used if a resource is not found in the page,
43− // app, or any theme specific resource dictionaries)
44−)]
45−
46−
47−// Version information for an assembly consists of the following four values:
48−//
49−// Major Version
50−// Minor Version
51−// Build Number
52−// Revision
53−//
54−// You can specify all the values or you can default the Build and Revision Numbers
55−// by using the '*' as shown below:
56−// [assembly: AssemblyVersion("2.1.99.0")]
57−[assembly: AssemblyVersion("2.1.99.0")]
58−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.InteropServices;
3+using System.Windows;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("TSF Manager")]
9+[assembly: AssemblyDescription("Time-series Framework UI Management Application")]
10+[assembly: AssemblyCompany("Grid Protection Alliance")]
11+[assembly: AssemblyProduct("Time-series Data Processing Framework")]
12+[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
13+[assembly: AssemblyTrademark("")]
14+[assembly: AssemblyCulture("")]
15+
16+#if DEBUG
17+[assembly: AssemblyConfiguration("Debug Build")]
18+#else
19+[assembly: AssemblyConfiguration("Release Build")]
20+#endif
21+
22+// Setting ComVisible to false makes the types in this assembly not visible
23+// to COM components. If you need to access a type in this assembly from
24+// COM, set the ComVisible attribute to true on that type.
25+[assembly: ComVisible(false)]
26+
27+//In order to begin building localizable applications, set
28+//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
29+//inside a <PropertyGroup>. For example, if you are using US english
30+//in your source files, set the <UICulture> to en-US. Then uncomment
31+//the NeutralResourceLanguage attribute below. Update the "en-US" in
32+//the line below to match the UICulture setting in the project file.
33+
34+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
35+
36+
37+[assembly: ThemeInfo(
38+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
39+ //(used if a resource is not found in the page,
40+ // or application resource dictionaries)
41+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
42+ //(used if a resource is not found in the page,
43+ // app, or any theme specific resource dictionaries)
44+)]
45+
46+
47+// Version information for an assembly consists of the following four values:
48+//
49+// Major Version
50+// Minor Version
51+// Build Number
52+// Revision
53+//
54+// You can specify all the values or you can default the Build and Revision Numbers
55+// by using the '*' as shown below:
56+// [assembly: AssemblyVersion("1.1.141.0")]
57+[assembly: AssemblyVersion("1.1.141.0")]
58+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Applications/Wave Demo Apps/UpdateWAVMetaData/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("UpdateWAVMetaData")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Microsoft")]
12−[assembly: AssemblyProduct("UpdateWAVMetaData")]
13−[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("2640ae25-08fa-4837-9140-ff6e2778a225")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("UpdateWAVMetaData")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Microsoft")]
12+[assembly: AssemblyProduct("UpdateWAVMetaData")]
13+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("2640ae25-08fa-4837-9140-ff6e2778a225")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Applications/Wave Demo Apps/WavSubscriptionDemo/Properties/AssemblyInfo.cs+55−55
@@ -1,55 +1,55 @@
1−using System.Reflection;
2−using System.Resources;
3−using System.Runtime.CompilerServices;
4−using System.Runtime.InteropServices;
5−using System.Windows;
6−
7−// General Information about an assembly is controlled through the following
8−// set of attributes. Change these attribute values to modify the information
9−// associated with an assembly.
10−[assembly: AssemblyTitle("WavSubscriptionDemo")]
11−[assembly: AssemblyDescription("")]
12−[assembly: AssemblyConfiguration("")]
13−[assembly: AssemblyCompany("Microsoft")]
14−[assembly: AssemblyProduct("WavSubscriptionDemo")]
15−[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
16−[assembly: AssemblyTrademark("")]
17−[assembly: AssemblyCulture("")]
18−
19−// Setting ComVisible to false makes the types in this assembly not visible
20−// to COM components. If you need to access a type in this assembly from
21−// COM, set the ComVisible attribute to true on that type.
22−[assembly: ComVisible(false)]
23−
24−//In order to begin building localizable applications, set
25−//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26−//inside a <PropertyGroup>. For example, if you are using US english
27−//in your source files, set the <UICulture> to en-US. Then uncomment
28−//the NeutralResourceLanguage attribute below. Update the "en-US" in
29−//the line below to match the UICulture setting in the project file.
30−
31−//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32−
33−
34−[assembly: ThemeInfo(
35− ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36− //(used if a resource is not found in the page,
37− // or application resource dictionaries)
38− ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39− //(used if a resource is not found in the page,
40− // app, or any theme specific resource dictionaries)
41−)]
42−
43−
44−// Version information for an assembly consists of the following four values:
45−//
46−// Major Version
47−// Minor Version
48−// Build Number
49−// Revision
50−//
51−// You can specify all the values or you can default the Build and Revision Numbers
52−// by using the '*' as shown below:
53−// [assembly: AssemblyVersion("2.1.99.0")]
54−[assembly: AssemblyVersion("2.1.99.0")]
55−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Resources;
3+using System.Runtime.CompilerServices;
4+using System.Runtime.InteropServices;
5+using System.Windows;
6+
7+// General Information about an assembly is controlled through the following
8+// set of attributes. Change these attribute values to modify the information
9+// associated with an assembly.
10+[assembly: AssemblyTitle("WavSubscriptionDemo")]
11+[assembly: AssemblyDescription("")]
12+[assembly: AssemblyConfiguration("")]
13+[assembly: AssemblyCompany("Microsoft")]
14+[assembly: AssemblyProduct("WavSubscriptionDemo")]
15+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
16+[assembly: AssemblyTrademark("")]
17+[assembly: AssemblyCulture("")]
18+
19+// Setting ComVisible to false makes the types in this assembly not visible
20+// to COM components. If you need to access a type in this assembly from
21+// COM, set the ComVisible attribute to true on that type.
22+[assembly: ComVisible(false)]
23+
24+//In order to begin building localizable applications, set
25+//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26+//inside a <PropertyGroup>. For example, if you are using US english
27+//in your source files, set the <UICulture> to en-US. Then uncomment
28+//the NeutralResourceLanguage attribute below. Update the "en-US" in
29+//the line below to match the UICulture setting in the project file.
30+
31+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32+
33+
34+[assembly: ThemeInfo(
35+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36+ //(used if a resource is not found in the page,
37+ // or application resource dictionaries)
38+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39+ //(used if a resource is not found in the page,
40+ // app, or any theme specific resource dictionaries)
41+)]
42+
43+
44+// Version information for an assembly consists of the following four values:
45+//
46+// Major Version
47+// Minor Version
48+// Build Number
49+// Revision
50+//
51+// You can specify all the values or you can default the Build and Revision Numbers
52+// by using the '*' as shown below:
53+// [assembly: AssemblyVersion("1.1.141.0")]
54+[assembly: AssemblyVersion("1.1.141.0")]
55+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/AdoAdapters/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("AdoAdapters")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("AdoAdapters")]
13−[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("45748fd5-d59a-4cec-9888-9d0ab9828944")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("AdoAdapters")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("AdoAdapters")]
13+[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("45748fd5-d59a-4cec-9888-9d0ab9828944")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/CSampleAdapters/AssemblyInfo.cpp+38−38
@@ -1,38 +1,38 @@
1−#include "stdafx.h"
2−
3−using namespace System;
4−using namespace System::Reflection;
5−using namespace System::Runtime::CompilerServices;
6−using namespace System::Runtime::InteropServices;
7−using namespace System::Security::Permissions;
8−
9−//
10−// General Information about an assembly is controlled through the following
11−// set of attributes. Change these attribute values to modify the information
12−// associated with an assembly.
13−//
14−[assembly:AssemblyTitleAttribute("CSampleAdapter")];
15−[assembly:AssemblyDescriptionAttribute("")];
16−[assembly:AssemblyConfigurationAttribute("")];
17−[assembly:AssemblyCompanyAttribute("Grid Protection Alliance")];
18−[assembly:AssemblyProductAttribute("CSampleAdapter")];
19−[assembly:AssemblyCopyrightAttribute("Copyright � 2012. All Rights Reserved.")];
20−[assembly:AssemblyTrademarkAttribute("")];
21−[assembly:AssemblyCultureAttribute("")];
22−
23−//
24−// Version information for an assembly consists of the following four values:
25−//
26−// Major Version
27−// Minor Version
28−// Build Number
29−// Revision
30−//
31−// You can specify all the value or you can default the Revision and Build Numbers
32−// by using the '*' as shown below:
33−[assembly:AssemblyVersionAttribute("1.1.25.0")]
34−[assembly:AssemblyFileVersionAttribute("1.1.25.0")]
35−
36−[assembly:ComVisible(false)];
37−[assembly:CLSCompliantAttribute(true)];
38−[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
1+#include "stdafx.h"
2+
3+using namespace System;
4+using namespace System::Reflection;
5+using namespace System::Runtime::CompilerServices;
6+using namespace System::Runtime::InteropServices;
7+using namespace System::Security::Permissions;
8+
9+//
10+// General Information about an assembly is controlled through the following
11+// set of attributes. Change these attribute values to modify the information
12+// associated with an assembly.
13+//
14+[assembly:AssemblyTitleAttribute("CSampleAdapter")];
15+[assembly:AssemblyDescriptionAttribute("")];
16+[assembly:AssemblyConfigurationAttribute("")];
17+[assembly:AssemblyCompanyAttribute("Grid Protection Alliance")];
18+[assembly:AssemblyProductAttribute("CSampleAdapter")];
19+[assembly:AssemblyCopyrightAttribute("Copyright � 2012. All Rights Reserved.")];
20+[assembly:AssemblyTrademarkAttribute("")];
21+[assembly:AssemblyCultureAttribute("")];
22+
23+//
24+// Version information for an assembly consists of the following four values:
25+//
26+// Major Version
27+// Minor Version
28+// Build Number
29+// Revision
30+//
31+// You can specify all the value or you can default the Revision and Build Numbers
32+// by using the '*' as shown below:
33+[assembly:AssemblyVersionAttribute("1.1.25.0")]
34+[assembly:AssemblyFileVersionAttribute("1.1.25.0")]
35+
36+[assembly:ComVisible(false)];
37+[assembly:CLSCompliantAttribute(true)];
38+[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/CsvAdapters/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("CsvAdapters")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("CsvAdapters")]
13−[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("a7798a9f-469e-4c93-be88-b897211417fd")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("CsvAdapters")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("CsvAdapters")]
13+[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("a7798a9f-469e-4c93-be88-b897211417fd")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/DataQualityMonitoring/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("DataQualityMonitoring")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("DataQualityMonitoring")]
13−[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("0a0fd702-d54c-4625-92f6-11b78ea0ba10")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("DataQualityMonitoring")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("DataQualityMonitoring")]
13+[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("0a0fd702-d54c-4625-92f6-11b78ea0ba10")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/Dnp3Adapters/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("Dnp3Adapters")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("TimeSeriesFramework")]
13−[assembly: AssemblyCopyright("Copyright © 2012. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("0FAF31ED-CF1C-498A-9F4D-0AE3651140CE")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("Dnp3Adapters")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("TimeSeriesFramework")]
13+[assembly: AssemblyCopyright("Copyright © 2012. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("0FAF31ED-CF1C-498A-9F4D-0AE3651140CE")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/DynamicCalculator/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("DynamicCalculator")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("DynamicCalculator")]
13−[assembly: AssemblyCopyright("Copyright © 2012. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("e710ca66-2222-464b-99f9-cbb5b7f0ecd9")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("DynamicCalculator")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("DynamicCalculator")]
13+[assembly: AssemblyCopyright("Copyright © 2012. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("e710ca66-2222-464b-99f9-cbb5b7f0ecd9")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/FrequencyAverager/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("FrequencyAverager")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("")]
12−[assembly: AssemblyProduct("FrequencyAverager")]
13−[assembly: AssemblyCopyright("Copyright © 2012")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("1295cf91-b1ca-45c4-8baf-14b6e270d694")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("FrequencyAverager")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("")]
12+[assembly: AssemblyProduct("FrequencyAverager")]
13+[assembly: AssemblyCopyright("Copyright © 2012")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("1295cf91-b1ca-45c4-8baf-14b6e270d694")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/MongoAdapters/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("MongoAdapters")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("MongoAdapters")]
13−[assembly: AssemblyCopyright("Copyright © 2010, Grid Protection Alliance. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("fabb9169-9c25-49e5-80da-3d1215bf7ab4")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("MongoAdapters")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("MongoAdapters")]
13+[assembly: AssemblyCopyright("Copyright © 2010, Grid Protection Alliance. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("fabb9169-9c25-49e5-80da-3d1215bf7ab4")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/MySqlAdapters/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("MySqlAdapters")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("MySqlAdapters")]
13−[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("2329a9a1-33e5-4fc3-8a0a-0d843792ffa6")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("MySqlAdapters")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("MySqlAdapters")]
13+[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("2329a9a1-33e5-4fc3-8a0a-0d843792ffa6")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/PIAdapters/Properties/AssemblyInfo.cs+27−27
@@ -1,27 +1,27 @@
1−using System;
2−using System.Reflection;
3−using System.Runtime.InteropServices;
4−
5−// Assembly identity attributes.
6−[assembly: AssemblyVersion("2.1.99.0")]
7−
8−// Informational attributes.
9−[assembly: AssemblyCompany("Grid Protection Alliance")]
10−[assembly: AssemblyCopyright("Copyright © 2013. All Rights Reserved.")]
11−[assembly: AssemblyProduct("openPDC")]
12−
13−// Assembly manifest attributes.
14−#if DEBUG
15−[assembly: AssemblyConfiguration("Debug Build")]
16−#else
17−[assembly: AssemblyConfiguration("Release Build")]
18−#endif
19−
20−[assembly: AssemblyDefaultAlias("PIAdapters")]
21−[assembly: AssemblyDescription("OSI-PI Adapters for openPDC.")]
22−[assembly: AssemblyTitle("PIAdapters")]
23−
24−// Other configuration attributes.
25−[assembly: CLSCompliant(false)]
26−[assembly: ComVisible(false)]
27−[assembly: Guid("D8064F6E-0B5D-4CBB-884E-75A2E11CA779")]
1+using System;
2+using System.Reflection;
3+using System.Runtime.InteropServices;
4+
5+// Assembly identity attributes.
6+[assembly: AssemblyVersion("1.1.141.0")]
7+
8+// Informational attributes.
9+[assembly: AssemblyCompany("Grid Protection Alliance")]
10+[assembly: AssemblyCopyright("Copyright © 2013. All Rights Reserved.")]
11+[assembly: AssemblyProduct("openPDC")]
12+
13+// Assembly manifest attributes.
14+#if DEBUG
15+[assembly: AssemblyConfiguration("Debug Build")]
16+#else
17+[assembly: AssemblyConfiguration("Release Build")]
18+#endif
19+
20+[assembly: AssemblyDefaultAlias("PIAdapters")]
21+[assembly: AssemblyDescription("OSI-PI Adapters for openPDC.")]
22+[assembly: AssemblyTitle("PIAdapters")]
23+
24+// Other configuration attributes.
25+[assembly: CLSCompliant(false)]
26+[assembly: ComVisible(false)]
27+[assembly: Guid("D8064F6E-0B5D-4CBB-884E-75A2E11CA779")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/TestingAdapters/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("TestingAdapters")]
9−[assembly: AssemblyDescription("Time-series framework testing input and output adapters.")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("TestingAdapters")]
13−[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("12075b30-0228-4a8d-ba77-448999424e8e")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("TestingAdapters")]
9+[assembly: AssemblyDescription("Time-series framework testing input and output adapters.")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("TestingAdapters")]
13+[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("12075b30-0228-4a8d-ba77-448999424e8e")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/Adapters/WavInputAdapter/Properties/AssemblyInfo.cs+36−36
@@ -1,36 +1,36 @@
1−using System.Reflection;
2−using System.Runtime.CompilerServices;
3−using System.Runtime.InteropServices;
4−
5−// General Information about an assembly is controlled through the following
6−// set of attributes. Change these attribute values to modify the information
7−// associated with an assembly.
8−[assembly: AssemblyTitle("WavInputAdapter")]
9−[assembly: AssemblyDescription("")]
10−[assembly: AssemblyConfiguration("")]
11−[assembly: AssemblyCompany("Grid Protection Alliance")]
12−[assembly: AssemblyProduct("WavInputAdapter")]
13−[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14−[assembly: AssemblyTrademark("")]
15−[assembly: AssemblyCulture("")]
16−
17−// Setting ComVisible to false makes the types in this assembly not visible
18−// to COM components. If you need to access a type in this assembly from
19−// COM, set the ComVisible attribute to true on that type.
20−[assembly: ComVisible(false)]
21−
22−// The following GUID is for the ID of the typelib if this project is exposed to COM
23−[assembly: Guid("93473f68-f36d-480a-abc5-117ff4ead419")]
24−
25−// Version information for an assembly consists of the following four values:
26−//
27−// Major Version
28−// Minor Version
29−// Build Number
30−// Revision
31−//
32−// You can specify all the values or you can default the Build and Revision Numbers
33−// by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
1+using System.Reflection;
2+using System.Runtime.CompilerServices;
3+using System.Runtime.InteropServices;
4+
5+// General Information about an assembly is controlled through the following
6+// set of attributes. Change these attribute values to modify the information
7+// associated with an assembly.
8+[assembly: AssemblyTitle("WavInputAdapter")]
9+[assembly: AssemblyDescription("")]
10+[assembly: AssemblyConfiguration("")]
11+[assembly: AssemblyCompany("Grid Protection Alliance")]
12+[assembly: AssemblyProduct("WavInputAdapter")]
13+[assembly: AssemblyCopyright("Copyright © 2010. All Rights Reserved.")]
14+[assembly: AssemblyTrademark("")]
15+[assembly: AssemblyCulture("")]
16+
17+// Setting ComVisible to false makes the types in this assembly not visible
18+// to COM components. If you need to access a type in this assembly from
19+// COM, set the ComVisible attribute to true on that type.
20+[assembly: ComVisible(false)]
21+
22+// The following GUID is for the ID of the typelib if this project is exposed to COM
23+[assembly: Guid("93473f68-f36d-480a-abc5-117ff4ead419")]
24+
25+// Version information for an assembly consists of the following four values:
26+//
27+// Major Version
28+// Minor Version
29+// Build Number
30+// Revision
31+//
32+// You can specify all the values or you can default the Build and Revision Numbers
33+// by using the '*' as shown below:
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/TimeSeriesFramework/Properties/AssemblyInfo.cs+40−40
@@ -1,40 +1,40 @@
1−using System.Reflection;
2−using System.Runtime.InteropServices;
3−
4−// General Information about an assembly is controlled through the following
5−// set of attributes. Change these attribute values to modify the information
6−// associated with an assembly.
7−[assembly: AssemblyTitle("TimeSeriesFramework")]
8−[assembly: AssemblyDescription("Time-series Data Processing Framework")]
9−[assembly: AssemblyCompany("Grid Protection Alliance")]
10−[assembly: AssemblyProduct("Time-series Data Processing Framework")]
11−[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
12−[assembly: AssemblyTrademark("")]
13−[assembly: AssemblyCulture("")]
14−
15−#if DEBUG
16−[assembly: AssemblyConfiguration("Debug Build")]
17−#else
18−[assembly: AssemblyConfiguration("Release Build")]
19−#endif
20−
21−// Setting ComVisible to false makes the types in this assembly not visible
22−// to COM components. If you need to access a type in this assembly from
23−// COM, set the ComVisible attribute to true on that type.
24−[assembly: ComVisible(false)]
25−
26−// The following GUID is for the ID of the typelib if this project is exposed to COM
27−[assembly: Guid("7cd3cb89-6610-4b64-b27a-d47fdae4bfe9")]
28−
29−// Version information for an assembly consists of the following four values:
30−//
31−// Major Version
32−// Minor Version
33−// Build Number
34−// Revision
35−//
36−// You can specify all the values or you can default the Build and Revision Numbers
37−// by using the '*' as shown below:
38−// [assembly: AssemblyVersion("2.1.99.0")]
39−[assembly: AssemblyVersion("2.1.99.0")]
40−
1+using System.Reflection;
2+using System.Runtime.InteropServices;
3+
4+// General Information about an assembly is controlled through the following
5+// set of attributes. Change these attribute values to modify the information
6+// associated with an assembly.
7+[assembly: AssemblyTitle("TimeSeriesFramework")]
8+[assembly: AssemblyDescription("Time-series Data Processing Framework")]
9+[assembly: AssemblyCompany("Grid Protection Alliance")]
10+[assembly: AssemblyProduct("Time-series Data Processing Framework")]
11+[assembly: AssemblyCopyright("Copyright © GPA, 2011. All Rights Reserved.")]
12+[assembly: AssemblyTrademark("")]
13+[assembly: AssemblyCulture("")]
14+
15+#if DEBUG
16+[assembly: AssemblyConfiguration("Debug Build")]
17+#else
18+[assembly: AssemblyConfiguration("Release Build")]
19+#endif
20+
21+// Setting ComVisible to false makes the types in this assembly not visible
22+// to COM components. If you need to access a type in this assembly from
23+// COM, set the ComVisible attribute to true on that type.
24+[assembly: ComVisible(false)]
25+
26+// The following GUID is for the ID of the typelib if this project is exposed to COM
27+[assembly: Guid("7cd3cb89-6610-4b64-b27a-d47fdae4bfe9")]
28+
29+// Version information for an assembly consists of the following four values:
30+//
31+// Major Version
32+// Minor Version
33+// Build Number
34+// Revision
35+//
36+// You can specify all the values or you can default the Build and Revision Numbers
37+// by using the '*' as shown below:
38+// [assembly: AssemblyVersion("1.1.141.0")]
39+[assembly: AssemblyVersion("1.1.141.0")]
40+
Source/OldCode/TimeSeriesFramework/Source/Libraries/TimeSeriesFramework/UI/Properties/AssemblyInfo.cs+3−3
@@ -35,6 +35,6 @@ using System.Runtime.InteropServices; · 34 unmodified lines
3535 //
3636 // You can specify all the values or you can default the Build and Revision Numbers
3737 // by using the '*' as shown below:
38−// [assembly: AssemblyVersion("2.1.99.0")]
39−[assembly: AssemblyVersion("2.1.99.0")]
40−[assembly: AssemblyFileVersion("2.1.99.0")]
38+// [assembly: AssemblyVersion("1.1.141.0")]
39+[assembly: AssemblyVersion("1.1.141.0")]
40+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Libraries/TimeSeriesFramework/UI/WPF/Properties/AssemblyInfo.cs+3−3
@@ -53,6 +53,6 @@ using System.Windows; · 52 unmodified lines
5353 //
5454 // You can specify all the values or you can default the Build and Revision Numbers
5555 // by using the '*' as shown below:
56−// [assembly: AssemblyVersion("2.1.99.0")]
57−[assembly: AssemblyVersion("2.1.99.0")]
58−[assembly: AssemblyFileVersion("2.1.99.0")]
56+// [assembly: AssemblyVersion("1.1.141.0")]
57+[assembly: AssemblyVersion("1.1.141.0")]
58+[assembly: AssemblyFileVersion("1.1.141.0")]
Source/OldCode/TimeSeriesFramework/Source/Tools/ConfigurationCacher/Properties/AssemblyInfo.cs+3−3
@@ -31,6 +31,6 @@ using System.Runtime.InteropServices; · 30 unmodified lines
3131 //
3232 // You can specify all the values or you can default the Build and Revision Numbers
3333 // by using the '*' as shown below:
34−// [assembly: AssemblyVersion("2.1.99.0")]
35−[assembly: AssemblyVersion("2.1.99.0")]
36−[assembly: AssemblyFileVersion("2.1.99.0")]
34+// [assembly: AssemblyVersion("1.1.141.0")]
35+[assembly: AssemblyVersion("1.1.141.0")]
36+[assembly: AssemblyFileVersion("1.1.141.0")]

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