Compare commits
2
Commits
caa0eb7713
...
4c18f0a575
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c18f0a575 | ||
|
|
3b8d554759 |
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -37,9 +37,9 @@
|
|||||||
|
|
||||||
<!-- For XML Documentation Support -->
|
<!-- For XML Documentation Support -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
||||||
<NoWarn>$(NoWarn);1591</NoWarn>
|
<NoWarn>$(NoWarn);1591</NoWarn>
|
||||||
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user