Exemplo n.º 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);
 }
Exemplo n.º 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);
 }