コード例 #1
0
 public bool IsReader()
 {
     return(EnvironmentResourceGroup.Any(p => ReaderRoles.Contains(p.Role)) &&
            Batch.Any(p => ReaderRoles.Contains(p.Role)) &&
            Storage.Any(p => ReaderRoles.Contains(p.Role)) &&
            KeyVault.Any(p => ReaderRoles.Contains(p.Role)) &&
            ApplicationInsights.Any(p => ReaderRoles.Contains(p.Role)) &&
            VNet.Any(p => ReaderRoles.Contains(p.Role)));
 }
コード例 #2
0
 public bool IsOwner()
 {
     return(EnvironmentResourceGroup.Any(p => p.Role == OwnerRole) &&
            Batch.Any(p => p.Role == OwnerRole) &&
            Storage.Any(p => p.Role == OwnerRole) &&
            KeyVault.Any(p => p.Role == OwnerRole) &&
            ApplicationInsights.Any(p => p.Role == OwnerRole) &&
            VNet.Any(p => p.Role == OwnerRole));
 }