Example #1
0
 private IReadOnlyDictionary <string, ResourceType> CreateResourceTypes()
 {
     return(ServerConfiguration.GetResourceTypeDefinitions(ScimVersion.Two)
            .ToDictionary(
                rtd => rtd.Name,
                rtd => SetResourceVersion(
                    new ResourceType
     {
         Description = rtd.Description,
         Schema = rtd.Schema,
         Name = rtd.Name,
         Endpoint = rtd.Endpoint,
         SchemaExtensions = rtd.SchemaExtensions
                            .Select(ext => new SchemaExtension(ext.Schema, ext.Required))
                            .ToList()
     }),
                StringComparer.OrdinalIgnoreCase));
 }