public static string GetAttachmentFileFullPath(FileId fileId) { var path = GetProfileAwareFileFullPath(fileId); if (!File.Exists(path)) { path = Path.Combine(ObjectFactory.GetInstance<PluginDataFolder>().Path, fileId.Value.ToString()); } return path; }
private static string GetProfileAwareFileFullPath(FileId fileId) { return Path.Combine(ObjectFactory.GetInstance<IProfile>().FileStorage.GetFolder(), fileId.Value.ToString()); }
private static string GetProfileAwareFileFullPath(FileId fileId) { return(Path.Combine(ObjectFactory.GetInstance <IProfile>().FileStorage.GetFolder(), fileId.Value.ToString())); }
public bool Equals(FileId other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Value.Equals(Value); }
public static string GetAttachmentFileFullPath(FileId fileId) { return Path.Combine(ObjectFactory.GetInstance<PluginDataFolder>().Path, fileId.Value.ToString()); }