Example #1
0
        public DiscoveryPublishService()
        {
            AnnouncedSubscribers = new AnnouncementSink <T>();
            DiscoveredServices   = new DiscoveredServices <T>();

            AnnouncedSubscribers.Open();
            DiscoveredServices.Open();
        }
Example #2
0
        public ExplorerForm()
        {
            m_SynchronizationContext = SynchronizationContext.Current;

            InitializeComponent();
            m_MexTree.ImageList = new ImageList();
            m_MexTree.ImageList.Images.Add(Resources.Address);
            m_MexTree.ImageList.Images.Add(Resources.Binding);
            m_MexTree.ImageList.Images.Add(Resources.Contract);
            m_MexTree.ImageList.Images.Add(Resources.PieEndpoint);
            m_MexTree.ImageList.Images.Add(Resources.Operation);
            m_MexTree.ImageList.Images.Add(Resources.Service);
            m_MexTree.ImageList.Images.Add(Resources.ServiceError);
            m_MexTree.ImageList.Images.Add(Resources.AddressUnspecified);

            m_CurrentViewControl = m_BlankViewControl;
            DisplayBlankControl();

            m_AnnouncementSink = new AnnouncementSink <IMetadataExchange>();
            m_AnnouncementSink.OnlineAnnouncementReceived  += OnHelloNotice;
            m_AnnouncementSink.OfflineAnnouncementReceived += OnByeNotice;

            m_AnnouncementSink.Open();
        }