private void PublisherThreadFunc()
 {
     try
     {
         this.publisher = new WDEProgramPublisher() as IWDEProgramPublisher;
         this.wdeProgramNodeSingleton = new ProgramNode(this.controller);
         this.gchWdeProgramNode = GCHandle.Alloc(this.wdeProgramNodeSingleton);
         this.publisher.Publish(this.wdeProgramNodeSingleton);
         this.isPublished = true;
     }
     catch (Exception)
     {
     }
 }
コード例 #2
0
 private void PublisherThreadFunc()
 {
     try
     {
         this.publisher = new WDEProgramPublisher() as IWDEProgramPublisher;
         this.wdeProgramNodeSingleton = new ProgramNode(this.controller);
         this.gchWdeProgramNode       = GCHandle.Alloc(this.wdeProgramNodeSingleton);
         this.publisher.Publish(this.wdeProgramNodeSingleton);
         this.isPublished = true;
     }
     catch (Exception)
     {
     }
 }
コード例 #3
0
ファイル: ProgramPublisher.cs プロジェクト: dox0/DotNet471RS3
        private void PublisherThreadFunc()
        {
            try
            {
                this.publisher = new WDEProgramPublisher() as IWDEProgramPublisher;
                this.wdeProgramNodeSingleton = new ProgramNode(this.controller);
                this.gchWdeProgramNode       = GCHandle.Alloc(this.wdeProgramNodeSingleton);

                this.publisher.Publish(this.wdeProgramNodeSingleton);
                this.isPublished = true;
            }
            catch (Exception e)
            {
                // Ignore any exceptions that are caused by WDE.dll not being present or registered.
                Debug.WriteLine("WDE: ProgramPublisher.PublisherThreadFunc() exception: " + e.ToString());
            }
        }
コード例 #4
0
        private void PublisherThreadFunc()
        {
            try
            {
                this.publisher = new WDEProgramPublisher() as IWDEProgramPublisher;
                this.wdeProgramNodeSingleton = new ProgramNode(this.controller);
                this.gchWdeProgramNode = GCHandle.Alloc(this.wdeProgramNodeSingleton);

                this.publisher.Publish(this.wdeProgramNodeSingleton);
                this.isPublished = true;
            }
            catch (Exception e)
            {
                // Ignore any exceptions that are caused by WDE.dll not being present or registered.
                Debug.WriteLine("WDE: ProgramPublisher.PublisherThreadFunc() exception: " + e.ToString());
            }
        }