Update for Better Supports ...

This commit is contained in:
2025-12-08 17:27:10 +03:30
parent d14a918212
commit 0044643ac4
5 changed files with 849 additions and 51 deletions
+14 -10
View File
@@ -22,18 +22,12 @@ namespace xFileService.Interfaces
/// <summary>
/// Specified Provider ...
/// </summary>
string ProvideFor { get; }
string ProvidedFor { get; }
/// <summary>
/// Specified Provider Repositroy ...
/// </summary>
IXFileProvider Provider { get; }
/// <summary>
/// Tag Provider for Specified File ...
/// </summary>
/// <value></value>
IXBaseTagProvider<TKey> TagProvider { get; }
#endregion
//
@@ -47,7 +41,7 @@ namespace xFileService.Interfaces
#endregion
//
#region Implementation ...
#region Tools ...
/// <summary>
/// Stream Specified File ...
/// </summary>
@@ -60,7 +54,7 @@ namespace xFileService.Interfaces
/// </summary>
/// <param name="fileName"></param>
/// <returns></returns>
Task<FileStreamResult> Stream(string fileName);
Task<FileStreamResult> Stream(string fileName);
/// <summary>
@@ -80,10 +74,12 @@ namespace xFileService.Interfaces
/// <summary>
/// Upload Files ...
/// </summary>
/// <param name="forProvidedId"></param>
/// <param name="files"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
Task<IEnumerable<XFileDto>> Upload(
TKey forProvidedId,
IFormFileCollection files,
XUserClaimsInfoDto userInfo = null
);
@@ -91,10 +87,12 @@ namespace xFileService.Interfaces
/// <summary>
/// Remove Specified Files ...
/// </summary>
/// <param name="forProvidedId"></param>
/// <param name="ids"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
Task<IEnumerable<Guid>> Remove(
TKey forProvidedId,
string ids,
XUserClaimsInfoDto userInfo = null
);
@@ -120,7 +118,6 @@ namespace xFileService.Interfaces
/// Get Specified File Model ...
/// </summary>
/// <param name="id"></param>
/// <param name="ignoreSoftDeleteds"></param>
/// <returns></returns>
Task<XFileDto> Get(
Guid id
@@ -133,6 +130,13 @@ namespace xFileService.Interfaces
/// <returns></returns>
Task<IEnumerable<XFileDto>> GetAll();
/// <summary>
/// Get All Exists File Models ...
/// </summary>
/// <param name="forProvidedId"></param>
/// <returns></returns>
Task<IEnumerable<XFileDto>> GetAllFor(TKey forProvidedId);
/// <summary>
/// find an Entity by providing a Conditional Expression ...
/// </summary>
+22 -15
View File
@@ -64,7 +64,7 @@ namespace xFileService.Interfaces
/// <param name="userInfo"></param>
/// <returns></returns>
Task TagAttach(
string tag,
string tag,
Guid id,
XUserClaimsInfoDto userInfo = null
);
@@ -77,7 +77,7 @@ namespace xFileService.Interfaces
/// <param name="userInfo"></param>
/// <returns></returns>
Task TagDetach(
string tag,
string tag,
Guid id,
XUserClaimsInfoDto userInfo = null
);
@@ -90,7 +90,7 @@ namespace xFileService.Interfaces
/// <param name="userInfo"></param>
/// <returns></returns>
Task TagsAttach(
IEnumerable<string> tags,
IEnumerable<string> tags,
Guid id,
XUserClaimsInfoDto userInfo = null
);
@@ -103,11 +103,11 @@ namespace xFileService.Interfaces
/// <param name="userInfo"></param>
/// <returns></returns>
Task TagsDetach(
IEnumerable<string> tags,
IEnumerable<string> tags,
Guid id,
XUserClaimsInfoDto userInfo = null
);
/// <summary>
/// Detach all Attached Tags for Specified File ...
/// </summary>
@@ -193,20 +193,23 @@ namespace xFileService.Interfaces
/// Get Reference Identifier for Specified Provider and Specified File ...
/// </summary>
/// <param name="providedFor"></param>
/// <param name="id"></param>
/// <param name="forProvidedId"></param>
/// <returns></returns>
string GetIdentifier(
string providedFor,
Guid id
string GetIdentifier<TKey>(
string providedFor,
TKey forProvidedId
);
/// <summary>
/// Check Specified File has Refernce to Provider ...
/// </summary>
/// <param name="providedFor"></param>
/// <param name="forProvidedId"></param>
/// <param name="id"></param>
/// <returns></returns>
Task<bool> IsProvidedFor(
string providedFor,
Task<bool> IsProvidedFor<TKey>(
string providedFor,
TKey forProvidedId,
Guid id
);
@@ -214,11 +217,13 @@ namespace xFileService.Interfaces
/// Add Specified Reference to Specified File ...
/// </summary>
/// <param name="providedFor"></param>
/// <param name="forProvidedId"></param>
/// <param name="id"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
Task AddReference(
string providedFor,
Task AddReference<TKey>(
string providedFor,
TKey forProvidedId,
Guid id,
XUserClaimsInfoDto userInfo = null
);
@@ -227,11 +232,13 @@ namespace xFileService.Interfaces
/// Remove Specified Reference from Specified File ...
/// </summary>
/// <param name="providedFor"></param>
/// <param name="forProvidedId"></param>
/// <param name="id"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
Task RemoveReference(
string providedFor,
Task RemoveReference<TKey>(
string providedFor,
TKey forProvidedId,
Guid id,
XUserClaimsInfoDto userInfo = null
);