protected override void OnOpen(TimeSpan timeout) { this.serviceRegistration = new BrokeredServiceRegistration(this.Uri.PathAndQuery, o => acceptQueue.Add(o)); }
private void CloseListenSocket(TimeSpan timeout) { this.serviceRegistration?.Dispose(); this.serviceRegistration = null; }
public MainWindow() { InitializeComponent(); this.Title = Guid.NewGuid().ToString().Substring(0, 6); this.ServiceRegistration = new BrokeredServiceRegistration(Title, c => AcceptConnection(c)); }