├── EventLoggerConnector ├── IEventSink.cs ├── EventsDbConfiguration.cs ├── Message.cs ├── EventsDbContext.cs ├── Program.cs ├── Migrations │ ├── Configuration.cs │ ├── 202202011919142_Initial.cs │ ├── 202202011919142_Initial.Designer.cs │ ├── 202202201441020_Initial.Designer.cs │ ├── 202202201441020_Initial.cs │ ├── 202202011919142_Initial.resx │ └── 202202201441020_Initial.resx ├── SqlGenerator.cs ├── PostresSink.cs ├── packages.config ├── EventLoggerConnector.cs ├── Properties │ └── AssemblyInfo.cs ├── Public_App.config └── EventLoggerConnector.csproj ├── README.md ├── LICENSE ├── EventLoggerConnector.sln └── .gitignore /EventLoggerConnector/IEventSink.cs: -------------------------------------------------------------------------------- 1 | namespace EventLoggerConnector 2 | { 3 | public interface IEventSink 4 | { 5 | void OnMessage(Message msg); 6 | } 7 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # EventLoggerConnector 2 | Get Events from the TwinCAT EventLogger 3 | 4 | 5 | ## Getting started 6 | If you want to work with the code, rename ```Public_App.config``` to ```App.config``` and modify the ConnectionString. 7 | Note that you need to have a local installation of TwinCAT, because the program uses the EventLogger via COM interface. 8 | -------------------------------------------------------------------------------- /EventLoggerConnector/EventsDbConfiguration.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity; 2 | 3 | namespace EventLoggerConnector 4 | { 5 | internal class EventsDbConfiguration : DbConfiguration 6 | { 7 | public EventsDbConfiguration() 8 | { 9 | SetMigrationSqlGenerator("Npgsql", () => new SqlGenerator()); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EventLoggerConnector/Message.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EventLoggerConnector 4 | { 5 | public class Message 6 | { 7 | public int Id { get; internal set; } 8 | public Guid EventClass { get; internal set; } 9 | public int EventId { get; internal set; } 10 | public string Text { get; internal set; } 11 | public DateTime TimeRaised { get; internal set; } 12 | public int SourceId { get; internal set; } 13 | public string SourceName { get; internal set; } 14 | } 15 | } -------------------------------------------------------------------------------- /EventLoggerConnector/EventsDbContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data.Entity; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace EventLoggerConnector 9 | { 10 | [DbConfigurationType(typeof(EventsDbConfiguration))] 11 | public class EventsDbContext : DbContext 12 | { 13 | public DbSet Messages { get; set; } 14 | 15 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 16 | { 17 | modelBuilder.Entity(); 18 | 19 | base.OnModelCreating(modelBuilder); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /EventLoggerConnector/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EventLoggerConnector 8 | { 9 | internal class Program 10 | { 11 | private const int LangId = 1031; 12 | static void Main(string[] args) 13 | { 14 | using(var sink = new PostresSink()) 15 | { 16 | var connector = new EventLoggerConnector(sink, LangId); 17 | 18 | connector.Connect(); 19 | 20 | Console.WriteLine("Press Enter to exit."); 21 | Console.ReadKey(); 22 | 23 | connector.Disconnect(); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace EventLoggerConnector.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity; 5 | using System.Data.Entity.Migrations; 6 | using System.Linq; 7 | 8 | internal sealed class Configuration : DbMigrationsConfiguration 9 | { 10 | public Configuration() 11 | { 12 | AutomaticMigrationsEnabled = false; 13 | } 14 | 15 | protected override void Seed(EventsDbContext context) 16 | { 17 | // This method will be called after migrating to the latest version. 18 | 19 | // You can use the DbSet.AddOrUpdate() helper extension method 20 | // to avoid creating duplicate seed data. 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /EventLoggerConnector/SqlGenerator.cs: -------------------------------------------------------------------------------- 1 | using Npgsql; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Data.Entity.Migrations.Model; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace EventLoggerConnector 10 | { 11 | internal class SqlGenerator : NpgsqlMigrationSqlGenerator 12 | { 13 | private readonly string[] systemColumnNames = { "oid", "tableoid", "xmin", "cmin", "xmax", "cmax", "ctid" }; 14 | 15 | protected override void Convert(CreateTableOperation createTableOperation) 16 | { 17 | var systemColumns = createTableOperation.Columns.Where(x => systemColumnNames.Contains(x.Name)).ToArray(); 18 | foreach (var systemColumn in systemColumns) 19 | createTableOperation.Columns.Remove(systemColumn); 20 | base.Convert(createTableOperation); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/202202011919142_Initial.cs: -------------------------------------------------------------------------------- 1 | namespace EventLoggerConnector.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity.Migrations; 5 | 6 | public partial class Initial : DbMigration 7 | { 8 | public override void Up() 9 | { 10 | CreateTable( 11 | "dbo.Messages", 12 | c => new 13 | { 14 | Id = c.Int(nullable: false, identity: true), 15 | EventClass = c.Guid(nullable: false), 16 | Text = c.String(), 17 | Time = c.DateTime(nullable: false), 18 | SourceName = c.String(), 19 | }) 20 | .PrimaryKey(t => t.Id); 21 | 22 | } 23 | 24 | public override void Down() 25 | { 26 | DropTable("dbo.Messages"); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/202202011919142_Initial.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace EventLoggerConnector.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.4.0")] 10 | public sealed partial class Initial : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(Initial)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "202202011919142_Initial"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/202202201441020_Initial.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace EventLoggerConnector.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.4.0")] 10 | public sealed partial class Initial : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(Initial)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "202202201441020_Initial"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/202202201441020_Initial.cs: -------------------------------------------------------------------------------- 1 | namespace EventLoggerConnector.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity.Migrations; 5 | 6 | public partial class Initial : DbMigration 7 | { 8 | public override void Up() 9 | { 10 | CreateTable( 11 | "dbo.Messages", 12 | c => new 13 | { 14 | Id = c.Int(nullable: false, identity: true), 15 | EventClass = c.Guid(nullable: false), 16 | EventId = c.Int(nullable: false), 17 | Text = c.String(), 18 | TimeRaised = c.DateTime(nullable: false), 19 | SourceId = c.Int(nullable: false), 20 | SourceName = c.String(), 21 | }) 22 | .PrimaryKey(t => t.Id); 23 | 24 | } 25 | 26 | public override void Down() 27 | { 28 | DropTable("dbo.Messages"); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /EventLoggerConnector/PostresSink.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EventLoggerConnector 4 | { 5 | internal class PostresSink : IEventSink, IDisposable 6 | { 7 | private readonly EventsDbContext _context; 8 | public PostresSink() 9 | { 10 | _context = new EventsDbContext(); 11 | } 12 | 13 | public void OnMessage(Message msg) 14 | { 15 | _context?.Messages.Add(msg); 16 | 17 | int ret = 0; 18 | try 19 | { 20 | ret = (int)(_context?.SaveChanges()); 21 | } 22 | catch (Exception e) 23 | { 24 | Console.WriteLine(e.Message); 25 | if (e.InnerException != null) 26 | { 27 | Console.WriteLine(e.InnerException.InnerException.Message); 28 | } 29 | } 30 | Console.WriteLine($"{ret} entries written."); 31 | } 32 | 33 | public void Dispose() 34 | { 35 | _context?.Dispose(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /EventLoggerConnector/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Jan Hecht 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /EventLoggerConnector.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32120.378 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventLoggerConnector", "EventLoggerConnector\EventLoggerConnector.csproj", "{09A43F95-2DB3-403D-A994-27BD5968077A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {09A43F95-2DB3-403D-A994-27BD5968077A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {09A43F95-2DB3-403D-A994-27BD5968077A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {09A43F95-2DB3-403D-A994-27BD5968077A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {09A43F95-2DB3-403D-A994-27BD5968077A}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {E24AF266-84B4-49D6-A269-7EC784581ECD} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /EventLoggerConnector/EventLoggerConnector.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using TcEventLoggerAdsProxyLib; 7 | 8 | namespace EventLoggerConnector 9 | { 10 | internal class EventLoggerConnector 11 | { 12 | private IEventSink _sink; 13 | private int _langId; 14 | private TcEventLogger _logger; 15 | 16 | public EventLoggerConnector(IEventSink sink, int langId = 1033) 17 | { 18 | _sink = sink; 19 | _langId = langId; 20 | 21 | _logger = new TcEventLogger(); 22 | _logger.MessageSent += OnMessageSent; 23 | //logger.AlarmRaised += OnAlarmRaised; 24 | //logger.AlarmCleared += OnAlarmCleared; 25 | //logger.AlarmConfirmed += OnAlarmConfirmed; 26 | } 27 | 28 | private void OnMessageSent(TcMessage evtObj) 29 | { 30 | var msg = new Message() 31 | { 32 | EventClass = evtObj.EventClass, 33 | EventId = unchecked( (int) evtObj.EventId ), 34 | Text = evtObj.GetText(_langId), 35 | TimeRaised = evtObj.TimeRaised, 36 | SourceId = unchecked( (int) evtObj.SourceId ), 37 | SourceName = evtObj.SourceName 38 | }; 39 | _sink.OnMessage(msg); 40 | } 41 | 42 | public void Connect() => _logger.Connect(); 43 | 44 | public void Disconnect() => _logger.Disconnect(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /EventLoggerConnector/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Allgemeine Informationen über eine Assembly werden über die folgenden 6 | // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, 7 | // die einer Assembly zugeordnet sind. 8 | [assembly: AssemblyTitle("EventLoggerConnector")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("EventLoggerConnector")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly 18 | // für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von 19 | // COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. 20 | [assembly: ComVisible(false)] 21 | 22 | // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird 23 | [assembly: Guid("09a43f95-2db3-403d-a994-27bd5968077a")] 24 | 25 | // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: 26 | // 27 | // Hauptversion 28 | // Nebenversion 29 | // Buildnummer 30 | // Revision 31 | // 32 | // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, 33 | // indem Sie "*" wie unten gezeigt eingeben: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /EventLoggerConnector/Public_App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/202202011919142_Initial.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | H4sIAAAAAAAEAM1XzW7jNhC+F+g7EDxnzTjZQxvIu0jtZBE0ToJVdu+0NFaIUqQqkoH9bD3sI/UVOtS/Jf+mQVH4Yo0438x8nD/9/deP4PMqleQVciO0mtDx6JwSUJGOhUom1Nnlh1/o508//xTcxOmKfK/PXfpzqKnMhL5Ym10xZqIXSLkZpSLKtdFLO4p0ynis2cX5+a9sPGaAEBSxCAm+OmVFCsUDPk61iiCzjsu5jkGaSo5vwgKVPPAUTMYjmNCbV1D2XicJ5KimILI6p+RaCo6+hCCXlHCltOUWPb36ZiC0uVZJmKGAy+d1BnhuyaWBKoKr9vixwZxf+GBYq1hDRc5YnZ4IOL6s2GF99TdxTBv2kL8b5NmufdQFhxM6B2N4grH3bV1NZe7PbWd4VOmdkW1vz5rMwATyvzMyddK6HCYKnM25PCNPbiFF9Dusn/UfoCbKSdn1FH3FdxsCFD3lOoPcrr/CsvL/LqaEbeqxvmKj1tEpQ7tT9vKCkgc0zhcSmkTo0BBiPPAFFOTcQvzErYVceQwoqBxY79kq6JlKbkxt84sT8RaT+2GeYWVrAExgrEZK5nx1DyqxL3iLfEXJrVhBXEsq1G9KYPGiks3dYSNYgrWRGUZbPp/oaahdHoH//87+BqxN3mFKY+5ZLvCWuryb2cLLC+4G+Y2toEpxU5nbjKvEDcFuVgreY+tH2WFGTRFt87fxrO1irGxjdbtjO/pdMOdZhtR1+l8lIWHZ/KYfwtN7QlpisMhsaQ2Nt40lzH+MrfcWTaOntyI3FjOFL7i/vGmcDo7172EHx7W1HtX9+m+ZrxX8/86N72hTfaCWyVsMLkXFIk5o/Gkb40CzmEJc8nxLV5lq6VK1qzPt0+72iS5KV348Wtkuujil5ASEovY3EArJ8QjdRtDF6cqHaAHrXUw/BdggB3rdv59T+0qyf6Sx3pRmrwSDqhwO7yWD+iiPUII0vYrY18ZDlpg/ZSuZcyWWYGw5Een4o9+qNjaZ/89WwYyJ5XGrxX8+1YWyHyk5OLhPHGzDSe7+7SQvJ1MLcOqQ9juzsTzN3mFKH/bltAE8nA9Hjdd907WsoAmNFxq9Lt1sp/IbZ++woAPW/RwJZmBE0kIE1XDBwmlB6zN3aqlrpjG0rkf1kd5FzMHyGBm6zq1Y8sji6whDKham71w6n3jpAuI79ehs5uy1MZAu5MbeGbD99osFY9Pn4DHzT+Y9QkA3BYYAj+o3J2Tc+H07TMRdED5ZqlJFr3BhRLhk3SA9aHUkUEXfDDJQvtCfIc0kgplHFfJXeItvuCfeQ8Kjdd2md4McvohN2oOZ4EnOU1NhtPr+E5v5b+xP/wBT6XTilQ8AAA== 122 | 123 | 124 | dbo 125 | 126 | -------------------------------------------------------------------------------- /EventLoggerConnector/Migrations/202202201441020_Initial.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | H4sIAAAAAAAEAM1Y227jNhB9L9B/EPicNeNkH9pA3kVqJ4ugcRJE2X2npbFClCJVkgrsb+tDP6m/0KHuF98TFEVe4hHnzIUzR8f+56+//a+rRHhvoA1XckLGo3PigQxVxGU8IZldfvqFfP3y80/+TZSsvB/VuUt3Dj2lmZBXa9MrSk34Cgkzo4SHWhm1tKNQJZRFil6cn/9Kx2MKCEEQy/P850xankD+AT9OlQwhtRkTcxWBMKUdnwQ5qvfAEjApC2FCbt5A2nsVx6DRTUJolSbeteAMcwlALInHpFSWWcz06ruBwGol4yBFAxMv6xTw3JIJA2UFV83xQ4s5v3DF0MaxggozY1VyJOD4suwO7buf1GNSdw/7d4N9tmtXdd7DCZmDMSzG2vuxrqZCu3ObOzwq/c68TU/P6snAAXJ/Z940EzbTMJGQWc3EmfeULQQPf4f1i/oD5ERmQrQzxVzxWceApietUtB2/QzLMv+7iHi060f7jrVby6co7U7aywviPWBwthBQD0KrDQHWA99AgmYWoidmLWjpMCBv5SB6L1benqlgxlQxv2U82hDyAJj9ee8GeYGVrRBwC3CliTdnq3uQsX3FUWAr4t3yFUSVpUT9LjkyADpZne0Pgnv8zLiBOtkZNs5Zj843UJkO4b1VFyju/w+u3afNNg13DJfBMo5j075BM1s4e34Pg4VDbip3zpThunUVuAHY7uriYDV5FJQ3qrd6U751Zg2t0oJXK/6lWwjYn7M0xda1CLm0eEHBxtNPwfEklRQYNDQbuKrOto6EC4m19Z5iaMz0lmtjcd7YgrnLm0bJ4Fj/Hrb0uIrWa3WfkJrOVw7u/9aNb+HNPlDTyVssLkHHvE6o82mYeuCZvxaZYHoDzU2VyBK5jSp3ebeJq43Sth+J1k+oNh6OU1BYG6SwHIHQ4qcOTst+OFpDUW2sxnosUkFTQ6zCPkTzaW9s+gNKBxPae1n2J34XYfSP1NFr4ugRhF8u634ZN9je4gjxsE1vPHKb+5DG5k/RWOZM8iUYWwgIMv7sRGhH+P1/RBg1JhKHKbH/XARxaT8Tb6/OOUWxdIRP9gHCp8j1HbqnePc2AKdJGvdlxViWpO/WNCcVNJQ0+8s6Tq0MX6YHaZFdUqRY6AmJFgqzLtJsJMyJQmXILz5tf5n0Z2B43ED45ZsY97gBrc7cyaWqOo2ltTOqjvQuYg6WRdiha235koUWH4dYUq4ufzCRuQFOFhDdycfMppm9NgaSheh8a/Dp7vi5Guvm7D+m7pP5iBIwTY4lwKP8LeMiqvO+HQ7iNgg3LCVzYFaorhEuXtdID0oeCFS2bwYpSMc7L5CkAsHMowzYG5ySG4rqe4hZuK7eGttB9l9Et+3+jLNYs8SUGI2/+4GEul9IvvwLCHYSMlMRAAA= 122 | 123 | 124 | dbo 125 | 126 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | App.config 7 | 8 | # User-specific files 9 | *.rsuser 10 | *.suo 11 | *.user 12 | *.userosscache 13 | *.sln.docstates 14 | 15 | # User-specific files (MonoDevelop/Xamarin Studio) 16 | *.userprefs 17 | 18 | # Mono auto generated files 19 | mono_crash.* 20 | 21 | # Build results 22 | [Dd]ebug/ 23 | [Dd]ebugPublic/ 24 | [Rr]elease/ 25 | [Rr]eleases/ 26 | x64/ 27 | x86/ 28 | [Ww][Ii][Nn]32/ 29 | [Aa][Rr][Mm]/ 30 | [Aa][Rr][Mm]64/ 31 | bld/ 32 | [Bb]in/ 33 | [Oo]bj/ 34 | [Ll]og/ 35 | [Ll]ogs/ 36 | 37 | # Visual Studio 2015/2017 cache/options directory 38 | .vs/ 39 | # Uncomment if you have tasks that create the project's static files in wwwroot 40 | #wwwroot/ 41 | 42 | # Visual Studio 2017 auto generated files 43 | Generated\ Files/ 44 | 45 | # MSTest test Results 46 | [Tt]est[Rr]esult*/ 47 | [Bb]uild[Ll]og.* 48 | 49 | # NUnit 50 | *.VisualState.xml 51 | TestResult.xml 52 | nunit-*.xml 53 | 54 | # Build Results of an ATL Project 55 | [Dd]ebugPS/ 56 | [Rr]eleasePS/ 57 | dlldata.c 58 | 59 | # Benchmark Results 60 | BenchmarkDotNet.Artifacts/ 61 | 62 | # .NET Core 63 | project.lock.json 64 | project.fragment.lock.json 65 | artifacts/ 66 | 67 | # ASP.NET Scaffolding 68 | ScaffoldingReadMe.txt 69 | 70 | # StyleCop 71 | StyleCopReport.xml 72 | 73 | # Files built by Visual Studio 74 | *_i.c 75 | *_p.c 76 | *_h.h 77 | *.ilk 78 | *.meta 79 | *.obj 80 | *.iobj 81 | *.pch 82 | *.pdb 83 | *.ipdb 84 | *.pgc 85 | *.pgd 86 | *.rsp 87 | *.sbr 88 | *.tlb 89 | *.tli 90 | *.tlh 91 | *.tmp 92 | *.tmp_proj 93 | *_wpftmp.csproj 94 | *.log 95 | *.tlog 96 | *.vspscc 97 | *.vssscc 98 | .builds 99 | *.pidb 100 | *.svclog 101 | *.scc 102 | 103 | # Chutzpah Test files 104 | _Chutzpah* 105 | 106 | # Visual C++ cache files 107 | ipch/ 108 | *.aps 109 | *.ncb 110 | *.opendb 111 | *.opensdf 112 | *.sdf 113 | *.cachefile 114 | *.VC.db 115 | *.VC.VC.opendb 116 | 117 | # Visual Studio profiler 118 | *.psess 119 | *.vsp 120 | *.vspx 121 | *.sap 122 | 123 | # Visual Studio Trace Files 124 | *.e2e 125 | 126 | # TFS 2012 Local Workspace 127 | $tf/ 128 | 129 | # Guidance Automation Toolkit 130 | *.gpState 131 | 132 | # ReSharper is a .NET coding add-in 133 | _ReSharper*/ 134 | *.[Rr]e[Ss]harper 135 | *.DotSettings.user 136 | 137 | # TeamCity is a build add-in 138 | _TeamCity* 139 | 140 | # DotCover is a Code Coverage Tool 141 | *.dotCover 142 | 143 | # AxoCover is a Code Coverage Tool 144 | .axoCover/* 145 | !.axoCover/settings.json 146 | 147 | # Coverlet is a free, cross platform Code Coverage Tool 148 | coverage*.json 149 | coverage*.xml 150 | coverage*.info 151 | 152 | # Visual Studio code coverage results 153 | *.coverage 154 | *.coveragexml 155 | 156 | # NCrunch 157 | _NCrunch_* 158 | .*crunch*.local.xml 159 | nCrunchTemp_* 160 | 161 | # MightyMoose 162 | *.mm.* 163 | AutoTest.Net/ 164 | 165 | # Web workbench (sass) 166 | .sass-cache/ 167 | 168 | # Installshield output folder 169 | [Ee]xpress/ 170 | 171 | # DocProject is a documentation generator add-in 172 | DocProject/buildhelp/ 173 | DocProject/Help/*.HxT 174 | DocProject/Help/*.HxC 175 | DocProject/Help/*.hhc 176 | DocProject/Help/*.hhk 177 | DocProject/Help/*.hhp 178 | DocProject/Help/Html2 179 | DocProject/Help/html 180 | 181 | # Click-Once directory 182 | publish/ 183 | 184 | # Publish Web Output 185 | *.[Pp]ublish.xml 186 | *.azurePubxml 187 | # Note: Comment the next line if you want to checkin your web deploy settings, 188 | # but database connection strings (with potential passwords) will be unencrypted 189 | *.pubxml 190 | *.publishproj 191 | 192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 193 | # checkin your Azure Web App publish settings, but sensitive information contained 194 | # in these scripts will be unencrypted 195 | PublishScripts/ 196 | 197 | # NuGet Packages 198 | *.nupkg 199 | # NuGet Symbol Packages 200 | *.snupkg 201 | # The packages folder can be ignored because of Package Restore 202 | **/[Pp]ackages/* 203 | # except build/, which is used as an MSBuild target. 204 | !**/[Pp]ackages/build/ 205 | # Uncomment if necessary however generally it will be regenerated when needed 206 | #!**/[Pp]ackages/repositories.config 207 | # NuGet v3's project.json files produces more ignorable files 208 | *.nuget.props 209 | *.nuget.targets 210 | 211 | # Microsoft Azure Build Output 212 | csx/ 213 | *.build.csdef 214 | 215 | # Microsoft Azure Emulator 216 | ecf/ 217 | rcf/ 218 | 219 | # Windows Store app package directories and files 220 | AppPackages/ 221 | BundleArtifacts/ 222 | Package.StoreAssociation.xml 223 | _pkginfo.txt 224 | *.appx 225 | *.appxbundle 226 | *.appxupload 227 | 228 | # Visual Studio cache files 229 | # files ending in .cache can be ignored 230 | *.[Cc]ache 231 | # but keep track of directories ending in .cache 232 | !?*.[Cc]ache/ 233 | 234 | # Others 235 | ClientBin/ 236 | ~$* 237 | *~ 238 | *.dbmdl 239 | *.dbproj.schemaview 240 | *.jfm 241 | *.pfx 242 | *.publishsettings 243 | orleans.codegen.cs 244 | 245 | # Including strong name files can present a security risk 246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 247 | #*.snk 248 | 249 | # Since there are multiple workflows, uncomment next line to ignore bower_components 250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 251 | #bower_components/ 252 | 253 | # RIA/Silverlight projects 254 | Generated_Code/ 255 | 256 | # Backup & report files from converting an old project file 257 | # to a newer Visual Studio version. Backup files are not needed, 258 | # because we have git ;-) 259 | _UpgradeReport_Files/ 260 | Backup*/ 261 | UpgradeLog*.XML 262 | UpgradeLog*.htm 263 | ServiceFabricBackup/ 264 | *.rptproj.bak 265 | 266 | # SQL Server files 267 | *.mdf 268 | *.ldf 269 | *.ndf 270 | 271 | # Business Intelligence projects 272 | *.rdl.data 273 | *.bim.layout 274 | *.bim_*.settings 275 | *.rptproj.rsuser 276 | *- [Bb]ackup.rdl 277 | *- [Bb]ackup ([0-9]).rdl 278 | *- [Bb]ackup ([0-9][0-9]).rdl 279 | 280 | # Microsoft Fakes 281 | FakesAssemblies/ 282 | 283 | # GhostDoc plugin setting file 284 | *.GhostDoc.xml 285 | 286 | # Node.js Tools for Visual Studio 287 | .ntvs_analysis.dat 288 | node_modules/ 289 | 290 | # Visual Studio 6 build log 291 | *.plg 292 | 293 | # Visual Studio 6 workspace options file 294 | *.opt 295 | 296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 297 | *.vbw 298 | 299 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 300 | *.vbp 301 | 302 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 303 | *.dsw 304 | *.dsp 305 | 306 | # Visual Studio 6 technical files 307 | *.ncb 308 | *.aps 309 | 310 | # Visual Studio LightSwitch build output 311 | **/*.HTMLClient/GeneratedArtifacts 312 | **/*.DesktopClient/GeneratedArtifacts 313 | **/*.DesktopClient/ModelManifest.xml 314 | **/*.Server/GeneratedArtifacts 315 | **/*.Server/ModelManifest.xml 316 | _Pvt_Extensions 317 | 318 | # Paket dependency manager 319 | .paket/paket.exe 320 | paket-files/ 321 | 322 | # FAKE - F# Make 323 | .fake/ 324 | 325 | # CodeRush personal settings 326 | .cr/personal 327 | 328 | # Python Tools for Visual Studio (PTVS) 329 | __pycache__/ 330 | *.pyc 331 | 332 | # Cake - Uncomment if you are using it 333 | # tools/** 334 | # !tools/packages.config 335 | 336 | # Tabs Studio 337 | *.tss 338 | 339 | # Telerik's JustMock configuration file 340 | *.jmconfig 341 | 342 | # BizTalk build output 343 | *.btp.cs 344 | *.btm.cs 345 | *.odx.cs 346 | *.xsd.cs 347 | 348 | # OpenCover UI analysis results 349 | OpenCover/ 350 | 351 | # Azure Stream Analytics local run output 352 | ASALocalRun/ 353 | 354 | # MSBuild Binary and Structured Log 355 | *.binlog 356 | 357 | # NVidia Nsight GPU debugger configuration file 358 | *.nvuser 359 | 360 | # MFractors (Xamarin productivity tool) working folder 361 | .mfractor/ 362 | 363 | # Local History for Visual Studio 364 | .localhistory/ 365 | 366 | # Visual Studio History (VSHistory) files 367 | .vshistory/ 368 | 369 | # BeatPulse healthcheck temp database 370 | healthchecksdb 371 | 372 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 373 | MigrationBackup/ 374 | 375 | # Ionide (cross platform F# VS Code tools) working folder 376 | .ionide/ 377 | 378 | # Fody - auto-generated XML schema 379 | FodyWeavers.xsd 380 | 381 | # VS Code files for those working on multiple tools 382 | .vscode/* 383 | !.vscode/settings.json 384 | !.vscode/tasks.json 385 | !.vscode/launch.json 386 | !.vscode/extensions.json 387 | *.code-workspace 388 | 389 | # Local History for Visual Studio Code 390 | .history/ 391 | 392 | # Windows Installer files from build outputs 393 | *.cab 394 | *.msi 395 | *.msix 396 | *.msm 397 | *.msp 398 | 399 | # JetBrains Rider 400 | *.sln.iml 401 | -------------------------------------------------------------------------------- /EventLoggerConnector/EventLoggerConnector.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {09A43F95-2DB3-403D-A994-27BD5968077A} 9 | Exe 10 | EventLoggerConnector 11 | EventLoggerConnector 12 | v4.8 13 | 512 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | AnyCPU 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | ..\packages\EntityFramework.6.4.0\lib\net45\EntityFramework.dll 41 | 42 | 43 | ..\packages\EntityFramework.6.4.0\lib\net45\EntityFramework.SqlServer.dll 44 | 45 | 46 | ..\packages\EntityFramework6.Npgsql.6.4.3\lib\net461\EntityFramework6.Npgsql.dll 47 | 48 | 49 | ..\packages\Microsoft.Bcl.AsyncInterfaces.1.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll 50 | 51 | 52 | ..\packages\Npgsql.4.1.3\lib\net461\Npgsql.dll 53 | 54 | 55 | 56 | ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll 57 | 58 | 59 | 60 | 61 | 62 | ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll 63 | 64 | 65 | 66 | ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll 67 | 68 | 69 | ..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll 70 | 71 | 72 | ..\packages\System.Text.Encodings.Web.4.7.2\lib\net461\System.Text.Encodings.Web.dll 73 | 74 | 75 | ..\packages\System.Text.Json.4.6.0\lib\net461\System.Text.Json.dll 76 | 77 | 78 | ..\packages\System.Threading.Tasks.Extensions.4.5.3\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll 79 | 80 | 81 | 82 | ..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 202202201441020_Initial.cs 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | {7D6E5094-2147-4C11-A2DB-097C710DF795} 114 | 2 115 | 0 116 | 0 117 | primary 118 | False 119 | True 120 | 121 | 122 | 123 | 124 | 202202201441020_Initial.cs 125 | 126 | 127 | 128 | 129 | 130 | Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". 131 | 132 | 133 | 134 | 135 | 136 | --------------------------------------------------------------------------------