Example #1
0
 public static void edge_free_credentials_result(EdgeCredentialsResult result)
 {
     storj_uplinkPINVOKE.edge_free_credentials_result(EdgeCredentialsResult.getCPtr(result));
     if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
     {
         throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
        public static EdgeCredentialsResult edge_register_access(EdgeConfig config, UplinkAccess access, EdgeRegisterAccessOptions options)
        {
            EdgeCredentialsResult ret = new EdgeCredentialsResult(storj_uplinkPINVOKE.edge_register_access(EdgeConfig.getCPtr(config), UplinkAccess.getCPtr(access), EdgeRegisterAccessOptions.getCPtr(options)), true);

            if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
            {
                throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(EdgeCredentialsResult obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }