<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xin9le</author_name>
  <author_url>https://blog.hatena.ne.jp/xin9le/</author_url>
  <blog_title>xin9le.net</blog_title>
  <blog_url>https://xin9le.hatenablog.jp/</blog_url>
  <categories>
    <anon>gRPC</anon>
    <anon>Web API</anon>
  </categories>
  <description>前回は Unary 通信中にサーバープッシュをする方法を解説しました。しかしそれは 1 つのクライアントに対してプッシュ配信する例だったので、今回は複数クライアントに対してプッシュする方法について見ていきます。 勘のいい方にはパッと分かるかもしれませんが、前回静的キャッシュしていた StreamingContextRepository&lt;TService&gt; を複数キャッシュすればいいだけですね！ サーバー側 サービス側の実装を複数クライアントの接続をキャッシュできるように書き換えます。安直に実装すれば ConcurrentDictionary を利用することになりますが、MagicOnion は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2018%2F03%2F23%2F232927&quot; title=&quot;gRPC / MagicOnion 入門 (16) - 複数ユーザーへのプッシュ配信 - xin9le.net&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/x/xin9le/20180321/20180321010156.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-23 23:29:27</published>
  <title>gRPC / MagicOnion 入門 (16) - 複数ユーザーへのプッシュ配信</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2018/03/23/232927</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
