withSIX.Play.Core.Games.Legacy.Mods.ModState.TryReadRepoFile C# (CSharp) Méthode

TryReadRepoFile() private méthode

private TryReadRepoFile ( IAbsoluteFilePath path ) : RepoVersion
path IAbsoluteFilePath
Résultat withSIX.Sync.Core.Legacy.SixSync.RepoVersion
        RepoVersion TryReadRepoFile(IAbsoluteFilePath path) {
            try {
                return SyncEvilGlobal.Yaml.NewFromYamlFile<RepoVersion>(path);
            } catch (YamlParseException e) {
                this.Logger().FormattedWarnException(e, _mod.Name);
                return new RepoVersion();
            } catch (YamlExpectedOtherNodeTypeException e) {
                this.Logger().FormattedWarnException(e, _mod.Name);
                return new RepoVersion();
            }
        }
    }