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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
     }
 }
示例#6
0
 internal static extern CallError grpcsharp_call_start_duplex_streaming(CallSafeHandle call, BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray, CallFlags metadataFlags);
示例#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);
 }
示例#8
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_serverside(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_start_serverside(call, ctx);
 }
示例#9
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_close_from_client(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_send_close_from_client(call, ctx);
 }
示例#10
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel_with_status(CallSafeHandle call, StatusCode status,
     string description)
 {
     return grpcsharp_call_cancel_with_status(call, status, description);
 }
示例#11
0
 static extern GRPCCallError grpcsharp_call_send_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
示例#12
0
 static extern GRPCCallError grpcsharp_call_send_close_from_client(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx);
示例#13
0
 static extern GRPCCallError grpcsharp_call_send_message(CallSafeHandle call,
                                                         BatchContextSafeHandle ctx, byte[] send_buffer, UIntPtr send_buffer_len, WriteFlags writeFlags, bool sendEmptyInitialMetadata);
示例#14
0
 static extern GRPCCallError grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
示例#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);
示例#16
0
 static extern GRPCCallError grpcsharp_call_cancel_with_status(CallSafeHandle call, StatusCode status, string description);
示例#17
0
 static extern GRPCCallError grpcsharp_call_cancel(CallSafeHandle call);
示例#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);
示例#19
0
 static extern GRPCCallError grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx);
示例#20
0
 static extern GRPCCallError grpcsharp_call_send_status_from_server(CallSafeHandle call,
                                                                    BatchContextSafeHandle ctx, StatusCode statusCode, string statusMessage, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata);
示例#21
0
 static extern CStringSafeHandle grpcsharp_call_get_peer(CallSafeHandle call);
示例#22
0
 static extern GRPCCallError grpcsharp_call_recv_message(CallSafeHandle call,
                                                         BatchContextSafeHandle ctx);
示例#23
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return grpcsharp_call_start_duplex_streaming(call, ctx, metadataArray);
 }
示例#24
0
 static extern GRPCCallError grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
                                                                  BatchContextSafeHandle ctx);
示例#25
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_message(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_recv_message(call, ctx);
 }
示例#26
0
 static extern GRPCCallError grpcsharp_call_start_serverside(CallSafeHandle call,
                                                             BatchContextSafeHandle ctx);
示例#27
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_set_credentials(CallSafeHandle call,
     CallCredentialsSafeHandle credentials)
 {
     return grpcsharp_call_set_credentials(call, credentials);
 }
示例#28
0
 static extern GRPCCallError grpcsharp_call_send_initial_metadata(CallSafeHandle call,
                                                                  BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
示例#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;
 }
示例#30
0
 static extern GRPCCallError grpcsharp_call_set_credentials(CallSafeHandle call, CallCredentialsSafeHandle credentials);
示例#31
0
 static extern GRPCCallError grpcsharp_call_start_serverside(CallSafeHandle call,
                                                             [MarshalAs(UnmanagedType.FunctionPtr)] CompletionCallbackDelegate callback);
示例#32
0
 static extern GRPCCallError grpcsharp_call_send_status_from_server(CallSafeHandle call,
     BatchContextSafeHandle ctx, StatusCode statusCode, string statusMessage, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata);
示例#33
0
 static extern CStringSafeHandle grpcsharp_call_get_peer(CallSafeHandle call);
示例#34
0
 internal static extern AuthContextSafeHandle grpcsharp_call_auth_context(CallSafeHandle call);
示例#35
0
 static extern GRPCCallError grpcsharp_call_send_close_from_client(CallSafeHandle call,
     BatchContextSafeHandle ctx);
示例#36
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel(CallSafeHandle call)
 {
     return(grpcsharp_call_cancel(call));
 }
示例#37
0
 static extern GRPCCallError grpcsharp_call_recv_message(CallSafeHandle call,
     BatchContextSafeHandle ctx);
示例#38
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel_with_status(CallSafeHandle call, StatusCode status,
                                                                     string description)
 {
     return(grpcsharp_call_cancel_with_status(call, status, description));
 }
示例#39
0
 static extern GRPCCallError grpcsharp_call_start_serverside(CallSafeHandle call,
     BatchContextSafeHandle ctx);
示例#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));
 }
示例#41
0
 static extern GRPCCallError grpcsharp_call_set_credentials(CallSafeHandle call, CallCredentialsSafeHandle credentials);
示例#42
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
                                                                         BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return(grpcsharp_call_start_duplex_streaming(call, ctx, metadataArray));
 }
示例#43
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_cancel(CallSafeHandle call)
 {
     return grpcsharp_call_cancel(call);
 }
示例#44
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_close_from_client(CallSafeHandle call,
                                                                         BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_send_close_from_client(call, ctx));
 }
示例#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);
 }
示例#46
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_message(CallSafeHandle call,
                                                               BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_recv_message(call, ctx));
 }
示例#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);
 }
示例#48
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
                                                                        BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_recv_initial_metadata(call, ctx));
 }
示例#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);
 }
示例#50
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_start_serverside(CallSafeHandle call,
                                                                   BatchContextSafeHandle ctx)
 {
     return(grpcsharp_call_start_serverside(call, ctx));
 }
示例#51
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_recv_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx)
 {
     return grpcsharp_call_recv_initial_metadata(call, ctx);
 }
示例#52
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_initial_metadata(CallSafeHandle call,
                                                                        BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return(grpcsharp_call_send_initial_metadata(call, ctx, metadataArray));
 }
示例#53
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_send_initial_metadata(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray)
 {
     return grpcsharp_call_send_initial_metadata(call, ctx, metadataArray);
 }
示例#54
0
 GRPCCallError IPlatformInvocation.grpcsharp_call_set_credentials(CallSafeHandle call,
                                                                  CallCredentialsSafeHandle credentials)
 {
     return(grpcsharp_call_set_credentials(call, credentials));
 }
示例#55
0
 CStringSafeHandle IPlatformInvocation.grpcsharp_call_get_peer(CallSafeHandle call)
 {
     return grpcsharp_call_get_peer(call);
 }
示例#56
0
 CStringSafeHandle IPlatformInvocation.grpcsharp_call_get_peer(CallSafeHandle call)
 {
     return(grpcsharp_call_get_peer(call));
 }
示例#57
0
 static extern CallSafeHandle grpcsharp_channel_create_call(ChannelSafeHandle channel, CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline);
示例#58
0
 static extern CallSafeHandle grpcsharp_channel_create_call(ChannelSafeHandle channel, CallSafeHandle parentCall, ContextPropagationFlags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline);
示例#59
0
文件: Server.cs 项目: jwatt/kythe
 public NewRpcInfo(CallSafeHandle call, string method)
 {
     this.call = call;
     this.method = method;
 }
示例#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));
 }