Exemple #1
0
 protected override void OnOpen(TimeSpan timeout)
 {
     this.serviceRegistration = new BrokeredServiceRegistration(this.Uri.PathAndQuery, o => acceptQueue.Add(o));
 }
Exemple #2
0
 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));
 }