Skip to content

Instantly share code, notes, and snippets.

View kerryjiang's full-sized avatar
💭
Work from home...

Kerry Jiang kerryjiang

💭
Work from home...
View GitHub Profile
@kerryjiang
kerryjiang / log4net.xml
Last active December 16, 2015 02:19
Different log appenders for the different app server instances, the logger name in the configuration "ServerA" and "ServerB" are the app servers' names in your SuperSocket configuration
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="errorAppender" type="log4net.Appender.RollingFileAppender">
<filter type="log4net.Filter.LevelMatchFilter">
<levelToMatch value="ERROR" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<File value="Logs\err.log" />
<PreserveLogFileNameExtension value="true" />
<appendToFile value="true" />
@kerryjiang
kerryjiang / gist:3994765
Created November 1, 2012 16:20
SuperSocket multiple command assemblies configuration sample
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine"/>
</configSections>
<appSettings>
<add key="ServiceName" value="BroardcastService"/>
</appSettings>
<superSocket>
<servers>
@kerryjiang
kerryjiang / gist:3994742
Created November 1, 2012 16:18
SuperSocket AppDomain level isolation configuration sample
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="superSocket"
type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
</configSections>
<appSettings>
<add key="ServiceName" value="SupperSocketService" />
</appSettings>
<superSocket logFactory="ConsoleLogFactory">
@kerryjiang
kerryjiang / gist:3994724
Created November 1, 2012 16:16
SuperSocket log factory customization sample
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="superSocket"
type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
</configSections>
<appSettings>
<add key="ServiceName" value="SupperSocketService" />
</appSettings>
<superSocket logFactory="ConsoleLogFactory">
@kerryjiang
kerryjiang / Load certificate from file
Created November 1, 2012 16:14
SuperSocket secure server configuration sample
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
</configSections>
<appSettings>
<add key="ServiceName" value="SupperSocketService" />
</appSettings>
<connectionStrings/>
<superSocket>
@kerryjiang
kerryjiang / gist:3994663
Last active October 12, 2015 07:48
SuperSocket policy server sample configuration
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
</configSections>
<appSettings>
<add key="ServiceName" value="SupperSocketService" />
</appSettings>
<superSocket>
<servers>
@kerryjiang
kerryjiang / Sample A
Created November 1, 2012 16:07
SuperSocket multiple listener configuration sample
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
</configSections>
<appSettings>
<add key="ServiceName" value="SupperSocketService" />
</appSettings>
<superSocket>
<servers>