# GrainServiceClient&lt;TGrainService&gt; Methods

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

## GetGrainService(GrainId) {#getgrainservice-orleans-runtime-grainid-6f44f77f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.services.grainserviceclient-1/methods/getgrainservice-orleans-runtime-grainid-6f44f77f/)

[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`)

## GetGrainService(SiloAddress) {#getgrainservice-orleans-runtime-siloaddress-b7d1943e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.services.grainserviceclient-1/methods/getgrainservice-orleans-runtime-siloaddress-b7d1943e/)

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

```csharp
protected TGrainService GetGrainService(SiloAddress destination)
```

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

### Parameters

- `destination` (`SiloAddress`)

## GetGrainService(uint) {#getgrainservice-uint-2554659e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.services.grainserviceclient-1/methods/getgrainservice-uint-2554659e/)

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

```csharp
protected TGrainService GetGrainService(uint key)
```

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

### Parameters

- `key` (`uint`)
