--- 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`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up