public void Set(GetRelayControlOptions other) { if (other != null) { m_ApiVersion = P2PInterface.GetrelaycontrolApiLatest; } }
/// <summary> /// Get the current relay control setting. /// </summary> /// <param name="options">Information about what version of the <see cref="GetRelayControl" /> API is supported</param> /// <param name="outRelayControl">The relay control setting currently configured</param> /// <returns> /// <see cref="Result" />::<see cref="Result.Success" /> - if the input was valid /// <see cref="Result" />::<see cref="Result.InvalidParameters" /> - if the input was invalid in some way /// </returns> public Result GetRelayControl(GetRelayControlOptions options, out RelayControl outRelayControl) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <GetRelayControlOptionsInternal, GetRelayControlOptions>(ref optionsAddress, options); outRelayControl = Helper.GetDefault <RelayControl>(); var funcResult = EOS_P2P_GetRelayControl(InnerHandle, optionsAddress, ref outRelayControl); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }