예제 #1
0
        public static bool TryFrom(string version, out ElasticsearchVersion v)
        {
            v = null;
            try
            {
                v = ElasticsearchVersionResolver.From(version);
            }
            catch
            {
                // ignored
            }

            return(v != null);
        }
예제 #2
0
 public static ElasticsearchVersion From(string version) => ElasticsearchVersionResolver.From(version);