/// <summary> /// 注册服务对象实例(单例) /// </summary> /// <param name="service"></param> public static void Register(object service) { Contract.Requires(service != null); _host.Register(service.GetType(), service); }
/// <summary> /// 注册服务对象实例(单例) /// </summary> /// <param name="service"></param> public static void Register(object service) { Contract.Requires(service != null); _host.Register(service.GetType(), service); }