/// <summary> /// Mqtt选项抽象 /// </summary> public MqttOptionsBase() { this.onSuccess = new MQTTAsync_onSuccess(this.MQTTAsync_onSuccess); this.onFailure = new MQTTAsync_onFailure(this.MQTTAsync_onFailure); }
void IMQTTAsync_options.SetCallbacks(MQTTAsync_onSuccess success, MQTTAsync_onFailure failure) { this.onSuccess = Marshal.GetFunctionPointerForDelegate(success); this.onFailure = Marshal.GetFunctionPointerForDelegate(failure); }