apply sorting ...
This commit is contained in:
@@ -26,6 +26,8 @@ namespace xFileService.Constants
|
|||||||
// Custome Constants ...
|
// Custome Constants ...
|
||||||
public const string XFileTagProvided = nameof(XFile);
|
public const string XFileTagProvided = nameof(XFile);
|
||||||
|
|
||||||
|
public const string XAdminRole = "admin";
|
||||||
|
|
||||||
//
|
//
|
||||||
// EF Repositories Helper Extensions ...
|
// EF Repositories Helper Extensions ...
|
||||||
public const string GetXFileEFRepositoryDescriptor = "GetXFileEFRepositoryDescriptor";
|
public const string GetXFileEFRepositoryDescriptor = "GetXFileEFRepositoryDescriptor";
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
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 xIdentityModels.Models;
|
||||||
using xIdentityService.Interfaces;
|
|
||||||
using xTagService.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
|
namespace xFileService.Interfaces
|
||||||
{
|
{
|
||||||
|
|||||||
+13
-12
@@ -1,25 +1,26 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
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 xCommons.Extensions;
|
||||||
using xDataService.Models;
|
using xDataService.Models;
|
||||||
using xExceptions.Constants;
|
using xExceptions.Constants;
|
||||||
|
using xTagService.Providers;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using xIdentityModels.Models;
|
||||||
|
using xFileService.Constants;
|
||||||
using xFileService.Extensions;
|
using xFileService.Extensions;
|
||||||
using xFileService.Interfaces;
|
using xFileService.Interfaces;
|
||||||
using xFileService.Interfaces.Dtos;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using xFileService.Models.Dtos;
|
using xFileService.Models.Dtos;
|
||||||
using xFileService.Models.Entities;
|
using Microsoft.AspNetCore.Http;
|
||||||
using xFileService.Providers.Dtos;
|
using System.Collections.Generic;
|
||||||
using xIdentityModels.Models;
|
|
||||||
using xStorageService.Interfaces;
|
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
|
namespace xFileService.Providers
|
||||||
{
|
{
|
||||||
@@ -35,7 +36,7 @@ namespace xFileService.Providers
|
|||||||
) : base(
|
) : base(
|
||||||
provider: provider,
|
provider: provider,
|
||||||
tagProvider: tagProvider,
|
tagProvider: tagProvider,
|
||||||
permittedRoles: new string[] { "admin" }
|
permittedRoles: [XFileServiceConstants.XAdminRole]
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this.provider = provider;
|
this.provider = provider;
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using xCommons.Extensions;
|
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 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
|
namespace xFileService.Providers
|
||||||
{
|
{
|
||||||
@@ -19,7 +19,7 @@ namespace xFileService.Providers
|
|||||||
) : base(
|
) : base(
|
||||||
provider: provider,
|
provider: provider,
|
||||||
tagProvider: tagProvider,
|
tagProvider: tagProvider,
|
||||||
permittedRoles: new string[] { "admin" }
|
permittedRoles: [XFileServiceConstants.XAdminRole]
|
||||||
)
|
)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using xTagService.Providers;
|
||||||
using xFileService.Constants;
|
using xFileService.Constants;
|
||||||
using xFileService.Interfaces;
|
using xFileService.Interfaces;
|
||||||
using xTagService.Interfaces.Dtos;
|
using xTagService.Interfaces.Dtos;
|
||||||
using xTagService.Providers;
|
|
||||||
|
|
||||||
namespace xFileService.Providers
|
namespace xFileService.Providers
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user