# TransactionManagerExtension Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionmanagerextension/)

## Ping(string, Guid, DateTime, ParticipantId) {#ping-string-system-guid-system-datetime-orleans-transactions-participantid-b3d3c1e9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionmanagerextension/methods/ping-string-system-guid-system-datetime-orleans-transactions-participantid-b3d3c1e9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/TransactionManagerExtension.cs#L24)

```csharp
public Task Ping(string resourceId, Guid transactionId, DateTime timeStamp, ParticipantId resource)
```

### Parameters

- `resourceId` (`string`)
- `transactionId` (`Guid`)
- `timeStamp` (`DateTime`)
- `resource` (`ParticipantId`)

## PrepareAndCommit(string, Guid, AccessCounter, DateTime, List&lt;ParticipantId&gt;, int) {#prepareandcommit-string-system-guid-orleans-transactions-abstractions-accesscoun-4ed1f452}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionmanagerextension/methods/prepareandcommit-string-system-guid-orleans-transactions-abstractions-accesscoun-4ed1f452/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/TransactionManagerExtension.cs#L29)

```csharp
public Task<TransactionalStatus> PrepareAndCommit(string resourceId, Guid transactionId, AccessCounter accessCount, DateTime timeStamp, List<ParticipantId> writeResources, int totalResources)
```

### Parameters

- `resourceId` (`string`)
- `transactionId` (`Guid`)
- `accessCount` (`AccessCounter`)
- `timeStamp` (`DateTime`)
- `writeResources` (`List<ParticipantId>`)
- `totalResources` (`int`)

## Prepared(string, Guid, DateTime, ParticipantId, TransactionalStatus) {#prepared-string-system-guid-system-datetime-orleans-transactions-participantid-o-5d6efd9b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionmanagerextension/methods/prepared-string-system-guid-system-datetime-orleans-transactions-participantid-o-5d6efd9b/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/TransactionManagerExtension.cs#L34)

```csharp
public Task Prepared(string resourceId, Guid transactionId, DateTime timestamp, ParticipantId resource, TransactionalStatus status)
```

### Parameters

- `resourceId` (`string`)
- `transactionId` (`Guid`)
- `timestamp` (`DateTime`)
- `resource` (`ParticipantId`)
- `status` (`TransactionalStatus`)
