45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using Microsoft.Practices.Unity;
|
|
using MyCode.Project.Infrastructure.Cache;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Infrastructure.Extensions;
|
|
using MyCode.Project.Infrastructure.UnityExtensions;
|
|
using MyCode.Project.Infrastructure.WebPost;
|
|
using MyCode.Project.Repositories.Common;
|
|
using MyCode.Project.Services;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyCode.Project.TestRunner
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var container = UnityHelper.GetUnityContainer();
|
|
|
|
container.RegisterType<MyCodeSqlSugarClient>(new PerThreadLifetimeManager());
|
|
|
|
//注册缓存对象
|
|
container.RegisterType<IMyCodeCacheService, SystemCache>();
|
|
|
|
var orderService = UnityHelper.GetService<INormalOrderService>();
|
|
|
|
//orderService.CreateNormalOrder()
|
|
|
|
//orderService.CreateNormalOrderAnsy("");
|
|
//
|
|
|
|
//
|
|
|
|
Console.ReadKey();
|
|
}
|
|
|
|
|
|
}
|
|
}
|