using DotNetCore.CAP;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common
{
///
/// IOC
///
public class IOC
{
///
/// IServiceCollection 对象
///
public static IServiceCollection container { get; set; }
///
/// ICo模式实例化
///
///
///
public static T AddServer()
{
ServiceProvider provider = container.BuildServiceProvider();
return provider.GetService();
}
///
///
///
public static ICapPublisher MQpushserver {get;set;}
}
}