38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Autofac;
|
|
using MAX.Core;
|
|
using MAX.Core.Infrastructure;
|
|
using Store.Client;
|
|
using Store.Management.Framework.Configs;
|
|
|
|
namespace Store.Management.Framework
|
|
{
|
|
/// <summary>
|
|
/// Management 项目启动注册。
|
|
/// </summary>
|
|
public class Startup : IStartup
|
|
{
|
|
private const string ManagementHost = "http://1.13.195.131:9000";
|
|
private const string ApiObjUrl = "obj=api&act=";
|
|
// PostWx 会追加 wxxd_,最终 obj 为 29wx/wxxd_{urlPath}。
|
|
private const string ManagementObjUrl = "obj=29wx/";
|
|
|
|
public int Priority => IntPriority.Normal;
|
|
|
|
public void Initialize()
|
|
{
|
|
}
|
|
|
|
public void Register(ContainerBuilder builder)
|
|
{
|
|
//builder
|
|
// .RegisterServiceConfig(
|
|
// ServiceConfigKeys.Default,
|
|
// ManagementHost,
|
|
// ApiObjUrl)
|
|
// .RegisterServiceConfig(
|
|
// ManagementServiceConfigKeys.Default,
|
|
// ManagementHost,
|
|
// ManagementObjUrl);
|
|
}
|
|
}
|
|
} |