探测并安装星尘代理

This commit is contained in:
智能石头 2020-12-01 19:27:58 +08:00
parent e0dcae5e21
commit 6ab301ee16
2 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using NewLife;
using NewLife.Log;
@ -29,6 +30,15 @@ namespace Stardust
var set = Setting.Current;
if (set.Debug) _client.EncoderLog = XTrace.Log;
}
/// <summary>获取信息</summary>
/// <returns></returns>
public IDictionary<String, Object> GetInfo()
{
Init();
return _client.Invoke<Object>("Api/Info") as IDictionary<String, Object>;
}
#endregion
#region
@ -57,5 +67,15 @@ namespace Stardust
return !rs.IsNullOrEmpty();
}
#endregion
#region
/// <summary>探测并安装星尘代理</summary>
/// <param name="url"></param>
/// <param name="version"></param>
public Boolean TestAndInstall(String url, String version)
{
if (url.IsNullOrEmpty()) throw new ArgumentNullException(nameof(url));
}
#endregion
}
}

View File

@ -24,7 +24,7 @@
<RepositoryUrl>https://github.com/NewLifeX/Stardust</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
<PackageReleaseNotes>调节心跳周期上报本地所有IPv4地址</PackageReleaseNotes>
<PackageReleaseNotes>支持.NET5.0;增加客户端连接本地代理</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PublishRepositoryUrl>true</PublishRepositoryUrl>