Skip to content

Commit

Permalink
Update deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Nov 28, 2017
1 parent 4cfdbc4 commit 068d53d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R7.News.Tests/DefaultPortalConfigTests.cs
Expand Up @@ -54,7 +54,7 @@ protected string GetDefaultConfigFile ()
protected NewsPortalConfig DeserializeConfig (string configFile)
{
using (var configReader = new StringReader (File.ReadAllText (configFile))) {
var deserializer = new Deserializer (namingConvention: new HyphenatedNamingConvention ());
var deserializer = new DeserializerBuilder ().WithNamingConvention (new HyphenatedNamingConvention ()).Build ();
return deserializer.Deserialize<NewsPortalConfig> (configReader);
}
}
Expand Down
2 changes: 1 addition & 1 deletion R7.News/Components/NewsConfig.cs
Expand Up @@ -65,7 +65,7 @@ public static NewsPortalConfig GetInstance (int portalId)
}
using (var configReader = new StringReader (File.ReadAllText (portalConfigFile))) {
var deserializer = new Deserializer (namingConvention: new HyphenatedNamingConvention ());
var deserializer = new DeserializerBuilder ().WithNamingConvention (new HyphenatedNamingConvention ()).Build ();
var portalConfig = deserializer.Deserialize<NewsPortalConfig> (configReader);
LoadProviders<ITermUrlProvider> (portalConfig, portalConfig.TermUrlProviders.Cast<IProviderConfig> ());
Expand Down

0 comments on commit 068d53d

Please sign in to comment.