--- lang: ja-jp breaks: true --- # MagicOnion gRPC `ASP.NET Core` リクエストを受け付けたURLを取得する。 2021-10-16 ```csharp= ServiceContext serviceContext = base.Context; HttpRequest httpRequest = serviceContext?.CallContext?.GetHttpContext()?.Request; string strUrl = ""; strUrl = $"{httpRequest?.Scheme}://{httpRequest?.Host}{httpRequest?.Path}{httpRequest?.QueryString}"; ``` ###### tags: `MagicOnion` `gRPC` `ASP.NET Core` `URL`