Ejemplo n.º 1
0
 public NativeMetadataCredentialsPlugin(AsyncAuthInterceptor interceptor)
 {
     this.interceptor          = GrpcPreconditions.CheckNotNull(interceptor, "interceptor");
     this.callbackRegistration = NativeCallbackDispatcher.RegisterCallback(HandleUniversalCallback);
     this.credentials          = Native.grpcsharp_metadata_credentials_create_from_plugin(this.callbackRegistration.Tag);
 }
Ejemplo n.º 2
0
 public VerifyPeerCallbackRegistration(VerifyPeerCallback verifyPeerCallback)
 {
     this.verifyPeerCallback   = verifyPeerCallback;
     this.callbackRegistration = NativeCallbackDispatcher.RegisterCallback(HandleUniversalCallback);
 }