Пример #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="method"></param>
        /// <returns></returns>
        public static ICmsServiceProvider GetService(ServiceCallMethod method)
        {
            if (method == ServiceCallMethod.Redirect)
                return _redirect;
            throw new NotSupportedException("目前仅支持直接调用接口");

        }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="method"></param>
 /// <returns></returns>
 public static ICmsServiceProvider GetService(ServiceCallMethod method)
 {
     if (method == ServiceCallMethod.Redirect)
     {
         return(_redirect ?? (_redirect = new RedirectCallService()));
     }
     throw new NotSupportedException("目前仅支持直接调用接口");
 }