Ejemplo n.º 1
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)
     {
     }
 }
 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)
     {
     }
 }
 private void UnpublishThreadFunc()
 {
     try
     {
         this.publisher.Unpublish(this.wdeProgramNodeSingleton);
     }
     catch (Exception)
     {
     }
     finally
     {
         this.gchWdeProgramNode.Free();
         Marshal.ReleaseComObject(this.publisher);
         this.publisher = null;
     }
     this.isPublished = false;
 }
Ejemplo n.º 4
0
 private void UnpublishThreadFunc()
 {
     try
     {
         this.publisher.Unpublish(this.wdeProgramNodeSingleton);
     }
     catch (Exception)
     {
     }
     finally
     {
         this.gchWdeProgramNode.Free();
         Marshal.ReleaseComObject(this.publisher);
         this.publisher = null;
     }
     this.isPublished = false;
 }
Ejemplo n.º 5
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());
            }
        }
        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());
            }
        }
Ejemplo n.º 7
0
        private void UnpublishThreadFunc()
        {
            try
            {
                this.publisher.Unpublish(this.wdeProgramNodeSingleton);
            }
            catch (Exception e)
            {
                Debug.WriteLine("WDE: ProgramPublisher.UnpublishThreadFunc(): catch exception " + e.ToString());
                // We eat up any exceptions that can occur because the host process is abnormally terminated.
            }
            finally
            {
                this.gchWdeProgramNode.Free(); // Rrelease pin on the this.wdeProgramNodeSingleton

                Marshal.ReleaseComObject(this.publisher);
                this.publisher = null;
            }

            this.isPublished = false;
        }
Ejemplo n.º 8
0
 public ProgramPublisher()
 {
     this.publisher = null;
 }
 public ProgramPublisher()
 {
     this.publisher = null;
 }
        private void UnpublishThreadFunc()
        {
            try
            {
                this.publisher.Unpublish(this.wdeProgramNodeSingleton);
            }
            catch (Exception e)
            {
                Debug.WriteLine("WDE: ProgramPublisher.UnpublishThreadFunc(): catch exception " + e.ToString());
                // We eat up any exceptions that can occur because the host process is abnormally terminated.
            }
            finally
            {
                this.gchWdeProgramNode.Free(); // Rrelease pin on the this.wdeProgramNodeSingleton

                Marshal.ReleaseComObject(this.publisher);
                this.publisher = null;
            }

            this.isPublished = false;
        }