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