外网细节修改 增加账号
This commit is contained in:
@@ -30,4 +30,10 @@
|
||||
<Key>NxWKPixtbPX6fRbts2ht0NvWDyVgUbuDxTZiWbWdguU2OuIJhgmHB5Q75kmXkxtJ</Key>
|
||||
<ServiceSecret>6EBbbHHcGJpDKaNwjhrV4WHrftabpyDYILtlFW7SSZOwNxCnb0XEsifOqEpgdfjo</ServiceSecret>
|
||||
</AccountInfo>
|
||||
<AccountInfo>
|
||||
<AppID>Reg.Custom.SourceCode</AppID>
|
||||
<AppSecret>ab2cb0aa78cb986d3d05059b8f9bafee</AppSecret>
|
||||
<Key>86bf52124bc423351c9da81cb3dd8c94</Key>
|
||||
<ServiceSecret>Reg.Custom.SourceCode</ServiceSecret>
|
||||
</AccountInfo>
|
||||
</ArrayOfAccountInfo>
|
||||
@@ -12,6 +12,21 @@
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -105,5 +120,12 @@
|
||||
<Name>Getf.Service.Transfer.Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -12,17 +12,17 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Getf.Service.Transfer.WinService
|
||||
{
|
||||
public partial class Service1 : ServiceBase
|
||||
{
|
||||
private Server _Server;
|
||||
public Service1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
public partial class Service1 : ServiceBase
|
||||
{
|
||||
private Server _Server;
|
||||
public Service1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
/*var ipInfo = System.Configuration.ConfigurationManager.AppSettings["IpInfo"].Split(':');
|
||||
protected override void OnStart(string[] args)
|
||||
{
|
||||
/*var ipInfo = System.Configuration.ConfigurationManager.AppSettings["IpInfo"].Split(':');
|
||||
_Server = new Server();
|
||||
if (ipInfo[0] != String.Empty)
|
||||
{
|
||||
@@ -34,16 +34,19 @@ namespace Getf.Service.Transfer.WinService
|
||||
}
|
||||
_Server.Start();*/
|
||||
|
||||
var boostrap = BootstrapFactory.CreateBootstrap();
|
||||
boostrap.Initialize();
|
||||
boostrap.Start();
|
||||
}
|
||||
var boostrap = BootstrapFactory.CreateBootstrap();
|
||||
boostrap.Initialize();
|
||||
boostrap.Start();
|
||||
}
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
_Server.Stop();
|
||||
_Server.Dispose();
|
||||
_Server = null;
|
||||
}
|
||||
}
|
||||
protected override void OnStop()
|
||||
{
|
||||
if (_Server != null)
|
||||
{
|
||||
_Server.Stop();
|
||||
_Server.Dispose();
|
||||
_Server = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,4 +30,10 @@
|
||||
<Key>NxWKPixtbPX6fRbts2ht0NvWDyVgUbuDxTZiWbWdguU2OuIJhgmHB5Q75kmXkxtJ</Key>
|
||||
<ServiceSecret>6EBbbHHcGJpDKaNwjhrV4WHrftabpyDYILtlFW7SSZOwNxCnb0XEsifOqEpgdfjo</ServiceSecret>
|
||||
</AccountInfo>
|
||||
<AccountInfo>
|
||||
<AppID>Reg.Custom.SourceCode</AppID>
|
||||
<AppSecret>ab2cb0aa78cb986d3d05059b8f9bafee</AppSecret>
|
||||
<Key>86bf52124bc423351c9da81cb3dd8c94</Key>
|
||||
<ServiceSecret>Reg.Custom.SourceCode</ServiceSecret>
|
||||
</AccountInfo>
|
||||
</ArrayOfAccountInfo>
|
||||
@@ -81,7 +81,9 @@
|
||||
<None Include="supersocket.sh" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AccountConfig.xml" />
|
||||
<Content Include="AccountConfig.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user