Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2b58529

Browse files
NullAuthorizationService
1 parent ecd9600 commit 2b58529

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

‎src/AspnetRun.Application/Authorization/IAuthorizationService.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ namespace AspnetRun.Application.Authorization
66
{
77
public interface IAuthorizationService
88
{
9-
9+
void CheckPermission(string permissionName);
10+
void CheckPermission(string permissionName, string entityId);
11+
void CheckLogin();
1012
}
1113
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace AspnetRun.Application.Authorization
6+
{
7+
public class NullAuthorizationService : IAuthorizationService
8+
{
9+
public static NullAuthorizationService Instance { get; } = new NullAuthorizationService();
10+
11+
private NullAuthorizationService()
12+
{
13+
}
14+
15+
public void CheckPermission(string permissionName)
16+
{
17+
18+
}
19+
20+
public void CheckPermission(string permissionName, string entityId)
21+
{
22+
23+
}
24+
25+
public void CheckLogin()
26+
{
27+
28+
}
29+
}
30+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /