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
version: '2' | |
services: | |
dev_m1af_msdc_1: | |
image : "registry2.swarm.devfactory.com/m1/af-msdc:1.2.0.10-RC1" | |
restart: always | |
container_name: "dev_m1af_msdc_1" | |
hostname: "kitkat" | |
domainname: "aflab1.aflab.messageone.com" | |
cpu_quota: 400000 | |
mem_limit: 16g |
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
public void EvaluateCustomerDepositStatusforEnrollment() | |
{ | |
try | |
{ | |
... | |
// Get customer list with status "L - Letter Generated" | |
var lstCustomerDepositData = depositEvaluationTask.GetCustomersListByStatus(CustomerStatusOption.EnrollmentProcessing_LetterGenerated); | |
if (lstCustomerDepositData == null || lstCustomerDepositData.Count.Equals(0)) return; // <== This line returns if there aren't any customers with the "L - Letter Generated" status |
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
namespace Models.Enums | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Reflection; | |
/// <summary> | |
/// The base type to create enumeration classes. |
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
... | |
... | |
[Permissions(Permissions = new[] { "Read", "Write" }, | |
Roles = new[] { "Admin"})] | |
[HttpGet("{id}")] | |
public async Task<IActionResult> GetAsync(int id) | |
{ | |
... | |
} |
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
H1 | H2 | HN | Result | |
---|---|---|---|---|
1 | N/A | N/A | Success | |
0 | 1 | N/A | Success | |
0 | 0 | 1 | Success | |
0 | 0 | 0 | Fail |
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
using System; | |
using Microsoft.AspNetCore.Authorization; | |
namespace CustomPolicyProvidersDemo.Authorization | |
{ | |
public sealed class PermissionsAttribute : AuthorizeAttribute | |
{ | |
public const string PermissionsGroup = "Permissions"; | |
public const string RolesGroup = "Roles"; | |
public const string ScopesGroup = "Scopes"; |
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
using System; | |
using Microsoft.AspNetCore.Authorization; | |
namespace CustomPolicyProvidersDemo.Authorization | |
{ | |
public interface IIdentifiable | |
{ | |
Guid Identifier { get; } | |
} | |
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
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.Extensions.Options; | |
namespace CustomPolicyProvidersDemo.Authorization | |
{ | |
public class PermissionsPolicyProvider : IAuthorizationPolicyProvider | |
{ |
OlderNewer