C# Class Grpc.Core.Internal.CompletionQueueSafeHandle

grpc_completion_queue from
Inheritance: Grpc.Core.Internal.SafeHandleZeroIsInvalid
Show file Open project: grpc/grpc Class Usage Examples

Public Methods

Method Description
Create ( ) : CompletionQueueSafeHandle
Create ( Grpc.Core.Internal.CompletionRegistry completionRegistry ) : CompletionQueueSafeHandle
NewScope ( ) : UsageScope

Creates a new usage scope for this completion queue. Once successfully created, the completion queue won't be shutdown before scope.Dispose() is called.

Next ( ) : Grpc.Core.Internal.CompletionQueueEvent
Pluck ( IntPtr tag ) : Grpc.Core.Internal.CompletionQueueEvent
Shutdown ( ) : void

Protected Methods

Method Description
ReleaseHandle ( ) : bool

Private Methods

Method Description
BeginOp ( ) : void
CompletionQueueSafeHandle ( ) : System
DecrementShutdownRefcount ( ) : void
EndOp ( ) : void

Method Details

Create() public static method

public static Create ( ) : CompletionQueueSafeHandle
return CompletionQueueSafeHandle

Create() public static method

public static Create ( Grpc.Core.Internal.CompletionRegistry completionRegistry ) : CompletionQueueSafeHandle
completionRegistry Grpc.Core.Internal.CompletionRegistry
return CompletionQueueSafeHandle

NewScope() public method

Creates a new usage scope for this completion queue. Once successfully created, the completion queue won't be shutdown before scope.Dispose() is called.
public NewScope ( ) : UsageScope
return UsageScope

Next() public method

public Next ( ) : Grpc.Core.Internal.CompletionQueueEvent
return Grpc.Core.Internal.CompletionQueueEvent

Pluck() public method

public Pluck ( IntPtr tag ) : Grpc.Core.Internal.CompletionQueueEvent
tag System.IntPtr
return Grpc.Core.Internal.CompletionQueueEvent

ReleaseHandle() protected method

protected ReleaseHandle ( ) : bool
return bool

Shutdown() public method

public Shutdown ( ) : void
return void