Exemple #1
0
 public async Task InitCountAsync(string url)
 {
     var c = new DisqusConfig2
     {
         site = config.Site,
         page = new PageConfig
         {
             url        = url,
             identifier = new Uri(url).AbsolutePath
         }
     };
     await jSRuntime.InvokeVoidAsync("disqus.initCount", c);
 }
Exemple #2
0
 public async Task InitThreadAsync()
 {
     var c = new DisqusConfig2
     {
         site = config.Site,
         page = new PageConfig
         {
             url        = navigationManager.Uri,
             identifier = navigationManager.ToBaseRelativePath(navigationManager.Uri)
         }
     };
     await jSRuntime.InvokeVoidAsync("disqus.initThread", c);
 }