From 13cfead3c947e8acba6b2610fac2e918d36dd940 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Wed, 5 Oct 2022 17:42:08 +0200 Subject: [PATCH] neues Windows Service Project (AIS2) angelegt --- AIS/bsmd.AIS2Service/AIS2_Service.Designer.cs | 37 ++++++++++++ AIS/bsmd.AIS2Service/AIS2_Service.cs | 28 +++++++++ AIS/bsmd.AIS2Service/App.config | 6 ++ AIS/bsmd.AIS2Service/Program.cs | 25 ++++++++ .../Properties/AssemblyInfo.cs | 36 +++++++++++ AIS/bsmd.AIS2Service/bsmd.AIS2Service.csproj | 60 +++++++++++++++++++ AIS/bsmd.AIS2Service/bsmd.AIS2Service.sln | 25 ++++++++ 7 files changed, 217 insertions(+) create mode 100644 AIS/bsmd.AIS2Service/AIS2_Service.Designer.cs create mode 100644 AIS/bsmd.AIS2Service/AIS2_Service.cs create mode 100644 AIS/bsmd.AIS2Service/App.config create mode 100644 AIS/bsmd.AIS2Service/Program.cs create mode 100644 AIS/bsmd.AIS2Service/Properties/AssemblyInfo.cs create mode 100644 AIS/bsmd.AIS2Service/bsmd.AIS2Service.csproj create mode 100644 AIS/bsmd.AIS2Service/bsmd.AIS2Service.sln diff --git a/AIS/bsmd.AIS2Service/AIS2_Service.Designer.cs b/AIS/bsmd.AIS2Service/AIS2_Service.Designer.cs new file mode 100644 index 00000000..7c2d1b5c --- /dev/null +++ b/AIS/bsmd.AIS2Service/AIS2_Service.Designer.cs @@ -0,0 +1,37 @@ +namespace bsmd.AIS2Service +{ + partial class AIS2_Service + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + this.ServiceName = "Service1"; + } + + #endregion + } +} diff --git a/AIS/bsmd.AIS2Service/AIS2_Service.cs b/AIS/bsmd.AIS2Service/AIS2_Service.cs new file mode 100644 index 00000000..269eea9e --- /dev/null +++ b/AIS/bsmd.AIS2Service/AIS2_Service.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Linq; +using System.ServiceProcess; +using System.Text; +using System.Threading.Tasks; + +namespace bsmd.AIS2Service +{ + public partial class AIS2_Service : ServiceBase + { + public AIS2_Service() + { + InitializeComponent(); + } + + protected override void OnStart(string[] args) + { + } + + protected override void OnStop() + { + } + } +} diff --git a/AIS/bsmd.AIS2Service/App.config b/AIS/bsmd.AIS2Service/App.config new file mode 100644 index 00000000..193aecc6 --- /dev/null +++ b/AIS/bsmd.AIS2Service/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AIS/bsmd.AIS2Service/Program.cs b/AIS/bsmd.AIS2Service/Program.cs new file mode 100644 index 00000000..97c417fc --- /dev/null +++ b/AIS/bsmd.AIS2Service/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.ServiceProcess; +using System.Text; +using System.Threading.Tasks; + +namespace bsmd.AIS2Service +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + static void Main() + { + ServiceBase[] ServicesToRun; + ServicesToRun = new ServiceBase[] + { + new AIS2_Service() + }; + ServiceBase.Run(ServicesToRun); + } + } +} diff --git a/AIS/bsmd.AIS2Service/Properties/AssemblyInfo.cs b/AIS/bsmd.AIS2Service/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..4d9b3e15 --- /dev/null +++ b/AIS/bsmd.AIS2Service/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("bsmd.AIS2Service")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("bsmd.AIS2Service")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("73c2580c-4ce2-44dc-9bcf-41c6f860cfcc")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AIS/bsmd.AIS2Service/bsmd.AIS2Service.csproj b/AIS/bsmd.AIS2Service/bsmd.AIS2Service.csproj new file mode 100644 index 00000000..fc46c0ed --- /dev/null +++ b/AIS/bsmd.AIS2Service/bsmd.AIS2Service.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {73C2580C-4CE2-44DC-9BCF-41C6F860CFCC} + WinExe + bsmd.AIS2Service + bsmd.AIS2Service + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + Component + + + AIS2_Service.cs + + + + + + + + + \ No newline at end of file diff --git a/AIS/bsmd.AIS2Service/bsmd.AIS2Service.sln b/AIS/bsmd.AIS2Service/bsmd.AIS2Service.sln new file mode 100644 index 00000000..e06f5004 --- /dev/null +++ b/AIS/bsmd.AIS2Service/bsmd.AIS2Service.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32901.215 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bsmd.AIS2Service", "bsmd.AIS2Service.csproj", "{73C2580C-4CE2-44DC-9BCF-41C6F860CFCC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {73C2580C-4CE2-44DC-9BCF-41C6F860CFCC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {73C2580C-4CE2-44DC-9BCF-41C6F860CFCC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {73C2580C-4CE2-44DC-9BCF-41C6F860CFCC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {73C2580C-4CE2-44DC-9BCF-41C6F860CFCC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D6D56AE8-DE1A-4A70-8BB5-AA74F6606412} + EndGlobalSection +EndGlobal