public override bool ValidateCertificate(_SwigCallbackArgs args) { try { // Downcast the certificate. Certificate cert = args.mCertificatePtr; HandleRef handle = Certificate.getCPtr(cert); IntPtr ptr = (IntPtr)handle; switch (cert._getType()) { case CertificateImplementationType.Win32: cert = new Win32Certificate(ptr, false); break; case CertificateImplementationType.X509: cert = new X509Certificate(ptr, false); break; default: cert = new Certificate(ptr, false); break; } return(mCertValidator(cert)); } catch (Exception e) { args.mErrorString = e.Message; } return(false); }
public virtual bool ValidateCertificate(_SwigCallbackArgs args) { bool ret = (SwigDerivedClassHasMethod("ValidateCertificate", swigMethodTypes2) ? RCFProtoPINVOKE._SwigCallback_ValidateCertificateSwigExplicit_SwigCallback(swigCPtr, _SwigCallbackArgs.getCPtr(args)) : RCFProtoPINVOKE._SwigCallback_ValidateCertificate(swigCPtr, _SwigCallbackArgs.getCPtr(args))); if (RCFProtoPINVOKE.SWIGPendingException.Pending) { throw RCFProtoPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual void ProtoRpcBegin(_SwigCallbackArgs args, RcfProtoServer server, RcfProtoSession context, string serviceName, int methodId) { if (SwigDerivedClassHasMethod("ProtoRpcBegin", swigMethodTypes1)) { RCFProtoPINVOKE._SwigCallback_ProtoRpcBeginSwigExplicit_SwigCallback(swigCPtr, _SwigCallbackArgs.getCPtr(args), RcfProtoServer.getCPtr(server), RcfProtoSession.getCPtr(context), serviceName, methodId); } else { RCFProtoPINVOKE._SwigCallback_ProtoRpcBegin(swigCPtr, _SwigCallbackArgs.getCPtr(args), RcfProtoServer.getCPtr(server), RcfProtoSession.getCPtr(context), serviceName, methodId); } if (RCFProtoPINVOKE.SWIGPendingException.Pending) { throw RCFProtoPINVOKE.SWIGPendingException.Retrieve(); } }
public override void ProtoRpcBegin( _SwigCallbackArgs args, RcfProtoServer self, RcfProtoSession session, string serviceName, int methodId) { try { RcfProtoServerImpl.ProtoRpcBegin(mSelf, session, serviceName, methodId); } catch (System.Exception e) { args.mErrorString = e.Message; } }
internal static HandleRef getCPtr(_SwigCallbackArgs obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }