grpc_call from grpc/grpc.h
Inheritance: Grpc.Core.Internal.SafeHandleZeroIsInvalid, INativeCall
 internal ContextPropagationToken(CallSafeHandle parentCall, DateTime deadline, CancellationToken cancellationToken, ContextPropagationOptions options)
 {
     this.parentCall = GrpcPreconditions.CheckNotNull(parentCall);
     this.deadline = deadline;
     this.cancellationToken = cancellationToken;
     this.options = options ?? ContextPropagationOptions.Default;
 }
 public ServerRpcNew(Server server, CallSafeHandle call, string method, string host, Timespec deadline, Metadata requestMetadata)
 {
     this.server = server;
     this.call = call;
     this.method = method;
     this.host = host;
     this.deadline = deadline;
     this.requestMetadata = requestMetadata;
 }
Ejemplo n.º 3
0
 public CallSafeHandle CreateCall(CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline, CallCredentialsSafeHandle credentials)
 {
     var result = Native.grpcsharp_channel_create_call(this, parentCall, propagationMask, cq, method, host, deadline);
     if (credentials != null)
     {
         result.SetCredentials(credentials);
     }
     result.Initialize(cq);
     return result;
 }
Ejemplo n.º 4
0
 internal ServerCallContext(CallSafeHandle callHandle, string method, string host, DateTime deadline, Metadata requestHeaders, CancellationToken cancellationToken,
     Func<Metadata, Task> writeHeadersFunc, IHasWriteOptions writeOptionsHolder)
 {
     this.callHandle = callHandle;
     this.method = method;
     this.host = host;
     this.deadline = deadline;
     this.requestHeaders = requestHeaders;
     this.cancellationToken = cancellationToken;
     this.writeHeadersFunc = writeHeadersFunc;
     this.writeOptionsHolder = writeOptionsHolder;
 }
Ejemplo n.º 5
0
 public CallSafeHandle CreateCall(CompletionRegistry registry, CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline, CredentialsSafeHandle credentials)
 {
     using (Profilers.ForCurrentThread().NewScope("ChannelSafeHandle.CreateCall"))
     {
         var result = grpcsharp_channel_create_call(this, parentCall, propagationMask, cq, method, host, deadline);
         if (credentials != null)
         {
             result.SetCredentials(credentials);
         }
         result.SetCompletionRegistry(registry);
         return result;
     }
 }
Ejemplo n.º 6
0
 internal static extern CallError grpcsharp_call_start_duplex_streaming(CallSafeHandle call, BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray, CallFlags metadataFlags);
Ejemplo n.º 7
0
 CallSafeHandle IPlatformInvocation.grpcsharp_channel_create_call(ChannelSafeHandle channel,
     CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq,
     string method, string host, Timespec deadline)
 {
     return grpcsharp_channel_create_call(channel, parentCall, propagationMask, cq, method, host, deadline);
 }
Ejemplo n.º 8
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_serverside(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_start_serverside(call, ctx);
 }
Ejemplo n.º 9
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_close_from_client(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_send_close_from_client(call, ctx);
 }
Ejemplo n.º 10
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel_with_status(CallSafeHandle call, StatusCode status,
     string description)
 {
     return grpcsharp_call_cancel_with_status(call, status, description);
 }
Ejemplo n.º 11
0
 static extern GRPCCallError grpcsharp_call_send_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
Ejemplo n.º 12
0
 static extern GRPCCallError grpcsharp_call_send_close_from_client(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx);
Ejemplo n.º 13
0
 static extern GRPCCallError grpcsharp_call_send_message(CallSafeHandle call,
                                                         BatchContextSafeHandle ctx, byte[] send_buffer, UIntPtr send_buffer_len, WriteFlags writeFlags, bool sendEmptyInitialMetadata);
Ejemplo n.º 14
0
 static extern GRPCCallError grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
Ejemplo n.º 15
0
 static extern GRPCCallError grpcsharp_call_start_server_streaming(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx, byte[] send_buffer, UIntPtr send_buffer_len,
                                                                   MetadataArraySafeHandle metadataArray, WriteFlags writeFlags);
Ejemplo n.º 16
0
 static extern GRPCCallError grpcsharp_call_cancel_with_status(CallSafeHandle call, StatusCode status, string description);
Ejemplo n.º 17
0
 static extern GRPCCallError grpcsharp_call_cancel(CallSafeHandle call);
Ejemplo n.º 18
0
 internal static extern CallError grpcsharp_call_send_status_from_server(CallSafeHandle call, BatchContextSafeHandle ctx, StatusCode statusCode, byte[] statusMessage, UIntPtr statusMessageLen, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata, byte[] optionalSendBuffer, UIntPtr optionalSendBufferLen, WriteFlags writeFlags);
Ejemplo n.º 19
0
 static extern GRPCCallError grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx);
Ejemplo n.º 20
0
 static extern GRPCCallError grpcsharp_call_send_status_from_server(CallSafeHandle call,
                                                                    BatchContextSafeHandle ctx, StatusCode statusCode, string statusMessage, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata);
Ejemplo n.º 21
0
 static extern CStringSafeHandle grpcsharp_call_get_peer(CallSafeHandle call);
Ejemplo n.º 22
0
 static extern GRPCCallError grpcsharp_call_recv_message(CallSafeHandle call,
                                                         BatchContextSafeHandle ctx);
Ejemplo n.º 23
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return grpcsharp_call_start_duplex_streaming(call, ctx, metadataArray);
 }
Ejemplo n.º 24
0
 static extern GRPCCallError grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
                                                                  BatchContextSafeHandle ctx);
Ejemplo n.º 25
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_message(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_recv_message(call, ctx);
 }
Ejemplo n.º 26
0
 static extern GRPCCallError grpcsharp_call_start_serverside(CallSafeHandle call,
                                                             BatchContextSafeHandle ctx);
Ejemplo n.º 27
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_set_credentials(CallSafeHandle call,
     CallCredentialsSafeHandle credentials)
 {
     return grpcsharp_call_set_credentials(call, credentials);
 }
Ejemplo n.º 28
0
 static extern GRPCCallError grpcsharp_call_send_initial_metadata(CallSafeHandle call,
                                                                  BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
Ejemplo n.º 29
0
 public CallSafeHandle CreateCall(CompletionRegistry registry, CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline)
 {
     var result = grpcsharp_channel_create_call(this, parentCall, propagationMask, cq, method, host, deadline);
     result.SetCompletionRegistry(registry);
     return result;
 }
Ejemplo n.º 30
0
 static extern GRPCCallError grpcsharp_call_set_credentials(CallSafeHandle call, CallCredentialsSafeHandle credentials);
Ejemplo n.º 31
0
 static extern GRPCCallError grpcsharp_call_start_serverside(CallSafeHandle call,
                                                             [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
Ejemplo n.º 32
0
 static extern GRPCCallError grpcsharp_call_send_status_from_server(CallSafeHandle call,
     BatchContextSafeHandle ctx, StatusCode statusCode, string statusMessage, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata);
Ejemplo n.º 33
0
 static extern CStringSafeHandle grpcsharp_call_get_peer(CallSafeHandle call);
Ejemplo n.º 34
0
 internal static extern AuthContextSafeHandle grpcsharp_call_auth_context(CallSafeHandle call);
Ejemplo n.º 35
0
 static extern GRPCCallError grpcsharp_call_send_close_from_client(CallSafeHandle call,
     BatchContextSafeHandle ctx);
Ejemplo n.º 36
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel(CallSafeHandle call)
 {
     return(grpcsharp_call_cancel(call));
 }
Ejemplo n.º 37
0
 static extern GRPCCallError grpcsharp_call_recv_message(CallSafeHandle call,
     BatchContextSafeHandle ctx);
Ejemplo n.º 38
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel_with_status(CallSafeHandle call, StatusCode status,
                                                                     string description)
 {
     return(grpcsharp_call_cancel_with_status(call, status, description));
 }
Ejemplo n.º 39
0
 static extern GRPCCallError grpcsharp_call_start_serverside(CallSafeHandle call,
     BatchContextSafeHandle ctx);
Ejemplo n.º 40
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_unary(CallSafeHandle call,
                                                              BatchContextSafeHandle ctx, byte[] send_buffer, UIntPtr send_buffer_len,
                                                              MetadataArraySafeHandle metadataArray, WriteFlags writeFlags)
 {
     return(grpcsharp_call_start_unary(call, ctx, send_buffer, send_buffer_len, metadataArray, writeFlags));
 }
Ejemplo n.º 41
0
 static extern GRPCCallError grpcsharp_call_set_credentials(CallSafeHandle call, CallCredentialsSafeHandle credentials);
Ejemplo n.º 42
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
                                                                         BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return(grpcsharp_call_start_duplex_streaming(call, ctx, metadataArray));
 }
Ejemplo n.º 43
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel(CallSafeHandle call)
 {
     return grpcsharp_call_cancel(call);
 }
Ejemplo n.º 44
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_close_from_client(CallSafeHandle call,
                                                                         BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_send_close_from_client(call, ctx));
 }
Ejemplo n.º 45
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_server_streaming(CallSafeHandle call,
     BatchContextSafeHandle ctx, byte[] send_buffer, UIntPtr send_buffer_len,
     MetadataArraySafeHandle metadataArray, WriteFlags writeFlags)
 {
     return grpcsharp_call_start_server_streaming(call, ctx, send_buffer, send_buffer_len, metadataArray,
         writeFlags);
 }
Ejemplo n.º 46
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_message(CallSafeHandle call,
                                                               BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_recv_message(call, ctx));
 }
Ejemplo n.º 47
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_message(CallSafeHandle call,
     BatchContextSafeHandle ctx, byte[] send_buffer, UIntPtr send_buffer_len, WriteFlags writeFlags,
     bool sendEmptyInitialMetadata)
 {
     return grpcsharp_call_send_message(call, ctx, send_buffer, send_buffer_len, writeFlags,
         sendEmptyInitialMetadata);
 }
Ejemplo n.º 48
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
                                                                        BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_recv_initial_metadata(call, ctx));
 }
Ejemplo n.º 49
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_status_from_server(CallSafeHandle call,
     BatchContextSafeHandle ctx, StatusCode statusCode, string statusMessage,
     MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata)
 {
     return grpcsharp_call_send_status_from_server(call, ctx, statusCode, statusMessage, metadataArray,
         sendEmptyInitialMetadata);
 }
Ejemplo n.º 50
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_serverside(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_start_serverside(call, ctx));
 }
Ejemplo n.º 51
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_recv_initial_metadata(call, ctx);
 }
Ejemplo n.º 52
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_initial_metadata(CallSafeHandle call,
                                                                        BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return(grpcsharp_call_send_initial_metadata(call, ctx, metadataArray));
 }
Ejemplo n.º 53
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return grpcsharp_call_send_initial_metadata(call, ctx, metadataArray);
 }
Ejemplo n.º 54
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_set_credentials(CallSafeHandle call,
                                                                  CallCredentialsSafeHandle credentials)
 {
     return(grpcsharp_call_set_credentials(call, credentials));
 }
Ejemplo n.º 55
0
 CStringSafeHandle IPlatformInvocation.grpcsharp_call_get_peer(CallSafeHandle call)
 {
     return grpcsharp_call_get_peer(call);
 }
Ejemplo n.º 56
0
 CStringSafeHandle IPlatformInvocation.grpcsharp_call_get_peer(CallSafeHandle call)
 {
     return(grpcsharp_call_get_peer(call));
 }
Ejemplo n.º 57
0
 static extern CallSafeHandle grpcsharp_channel_create_call(ChannelSafeHandle channel, CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline);
Ejemplo n.º 58
0
 static extern CallSafeHandle grpcsharp_channel_create_call(ChannelSafeHandle channel, CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline);
Ejemplo n.º 59
0
 public NewRpcInfo(CallSafeHandle call, string method)
 {
     this.call = call;
     this.method = method;
 }
Ejemplo n.º 60
0
 CallSafeHandle IPlatformInvocation.grpcsharp_channel_create_call(ChannelSafeHandle channel,
                                                                  CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq,
                                                                  string method, string host, Timespec deadline)
 {
     return(grpcsharp_channel_create_call(channel, parentCall, propagationMask, cq, method, host, deadline));
 }