Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "refactor: Quick return of merging effects" (#149)
- Loading branch information
Showing
4 changed files
with
223 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Casbin.Effect; | ||
|
||
namespace Casbin | ||
{ | ||
public interface IChainEffector | ||
{ | ||
public bool Result { get; } | ||
|
||
public bool CanChain { get; } | ||
|
||
public bool HitPolicy { get; } | ||
|
||
public string EffectExpression { get; } | ||
|
||
public EffectExpressionType PolicyEffectType { get; } | ||
|
||
public void StartChain(string policyEffect); | ||
|
||
public bool Chain(PolicyEffect effect); | ||
|
||
public bool TryChain(PolicyEffect effect); | ||
|
||
public bool TryChain(PolicyEffect effect, out bool? result); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters