/// <summary> /// 获取直连URL /// </summary> /// <param name="associateId">关联Id</param> /// <returns></returns> public string GetDirectlyUrl(object associateId) { string filename = GetLogoFileName(associateId); return(StoreProvider.GetDirectlyUrl(GetLogoRelativePath(associateId), filename)); }
/// <summary> /// 获取直连URL /// </summary> /// <param name="attachment">附件</param> /// <returns>返回可以http直连该附件的url</returns> public string GetDirectlyUrl(T attachment) { return(StoreProvider.GetDirectlyUrl(attachment.GetRelativePath(), attachment.FileName)); }