Skip to content

Commit

Permalink
Site updated: 2020-09-23 19:56:53
Browse files Browse the repository at this point in the history
  • Loading branch information
horsefaced committed Sep 23, 2020
1 parent beaddcc commit 9660021
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913172902977.png">
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913174340000.png">
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913194237623.png">
<meta property="og:image" content="http://horsefaced.github.io/2020/09/23/%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214230336.png">
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214230336.png">
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913213711509.png">
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214838643.png">
<meta property="og:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913215607065.png">
<meta property="article:published_time" content="2020-09-23T11:20:48.000Z">
<meta property="article:modified_time" content="2020-09-23T11:55:01.989Z">
<meta property="article:modified_time" content="2020-09-23T11:56:37.876Z">
<meta property="article:author" content="马面">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://horsefaced.github.io/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913165213034.png">
Expand Down Expand Up @@ -187,7 +187,7 @@ <h1 class="post-title" itemprop="name headline">
<span class="post-meta-item-text">Posted on</span>


<time title="Created: 2020-09-23 19:20:48 / Modified: 19:55:01" itemprop="dateCreated datePublished" datetime="2020-09-23T19:20:48+08:00">2020-09-23</time>
<time title="Created: 2020-09-23 19:20:48 / Modified: 19:56:37" itemprop="dateCreated datePublished" datetime="2020-09-23T19:20:48+08:00">2020-09-23</time>
</span>


Expand Down Expand Up @@ -317,7 +317,7 @@ <h3 id="编译并运行"><a href="#编译并运行" class="headerlink" title="

<p>因为修改过的 launchSettings.json 本身也会做为一个配置文件发布在最终运行目录中,这样子就不用吧端口写死在源代码中,或者在 Program.cs 中额外添加代码了。</p>
<h2 id="测试结果"><a href="#测试结果" class="headerlink" title="测试结果"></a>测试结果</h2><p>在本文中,使用<a href="www.postman.com">Postman</a>对服务进行测试,大家可以使用自己习惯的工具。在具体的请求中,因为 expiredTS 和 role 在程序中有缺省值,所以请求中就可以忽略,并且在现阶段,role 只有一个值,所以推荐可以暂时忽略这个。而 expiredTS 的具体用法,可以参考Agora官方网站的<a target="_blank" rel="noopener" href="https://docs.agora.io/cn/Video/token_server_cpp?platform=CPP">生成Token</a>一文中的说明。</p>
<p><img src="2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214230336.png"></p>
<p><img src="/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214230336.png"></p>
<p>具体的 Postman 请求结果如下图所示。</p>
<p><img src="/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913213711509.png"></p>
<p>如果你在使用 Postman 发送请求的时候发生了下图的错误:</p>
Expand Down
6 changes: 3 additions & 3 deletions atom.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ pre .javascript .function {
}
.links-of-author a::before,
.links-of-author span.exturl::before {
background: #ffa;
background: #ff4294;
border-radius: 50%;
content: ' ';
display: inline-block;
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h2 class="post-title" itemprop="name headline">
<span class="post-meta-item-text">Posted on</span>


<time title="Created: 2020-09-23 19:20:48 / Modified: 19:55:01" itemprop="dateCreated datePublished" datetime="2020-09-23T19:20:48+08:00">2020-09-23</time>
<time title="Created: 2020-09-23 19:20:48 / Modified: 19:56:37" itemprop="dateCreated datePublished" datetime="2020-09-23T19:20:48+08:00">2020-09-23</time>
</span>


Expand Down Expand Up @@ -302,7 +302,7 @@ <h3 id="编译并运行"><a href="#编译并运行" class="headerlink" title="

<p>因为修改过的 launchSettings.json 本身也会做为一个配置文件发布在最终运行目录中,这样子就不用吧端口写死在源代码中,或者在 Program.cs 中额外添加代码了。</p>
<h2 id="测试结果"><a href="#测试结果" class="headerlink" title="测试结果"></a>测试结果</h2><p>在本文中,使用<a href="www.postman.com">Postman</a>对服务进行测试,大家可以使用自己习惯的工具。在具体的请求中,因为 expiredTS 和 role 在程序中有缺省值,所以请求中就可以忽略,并且在现阶段,role 只有一个值,所以推荐可以暂时忽略这个。而 expiredTS 的具体用法,可以参考Agora官方网站的<a target="_blank" rel="noopener" href="https://docs.agora.io/cn/Video/token_server_cpp?platform=CPP">生成Token</a>一文中的说明。</p>
<p><img src="2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214230336.png"></p>
<p><img src="/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913214230336.png"></p>
<p>具体的 Postman 请求结果如下图所示。</p>
<p><img src="/images/2020-09-23-%E5%A6%82%E4%BD%95%E5%9C%A8-NET-Core%E4%B8%8A%E5%BB%BA%E7%AB%8BAgora%E7%9A%84AccessToken%E6%9C%8D%E5%8A%A1/image-20200913213711509.png"></p>
<p>如果你在使用 Postman 发送请求的时候发生了下图的错误:</p>
Expand Down
2 changes: 1 addition & 1 deletion search.xml

Large diffs are not rendered by default.

0 comments on commit 9660021

Please sign in to comment.