private string Convert(PermissionPolicyOption policy, string key) { if (policy != null) { string str = key; str += $"("; if (policy.AllowSelf || policy.Sources.Any()) { if (policy.AllowSelf) { str += $"self"; } if (policy.Sources.Any()) { str += $"\" {string.Join(" ", policy.Sources)} \""; } } str += $")"; return(str); } return(""); }
public PermissionPolicySettingDecorator(PermissionPolicyOption permissionPolicyOption) { PermissionPolicyOption = permissionPolicyOption; }