# GrainServiceClient&lt;TGrainService&gt;.GetGrainService(GrainId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.services.grainserviceclient-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.services.grainserviceclient-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Runtime/Services/GrainServiceClient.cs#L44)

```csharp
protected TGrainService GetGrainService(GrainId callingGrainId)
```

Get a reference to the [GrainService](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.grainservice/) responsible for actioning the request based on the `callingGrainId`.

### Parameters

- `callingGrainId` (`GrainId`)
