// IWTSPlugin // public void Initialize(IWTSVirtualChannelManager manager) { System.Diagnostics.Debug.WriteLine("[WTSPlugin1] WTSPlugin1.Initialize()"); IWTSListener listener; manager.CreateListener( "Channel1", 0, this, out listener); }
public void Initialize(IWTSVirtualChannelManager pChannelMgr) { foreach (var registration in Registrations) { try { var callback = new WtsListenerCallback(registration.Key, registration.Value); // keep a reference out of paranoia Callbacks.Add(callback); pChannelMgr.CreateListener(callback.ChannelName, 0, callback); } catch (Exception ex) { PluginApplication.Log($"Failed to create listener for '{registration.Key}': {ex}"); } } }
// IWTSPlugin // public void Initialize(IWTSVirtualChannelManager manager) { System.Diagnostics.Debug.WriteLine("[WTSPlugin1] WTSPlugin1.Initialize()"); IWTSListener listener; manager.CreateListener( "Channel1", 0, this, out listener); }