当前位置: 首页>>代码示例>>C#>>正文


C# Internal.MetadataArraySafeHandle类代码示例

本文整理汇总了C#中Grpc.Core.Internal.MetadataArraySafeHandle的典型用法代码示例。如果您正苦于以下问题:C# MetadataArraySafeHandle类的具体用法?C# MetadataArraySafeHandle怎么用?C# MetadataArraySafeHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MetadataArraySafeHandle类属于Grpc.Core.Internal命名空间,在下文中一共展示了MetadataArraySafeHandle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: StartUnary

 public void StartUnary(BatchContextSafeHandle ctx, byte[] payload, MetadataArraySafeHandle metadataArray, WriteFlags writeFlags)
 {
     using (Profilers.ForCurrentThread().NewScope("CallSafeHandle.StartUnary"))
     {
         Native.grpcsharp_call_start_unary(this, ctx, payload, new UIntPtr((ulong)payload.Length), metadataArray, writeFlags)
             .CheckOk();
     }
 }
开发者ID:ConfusedReality,项目名称:pkg_network_grpc,代码行数:8,代码来源:CallSafeHandle.cs

示例2: StartClientStreaming

 public void StartClientStreaming(UnaryResponseClientHandler callback, MetadataArraySafeHandle metadataArray)
 {
     using (completionQueue.NewScope())
     {
         var ctx = BatchContextSafeHandle.Create();
         completionQueue.CompletionRegistry.RegisterBatchCompletion(ctx, (success, context) => callback(success, context.GetReceivedStatusOnClient(), context.GetReceivedMessage(), context.GetReceivedInitialMetadata()));
         Native.grpcsharp_call_start_client_streaming(this, ctx, metadataArray).CheckOk();
     }
 }
开发者ID:ConfusedReality,项目名称:pkg_network_grpc,代码行数:9,代码来源:CallSafeHandle.cs

示例3: StartDuplexStreaming

 public void StartDuplexStreaming(BatchCompletionDelegate callback, MetadataArraySafeHandle metadataArray)
 {
     var ctx = BatchContextSafeHandle.Create();
     completionRegistry.RegisterBatchCompletion(ctx, callback);
     grpcsharp_call_start_duplex_streaming(this, ctx, metadataArray).CheckOk();
 }
开发者ID:hongweiwang,项目名称:grpc,代码行数:6,代码来源:CallSafeHandle.cs

示例4: StartServerStreaming

 public void StartServerStreaming(ReceivedStatusOnClientHandler callback, byte[] payload, WriteFlags writeFlags, MetadataArraySafeHandle metadataArray, CallFlags callFlags)
 {
     ReceivedStatusOnClientHandler = callback;
 }
开发者ID:vjpai,项目名称:grpc,代码行数:4,代码来源:FakeNativeCall.cs

示例5: grpcsharp_metadata_credentials_notify_from_plugin

 static extern void grpcsharp_metadata_credentials_notify_from_plugin(IntPtr callbackPtr, IntPtr userData, MetadataArraySafeHandle metadataArray, StatusCode statusCode, string errorDetails);
开发者ID:cj525,项目名称:grpc,代码行数:1,代码来源:PlatformInvocationLinux.cs

示例6: StartServerStreaming

 public void StartServerStreaming(BatchCompletionDelegate callback, byte[] payload, MetadataArraySafeHandle metadataArray, WriteFlags writeFlags)
 {
     var ctx = BatchContextSafeHandle.Create();
     completionRegistry.RegisterBatchCompletion(ctx, callback);
     grpcsharp_call_start_server_streaming(this, ctx, payload, new UIntPtr((ulong)payload.Length), metadataArray, writeFlags).CheckOk();
 }
开发者ID:hongweiwang,项目名称:grpc,代码行数:6,代码来源:CallSafeHandle.cs

示例7: grpcsharp_call_send_status_from_server

 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);
 }
开发者ID:cj525,项目名称:grpc,代码行数:7,代码来源:PlatformInvocationLinux.cs

示例8: grpcsharp_metadata_array_add

 static extern void grpcsharp_metadata_array_add(MetadataArraySafeHandle array, string key, byte[] value, UIntPtr valueLength);
开发者ID:cj525,项目名称:grpc,代码行数:1,代码来源:PlatformInvocationLinux.cs

示例9: grpcsharp_call_start_server_streaming

 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);
 }
开发者ID:cj525,项目名称:grpc,代码行数:7,代码来源:PlatformInvocationLinux.cs

示例10: StartClientStreaming

 public void StartClientStreaming(UnaryResponseClientHandler callback, MetadataArraySafeHandle metadataArray, CallFlags callFlags)
 {
     UnaryResponseClientHandler = callback;
 }
开发者ID:vjpai,项目名称:grpc,代码行数:4,代码来源:FakeNativeCall.cs

示例11: StartUnary

 public void StartUnary(BatchContextSafeHandle ctx, byte[] payload, WriteFlags writeFlags, MetadataArraySafeHandle metadataArray, CallFlags callFlags)
 {
     throw new NotImplementedException();
 }
开发者ID:vjpai,项目名称:grpc,代码行数:4,代码来源:FakeNativeCall.cs

示例12: StartSendStatusFromServer

 public void StartSendStatusFromServer(SendCompletionHandler callback, Status status, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata)
 {
     SendCompletionHandler = callback;
 }
开发者ID:larsonmpdx,项目名称:grpc,代码行数:4,代码来源:AsyncCallTest.cs

示例13: StartSendInitialMetadata

 public void StartSendInitialMetadata(BatchCompletionDelegate callback, MetadataArraySafeHandle metadataArray)
 {
     var ctx = BatchContextSafeHandle.Create();
     completionRegistry.RegisterBatchCompletion(ctx, callback);
     grpcsharp_call_send_initial_metadata(this, ctx, metadataArray).CheckOk();
 }
开发者ID:hongweiwang,项目名称:grpc,代码行数:6,代码来源:CallSafeHandle.cs

示例14: StartSendStatusFromServer

 public void StartSendStatusFromServer(BatchCompletionDelegate callback, Status status, MetadataArraySafeHandle metadataArray, bool sendEmptyInitialMetadata)
 {
     var ctx = BatchContextSafeHandle.Create();
     completionRegistry.RegisterBatchCompletion(ctx, callback);
     grpcsharp_call_send_status_from_server(this, ctx, status.StatusCode, status.Detail, metadataArray, sendEmptyInitialMetadata).CheckOk();
 }
开发者ID:hongweiwang,项目名称:grpc,代码行数:6,代码来源:CallSafeHandle.cs

示例15: grpcsharp_call_start_duplex_streaming

 static extern GRPCCallError grpcsharp_call_start_duplex_streaming(CallSafeHandle call,
     BatchContextSafeHandle ctx, MetadataArraySafeHandle metadataArray);
开发者ID:cj525,项目名称:grpc,代码行数:2,代码来源:PlatformInvocationLinux.cs


注:本文中的Grpc.Core.Internal.MetadataArraySafeHandle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。