public static ICacheAttachments GetAttachmentsService() { if (iCacheAttachments == null) { lock (lockHelper) { if (iCacheAttachments == null) { try { if (EntLibConfigs.GetConfig().Cacheattachments.Enable) { iCacheAttachments = (ICacheAttachments)Activator.CreateInstance(Type.GetType( "Discuz.EntLib.MongoDB.Data.Attachments, Discuz.EntLib.MongoDB", false, true)); } } catch { throw new Exception("请检查 Discuz.EntLib.MongoDB.dll 文件是否被放置到了bin目录下!"); } } } } return(iCacheAttachments); }
public static ICacheAttachments GetAttachmentsService() { if (iCacheAttachments == null) { lock (lockHelper) { if (iCacheAttachments == null) { try { if (EntLibConfigs.GetConfig().Cacheattachments.Enable) { iCacheAttachments = (ICacheAttachments)Activator.CreateInstance(Type.GetType( "Discuz.EntLib.MongoDB.Data.Attachments, Discuz.EntLib.MongoDB", false, true)); } } catch { throw new Exception("请检查 Discuz.EntLib.MongoDB.dll 文件是否被放置到了bin目录下!"); } } } } return iCacheAttachments; }