---
agentTools:
  projectIndex: https://docs.rainway.com/llms.txt
---

# .NET SDK - PeerRequestEvent

# PeerRequestEvent class

An event that occurs when a remote peer requests to connect.

```csharp
public sealed class PeerRequestEvent : BaseRequestEvent<PeerOptions, Peer>
```

## Public Members

| name                                                         | description                                           |
| ------------------------------------------------------------ | ----------------------------------------------------- |
| [ExternalId](./net-sdk-peerrequestevent-externalid) { get; } | The ExternalId of the peer requesting the connection. |
| [Id](./net-sdk-peerrequestevent-id) { get; }                 | The ID of the peer requesting the connection.         |

## Remarks

A [`RainwayConnection`](./net-sdk-rainwayconnection) can choose to [`AcceptAsync`](./net-sdk-baserequestevent-2-acceptasync) or [`RejectAsync`](./net-sdk-baserequestevent-2-rejectasync) the request.

## See Also

* class [BaseRequestEvent\<TAcceptedOptions,TAccepted>](./net-sdk-baserequestevent-2)
* class [PeerOptions](./net-sdk-options-peeroptions)
* class [Peer](./net-sdk-peer)
* namespace [Rainway.SDK.Events](./net-sdk)