Compare commits

...
5 Commits
Author SHA1 Message Date
saherelm f17fd23a7a apply sorting ... 2026-09-06 00:18:47 +03:30
saherelm 6020b67b25 apply sort usings ... 2026-09-05 10:23:58 +03:30
saherelm 4c18f0a575 last ... 2026-09-04 23:34:24 +03:30
saherelm 3b8d554759 apply sorting ... 2026-09-04 01:36:54 +03:30
saherelm caa0eb7713 cleanup nuget source ... 2026-08-15 17:22:52 +03:30
38 changed files with 139 additions and 143 deletions
@@ -1,9 +1,9 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using xDataService.Providers;
using xFileService.Constants;
using xFileService.Models.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace xFileService.Configurations.Entities
{
+2
View File
@@ -26,6 +26,8 @@ namespace xFileService.Constants
// Custome Constants ...
public const string XFileTagProvided = nameof(XFile);
public const string XAdminRole = "admin";
//
// EF Repositories Helper Extensions ...
public const string GetXFileEFRepositoryDescriptor = "GetXFileEFRepositoryDescriptor";
+10 -12
View File
@@ -1,23 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Extensions;
using xCommons.Providers;
using xCommons.Extensions;
using xDataService.Models;
using xExceptions.Constants;
using System.Threading.Tasks;
using xCommons.Configurations;
using xFileService.Interfaces;
using xTagService.Controllers;
using Microsoft.AspNetCore.Mvc;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using xFileService.Providers.Dtos;
using xIdentityService.Interfaces;
using xTagService.Controllers;
using Microsoft.Extensions.Logging;
using xFileService.Models.Entities;
using Microsoft.EntityFrameworkCore.Query;
namespace xFileService.Controllers
{
@@ -222,8 +222,6 @@ namespace xFileService.Controllers
/// Remove Specified Files ...
/// </summary>
/// <param name="ids"></param>
/// <param name="userInfo"></param>
/// <param name="connectionId"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
[HttpDelete("")]
+5 -5
View File
@@ -1,13 +1,13 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xDataService.Controllers;
using xCommons.Configurations;
using xDataService.Interfaces;
using xFileService.Interfaces.Entities;
using xDataService.Controllers;
using Microsoft.Extensions.Logging;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
using Microsoft.EntityFrameworkCore.Query;
namespace xFileService.Controllers
{
@@ -1,15 +1,15 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xFileService.Interfaces.Entities;
using xCommons.Configurations;
using xPushService.Interfaces;
using xPushService.Controllers;
using xIdentityService.Interfaces;
using Microsoft.Extensions.Logging;
using xFileService.Models.Entities;
using xFileService.Providers.Entities;
using xIdentityService.Interfaces;
using xPushService.Controllers;
using xPushService.Interfaces;
using xFileService.Interfaces.Entities;
using Microsoft.EntityFrameworkCore.Query;
namespace xFileService.Controllers
{
+5 -5
View File
@@ -1,14 +1,14 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xDataService.Controllers;
using xCommons.Configurations;
using xDataService.Interfaces;
using xFileService.Interfaces.Dtos;
using xDataService.Controllers;
using xFileService.Models.Dtos;
using Microsoft.Extensions.Logging;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
using Microsoft.EntityFrameworkCore.Query;
namespace xFileService.Controllers
{
@@ -1,18 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.Extensions.Logging;
using xCommons.Configurations;
using xCommons.Providers;
using xFileService.Interfaces.Dtos;
using xCommons.Configurations;
using xPushService.Interfaces;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xPushService.Controllers;
using xFileService.Providers.Dtos;
using xIdentityService.Interfaces;
using xPushService.Controllers;
using xPushService.Interfaces;
using Microsoft.Extensions.Logging;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
using Microsoft.EntityFrameworkCore.Query;
namespace xFileService.Controllers
{
+12 -12
View File
@@ -1,23 +1,23 @@
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using xCommons.Extensions;
using xCommons.Helpers;
using xDataService.Constants;
using xDataService.Db;
using xDataService.DI;
using xDataService.Models;
using xExceptions.Constants;
using xPushService.DI;
using xCommons.Helpers;
using xCommons.Extensions;
using xDataService.Models;
using xPushService.Helpers;
using xFileService.Helpers;
using xFileService.Interfaces.Dtos;
using xFileService.Interfaces.Entities;
using xFileService.Providers.Dtos;
using xFileService.Providers.Entities;
using xFileService.Interfaces;
using xExceptions.Constants;
using xDataService.Constants;
using xFileService.Providers;
using xFileService.Constants;
using xFileService.Interfaces;
using xFileService.Providers.Dtos;
using Microsoft.AspNetCore.Builder;
using xFileService.Interfaces.Dtos;
using xFileService.Providers.Entities;
using xFileService.Interfaces.Entities;
using Microsoft.Extensions.DependencyInjection;
namespace xFileService.DI
{
+2 -2
View File
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using xCommons.Extensions;
using xDataService.Extensions;
using xDataService.Models;
using xDataService.Extensions;
using xFileService.Models.Dtos;
using System.Collections.Generic;
using xFileService.Models.Entities;
namespace xFileService.Extensions
+2 -3
View File
@@ -3,11 +3,10 @@ using GraphQL.Types;
using xDataService.Db;
using xDataService.Models;
using xDataService.Providers;
using xFileService.Interfaces;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
using xFileService.Providers.Entities;
using xFileService.Providers.GraphQL;
using xFileService.Providers.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Helpers
{
+1 -1
View File
@@ -1,7 +1,7 @@
using System;
using xPushService.Interfaces;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xPushService.Interfaces;
namespace xFileService.Interfaces.Dtos
{
+3 -3
View File
@@ -1,8 +1,8 @@
using System;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xFileService.Providers.Dtos;
using xPushService.Interfaces;
using xFileService.Models.Dtos;
using xFileService.Providers.Dtos;
using xFileService.Models.Entities;
namespace xFileService.Interfaces.Dtos
{
+1 -1
View File
@@ -1,6 +1,6 @@
using System;
using xFileService.Models.Entities;
using xPushService.Interfaces;
using xFileService.Models.Entities;
namespace xFileService.Interfaces.Entities
{
@@ -1,7 +1,7 @@
using System;
using xPushService.Interfaces;
using xFileService.Models.Entities;
using xFileService.Providers.Entities;
using xPushService.Interfaces;
namespace xFileService.Interfaces.Entities
{
+7 -7
View File
@@ -1,15 +1,15 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xFileService.Providers.Dtos;
using xIdentityModels.Models;
using xIdentityService.Interfaces;
using xTagService.Interfaces;
using xFileService.Models.Dtos;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using xFileService.Providers.Dtos;
using xIdentityService.Interfaces;
using xFileService.Models.Entities;
namespace xFileService.Interfaces
{
+4 -6
View File
@@ -1,14 +1,14 @@
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using xTagService.Interfaces;
using Microsoft.AspNetCore.Mvc;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using xFileService.Providers.Dtos;
using xIdentityService.Interfaces;
using xTagService.Interfaces;
using xFileService.Models.Entities;
namespace xFileService.Interfaces
{
@@ -81,8 +81,6 @@ namespace xFileService.Interfaces
/// Remove Specified Files ...
/// </summary>
/// <param name="ids"></param>
/// <param name="userInfo"></param>
/// <param name="connectionId"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
[HttpDelete("")]
+3 -3
View File
@@ -1,8 +1,8 @@
using System;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xFileService.Providers.Dtos;
using xTagService.Interfaces;
using xFileService.Models.Dtos;
using xFileService.Providers.Dtos;
using xFileService.Models.Entities;
namespace xFileService.Interfaces
{
+1 -1
View File
@@ -1,7 +1,7 @@
using System;
using xCommons.Constants;
using xModels.Base;
using xModels.Dtos;
using xCommons.Constants;
namespace xFileService.Models.Dtos
{
+2 -2
View File
@@ -1,7 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations;
using xCommons.Constants;
using xModels.Base;
using xCommons.Constants;
using System.ComponentModel.DataAnnotations;
namespace xFileService.Models.Entities
{
+2 -2
View File
@@ -1,9 +1,9 @@
using System;
using xPushService.Base;
using xFileService.Models.Dtos;
using Microsoft.Extensions.Logging;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xPushService.Base;
namespace xFileService.Providers.Dtos
{
+3 -3
View File
@@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;
using AutoMapper;
using xDataService.Providers;
using xFileService.Interfaces.Dtos;
using xFileService.Interfaces.Entities;
using xFileService.Models.Dtos;
using System.Collections.Generic;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Dtos
{
+6 -6
View File
@@ -1,11 +1,11 @@
using System;
using Microsoft.AspNetCore.SignalR;
using xDataService.Configuration;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xIdentityService.Interfaces;
using xPushService.Base;
using xFileService.Models.Dtos;
using xDataService.Configuration;
using xIdentityService.Interfaces;
using Microsoft.AspNetCore.SignalR;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
namespace xFileService.Providers.Dtos
{
+3 -3
View File
@@ -1,10 +1,10 @@
using System;
using xDataService.Configuration;
using xDataService.Db;
using xDataService.Interfaces;
using xDataService.Providers;
using xFileService.Interfaces.Entities;
using xDataService.Interfaces;
using xDataService.Configuration;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
+3 -3
View File
@@ -1,8 +1,8 @@
using System;
using Microsoft.Extensions.Logging;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
using xPushService.Base;
using Microsoft.Extensions.Logging;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
@@ -1,8 +1,8 @@
using System;
using xDataService.Configuration;
using xDataService.Providers;
using xFileService.Interfaces.Entities;
using xDataService.Configuration;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
+1 -1
View File
@@ -1,6 +1,6 @@
using xDataService.Providers;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
+2 -2
View File
@@ -1,8 +1,8 @@
using System;
using xDataService.Configuration;
using xDataService.Providers;
using xFileService.Interfaces.Entities;
using xDataService.Configuration;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
+1 -1
View File
@@ -1,6 +1,6 @@
using xDataService.Providers;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
@@ -1,10 +1,10 @@
using System;
using Microsoft.AspNetCore.SignalR;
using xDataService.Configuration;
using xFileService.Interfaces.Entities;
using xFileService.Models.Entities;
using xIdentityService.Interfaces;
using xPushService.Base;
using xDataService.Configuration;
using xIdentityService.Interfaces;
using Microsoft.AspNetCore.SignalR;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
+2 -2
View File
@@ -1,8 +1,8 @@
using System;
using xDataService.Configuration;
using xDataService.Providers;
using xFileService.Interfaces.Entities;
using xDataService.Configuration;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.Entities
{
+2 -2
View File
@@ -1,9 +1,9 @@
using System;
using xDataService.Configuration;
using xDataService.GraphQL;
using xFileService.Constants;
using xFileService.Interfaces.Entities;
using xDataService.Configuration;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.GraphQL
{
+2 -2
View File
@@ -1,9 +1,9 @@
using System;
using GraphQL.Types;
using xDataService.Configuration;
using xDataService.GraphQL;
using xFileService.Interfaces.Entities;
using xDataService.Configuration;
using xFileService.Models.Entities;
using xFileService.Interfaces.Entities;
namespace xFileService.Providers.GraphQL
{
+3 -3
View File
@@ -1,9 +1,9 @@
using System;
using Microsoft.EntityFrameworkCore;
using xDataService.Interfaces;
using xDataService.Providers;
using xFileService.Configurations.Entities;
using xDataService.Interfaces;
using xFileService.Models.Entities;
using Microsoft.EntityFrameworkCore;
using xFileService.Configurations.Entities;
namespace xFileService.Providers
{
+13 -12
View File
@@ -1,25 +1,26 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.FileProviders;
using xCommons.Extensions;
using xDataService.Models;
using xExceptions.Constants;
using xTagService.Providers;
using System.Threading.Tasks;
using xIdentityModels.Models;
using xFileService.Constants;
using xFileService.Extensions;
using xFileService.Interfaces;
using xFileService.Interfaces.Dtos;
using Microsoft.AspNetCore.Mvc;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xFileService.Providers.Dtos;
using xIdentityModels.Models;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using xStorageService.Interfaces;
using xTagService.Providers;
using xFileService.Providers.Dtos;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.Extensions.FileProviders;
namespace xFileService.Providers
{
@@ -35,7 +36,7 @@ namespace xFileService.Providers
) : base(
provider: provider,
tagProvider: tagProvider,
permittedRoles: new string[] { "admin" }
permittedRoles: [XFileServiceConstants.XAdminRole]
)
{
this.provider = provider;
+8 -8
View File
@@ -1,13 +1,13 @@
using System;
using xCommons.Extensions;
using xFileService.Interfaces;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Dtos;
using xFileService.Models.Entities;
using xFileService.Providers.Dtos;
using xIdentityModels.Models;
using xTagService.Interfaces;
using xTagService.Providers;
using xIdentityModels.Models;
using xFileService.Constants;
using xFileService.Interfaces;
using xFileService.Models.Dtos;
using xFileService.Providers.Dtos;
using xFileService.Interfaces.Dtos;
using xFileService.Models.Entities;
namespace xFileService.Providers
{
@@ -19,7 +19,7 @@ namespace xFileService.Providers
) : base(
provider: provider,
tagProvider: tagProvider,
permittedRoles: new string[] { "admin" }
permittedRoles: [XFileServiceConstants.XAdminRole]
)
{ }
+1 -1
View File
@@ -1,8 +1,8 @@
using System;
using xTagService.Providers;
using xFileService.Constants;
using xFileService.Interfaces;
using xTagService.Interfaces.Dtos;
using xTagService.Providers;
namespace xFileService.Providers
{
+1 -1
View File
@@ -3,6 +3,6 @@
<packageSources>
<!-- <add key="megan" value="https://hub.megan.ir/nuget/index.json" /> -->
<add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="baget" value="https://nuget.saherelmhub.ir/v3/index.json" protocolVersion="3" disableTLSCertificateValidation="true" />
<!-- <add key="baget" value="https://nuget.saherelmhub.ir/v3/index.json" protocolVersion="3" disableTLSCertificateValidation="true" /> -->
</packageSources>
</configuration>
+2 -2
View File
@@ -37,9 +37,9 @@
<!-- For XML Documentation Support -->
<PropertyGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
</Project>