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

Stable #675

Merged
merged 7 commits into from
Nov 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions examples/Titanium.Web.Proxy.Examples.WindowsService/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="WindowsServiceExample.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<applicationSettings>
<WindowsServiceExample.Properties.Settings>
<setting name="ListeningPort" serializeAs="String">
<value>8080</value>
</setting>
<setting name="EnableIpV6" serializeAs="String">
<value>True</value>
</setting>
<setting name="CheckCertificateRevocation" serializeAs="String">
<value>NoCheck</value>
</setting>
<setting name="ConnectionTimeOutSeconds" serializeAs="String">
<value>30</value>
</setting>
<setting name="Enable100ContinueBehaviour" serializeAs="String">
<value>False</value>
</setting>
<setting name="EnableConnectionPool" serializeAs="String">
<value>True</value>
</setting>
<setting name="EnableTcpServerConnectionPrefetch" serializeAs="String">
<value>True</value>
</setting>
<setting name="EnableWinAuth" serializeAs="String">
<value>False</value>
</setting>
<setting name="ForwardToUpstreamGateway" serializeAs="String">
<value>False</value>
</setting>
<setting name="MaxCachedConnections" serializeAs="String">
<value>2</value>
</setting>
<setting name="ReuseSocket" serializeAs="String">
<value>True</value>
</setting>
<setting name="TcpTimeWaitSeconds" serializeAs="String">
<value>30</value>
</setting>
<setting name="SaveFakeCertificates" serializeAs="String">
<value>True</value>
</setting>
<setting name="EnableHttp2" serializeAs="String">
<value>False</value>
</setting>
<setting name="NoDelay" serializeAs="String">
<value>True</value>
</setting>
<setting name="ThreadPoolWorkerThreads" serializeAs="String">
<value>-1</value>
</setting>
<setting name="DecryptSsl" serializeAs="String">
<value>False</value>
</setting>
<setting name="LogErrors" serializeAs="String">
<value>True</value>
</setting>
</WindowsServiceExample.Properties.Settings>
</applicationSettings>
</configuration>
20 changes: 20 additions & 0 deletions examples/Titanium.Web.Proxy.Examples.WindowsService/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.ServiceProcess;

namespace WindowsServiceExample
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new ProxyService()
};
ServiceBase.Run(ServicesToRun);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Reflection;
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("WindowsServiceExample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WindowsServiceExample")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[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("63635f50-7d6f-4a93-84c6-04cf9d2754c5")]

// 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")]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading