public static UplinkProjectResult uplink_config_open_project(UplinkConfig config, UplinkAccess access) { UplinkProjectResult ret = new UplinkProjectResult(storj_uplinkPINVOKE.uplink_config_open_project(UplinkConfig.getCPtr(config), UplinkAccess.getCPtr(access)), true); if (storj_uplinkPINVOKE.SWIGPendingException.Pending) { throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static UplinkAccessResult uplink_config_request_access_with_passphrase(UplinkConfig config, string satellite_address, string api_key, string passphrase) { UplinkAccessResult ret = new UplinkAccessResult(storj_uplinkPINVOKE.uplink_config_request_access_with_passphrase(UplinkConfig.getCPtr(config), new storj_uplinkPINVOKE.SWIGStringMarshal(satellite_address).swigCPtr, new storj_uplinkPINVOKE.SWIGStringMarshal(api_key).swigCPtr, new storj_uplinkPINVOKE.SWIGStringMarshal(passphrase).swigCPtr), true); if (storj_uplinkPINVOKE.SWIGPendingException.Pending) { throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }