Ejemplo n.º 1
0
        private bool TryGetResourceSchema(out ResourceSchema resourceSchema)
        {
            if (_resourceSchema is not null)
            {
                resourceSchema = _resourceSchema;
                return(true);
            }

            if (ResourceIndex.SharedInstance.TryGetResourceSchema(
                    Namespace?.CoerceToString(),
                    Type?.CoerceToString(),
                    ApiVersion?.CoerceToString(),
                    out resourceSchema))
            {
                _resourceSchema = resourceSchema;
                return(true);
            }

            return(false);
        }