Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit a994cb3

Browse files
authored
Merge pull request #674 from justcoding121/master
beta
2 parents 2993a6f + ec53a32 commit a994cb3

File tree

13 files changed

+923
-1
lines changed

13 files changed

+923
-1
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
5+
<section name="WindowsServiceExample.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6+
</sectionGroup>
7+
</configSections>
8+
<startup>
9+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
10+
</startup>
11+
<runtime>
12+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
13+
<dependentAssembly>
14+
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
15+
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
16+
</dependentAssembly>
17+
<dependentAssembly>
18+
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
19+
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
20+
</dependentAssembly>
21+
<dependentAssembly>
22+
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
23+
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
24+
</dependentAssembly>
25+
</assemblyBinding>
26+
</runtime>
27+
<applicationSettings>
28+
<WindowsServiceExample.Properties.Settings>
29+
<setting name="ListeningPort" serializeAs="String">
30+
<value>8080</value>
31+
</setting>
32+
<setting name="EnableIpV6" serializeAs="String">
33+
<value>True</value>
34+
</setting>
35+
<setting name="CheckCertificateRevocation" serializeAs="String">
36+
<value>NoCheck</value>
37+
</setting>
38+
<setting name="ConnectionTimeOutSeconds" serializeAs="String">
39+
<value>30</value>
40+
</setting>
41+
<setting name="Enable100ContinueBehaviour" serializeAs="String">
42+
<value>False</value>
43+
</setting>
44+
<setting name="EnableConnectionPool" serializeAs="String">
45+
<value>True</value>
46+
</setting>
47+
<setting name="EnableTcpServerConnectionPrefetch" serializeAs="String">
48+
<value>True</value>
49+
</setting>
50+
<setting name="EnableWinAuth" serializeAs="String">
51+
<value>False</value>
52+
</setting>
53+
<setting name="ForwardToUpstreamGateway" serializeAs="String">
54+
<value>False</value>
55+
</setting>
56+
<setting name="MaxCachedConnections" serializeAs="String">
57+
<value>2</value>
58+
</setting>
59+
<setting name="ReuseSocket" serializeAs="String">
60+
<value>True</value>
61+
</setting>
62+
<setting name="TcpTimeWaitSeconds" serializeAs="String">
63+
<value>30</value>
64+
</setting>
65+
<setting name="SaveFakeCertificates" serializeAs="String">
66+
<value>True</value>
67+
</setting>
68+
<setting name="EnableHttp2" serializeAs="String">
69+
<value>False</value>
70+
</setting>
71+
<setting name="NoDelay" serializeAs="String">
72+
<value>True</value>
73+
</setting>
74+
<setting name="ThreadPoolWorkerThreads" serializeAs="String">
75+
<value>-1</value>
76+
</setting>
77+
<setting name="DecryptSsl" serializeAs="String">
78+
<value>False</value>
79+
</setting>
80+
<setting name="LogErrors" serializeAs="String">
81+
<value>True</value>
82+
</setting>
83+
</WindowsServiceExample.Properties.Settings>
84+
</applicationSettings>
85+
</configuration>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System.ServiceProcess;
2+
3+
namespace WindowsServiceExample
4+
{
5+
static class Program
6+
{
7+
/// <summary>
8+
/// The main entry point for the application.
9+
/// </summary>
10+
static void Main()
11+
{
12+
ServiceBase[] ServicesToRun;
13+
ServicesToRun = new ServiceBase[]
14+
{
15+
new ProxyService()
16+
};
17+
ServiceBase.Run(ServicesToRun);
18+
}
19+
}
20+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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("WindowsServiceExample")]
8+
[assembly: AssemblyDescription("")]
9+
[assembly: AssemblyConfiguration("")]
10+
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyProduct("WindowsServiceExample")]
12+
[assembly: AssemblyCopyright("Copyright © 2019")]
13+
[assembly: AssemblyTrademark("")]
14+
[assembly: AssemblyCulture("")]
15+
16+
// Setting ComVisible to false makes the types in this assembly not visible
17+
// to COM components. If you need to access a type in this assembly from
18+
// COM, set the ComVisible attribute to true on that type.
19+
[assembly: ComVisible(false)]
20+
21+
// The following GUID is for the ID of the typelib if this project is exposed to COM
22+
[assembly: Guid("63635f50-7d6f-4a93-84c6-04cf9d2754c5")]
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 values or you can default the Build and Revision Numbers
32+
// by using the '*' as shown below:
33+
// [assembly: AssemblyVersion("1.0.*")]
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]

examples/Titanium.Web.Proxy.Examples.WindowsService/Properties/Settings.Designer.cs

Lines changed: 238 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)