# Invokable_ILogConsistencyProtocolParticipant_GrainReference_CCBBD89F Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/)

## Dispose {#dispose-124ab69d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/dispose-124ab69d/)

```csharp
public override void Dispose()
```

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

## GetActivityName {#getactivityname-78190c2b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getactivityname-78190c2b/)

```csharp
public override string GetActivityName()
```

Gets the activity name, which refers to both the interface name and method name.

## GetArgument(int) {#getargument-int-943eb9d5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getargument-int-943eb9d5/)

```csharp
public override object GetArgument(int index)
```

Gets the argument at the specified index.

### Parameters

- `index` (`int`): The argument index.

### Returns

The argument at the specified index.

## GetArgumentCount {#getargumentcount-d79942bb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getargumentcount-d79942bb/)

```csharp
public override int GetArgumentCount()
```

Gets the number of arguments.

## GetCancellationToken {#getcancellationtoken-7e111ac8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getcancellationtoken-7e111ac8/)

```csharp
public override CancellationToken GetCancellationToken()
```

Gets the cancellation token for this request. If the request does not accept a cancellation token, this will be `System.Threading.CancellationToken.None`.

### Returns

The cancellation token for this request.

## GetInterfaceName {#getinterfacename-2df49049}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getinterfacename-2df49049/)

```csharp
public override string GetInterfaceName()
```

Gets the full interface name.

## GetInterfaceType {#getinterfacetype-6e6bb0cb}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getinterfacetype-6e6bb0cb/)

```csharp
public override Type GetInterfaceType()
```

Gets the interface type.

## GetMethod {#getmethod-d51a4668}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getmethod-d51a4668/)

```csharp
public override MethodInfo GetMethod()
```

Gets the method info object, which may be `null`.

## GetMethodName {#getmethodname-da59f05b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/getmethodname-da59f05b/)

```csharp
public override string GetMethodName()
```

Gets the method name.

## GetTarget {#gettarget-7ddefa9e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/gettarget-7ddefa9e/)

```csharp
public override object GetTarget()
```

Gets the invocation target.

### Returns

The invocation target.

## InvokeInner {#invokeinner-26ae3b46}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/invokeinner-26ae3b46/)

```csharp
protected override Task InvokeInner()
```

Invokes the request against the target.

### Returns

The invocation result.

## SetArgument(int, object) {#setargument-int-object-7d1644de}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/setargument-int-object-7d1644de/)

```csharp
public override void SetArgument(int index, object value)
```

Sets the argument at the specified index.

### Parameters

- `index` (`int`): The argument index.
- `value` (`object`): The argument value

## SetTarget(ITargetHolder) {#settarget-orleans-serialization-invocation-itargetholder-f9d994a3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/settarget-orleans-serialization-invocation-itargetholder-f9d994a3/)

```csharp
public override void SetTarget(ITargetHolder holder)
```

Sets the invocation target from an instance of [ITargetHolder](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.invocation.itargetholder/).

### Parameters

- `holder` (`ITargetHolder`): The invocation target.

## TryCancel {#trycancel-e7479ec9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleanscodegen.orleans.eventsourcing.invokable-ilogconsistencyprotocolparticipant-grainreference-ccbbd89f/methods/trycancel-e7479ec9/)

```csharp
public override bool TryCancel()
```

Tries to cancel the invocation.

### Returns

`true` if cancellation was requested, otherwise `false`.
