static void n_ServiceTypeAdded_Ljavax_jmdns_ServiceEvent_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { IServiceTypeListener __this = Java.Lang.Object.GetObject <IServiceTypeListener> (native__this, JniHandleOwnership.DoNotTransfer); global::Javax.Jmdns.ServiceEvent p0 = Java.Lang.Object.GetObject <global::Javax.Jmdns.ServiceEvent> (native_p0, JniHandleOwnership.DoNotTransfer); __this.ServiceTypeAdded(p0); }
public virtual void AddServiceTypeListener(IServiceTypeListener listener) { lock (this) { typeListeners.Remove(listener); typeListeners.Add(listener); } foreach (String s in serviceTypes.Values) { listener.ServiceTypeAdded(this, new ServiceEvent(this, s, null, null)); } new TypeResolver(this).start(); }
public virtual void AddServiceTypeListener(IServiceTypeListener listener) { lock (this) { typeListeners.Remove(listener); typeListeners.Add(listener); } foreach (String s in serviceTypes.Values) { listener.ServiceTypeAdded(this, new ServiceEvent(this, s, null, null)); } new TypeResolver(this).start(); }