コード例 #1
0
 public ListedCapabilityStatement()
 {
     Status         = new DefaultOptionHashSet <string>("draft", StringComparer.Ordinal);
     Kind           = new DefaultOptionHashSet <string>("capability", StringComparer.Ordinal);
     Rest           = new HashSet <ListedRestComponent>(new PropertyEqualityComparer <ListedRestComponent>(x => x.Mode));
     Format         = new HashSet <string>(StringComparer.Ordinal);
     AdditionalData = new Dictionary <string, JToken>();
 }
        public ListedResourceComponent()
        {
            Interaction      = new HashSet <ResourceInteractionComponent>(new PropertyEqualityComparer <ResourceInteractionComponent>(x => x.Code));
            SearchParam      = new HashSet <SearchParamComponent>(new PropertyEqualityComparer <SearchParamComponent>(x => x.Name, x => x.Type.ToString()));
            Versioning       = new DefaultOptionHashSet <string>("versioned", StringComparer.Ordinal);
            SearchRevInclude = new HashSet <string>(StringComparer.Ordinal);
            SearchInclude    = new HashSet <string>(StringComparer.Ordinal);
            ReferencePolicy  = new HashSet <string>(StringComparer.Ordinal);

            ConditionalUpdate = false;
            ConditionalCreate = false;
            ConditionalDelete = new HashSet <string>(StringComparer.Ordinal);
            ConditionalRead   = new HashSet <string>(StringComparer.Ordinal);
        }
コード例 #3
0
        public ListedResourceComponent()
        {
            Interaction = new HashSet <ResourceInteractionComponent>(new PropertyEqualityComparer <ResourceInteractionComponent>(x => x.Code));
            SearchParam = new HashSet <SearchParamComponent>(new PropertyEqualityComparer <SearchParamComponent>(x => x.Name, x => x.Type.ToString()));

            SearchRevInclude = new HashSet <string>(StringComparer.Ordinal);
            SearchInclude    = new HashSet <string>(StringComparer.Ordinal);
            ReferencePolicy  = new HashSet <string>(StringComparer.Ordinal);

            Versioning       = new DefaultOptionHashSet <string>(ResourceVersionPolicy.Versioned, StringComparer.Ordinal);
            SupportedProfile = new HashSet <string>(StringComparer.OrdinalIgnoreCase);
            Operation        = new HashSet <OperationComponent>(new PropertyEqualityComparer <OperationComponent>(x => x.Name, x => x.Definition.ToString()));

            ConditionalUpdate = false;
            ConditionalCreate = false;
            ConditionalDelete = new DefaultOptionHashSet <string>(ConditionalDeleteStatus.Single, StringComparer.Ordinal);
            ConditionalRead   = new HashSet <string>(StringComparer.Ordinal);
        }