locked
No Output From App Using Multiplex Operator RRS feed

  • Question

  • I have the following code that uses the >>- multiplex operator:

    using System;
    using Microsoft.Axum;
    using System.Concurrency.Messaging;
    
    namespace Project08
    {
        agent MainAgent : channel Microsoft.Axum.Application
        {   
    			void PrintOneNumber(int n)
    			{
    				Console.WriteLine(n);
    			}
        
          public MainAgent()
          {
    				var ip1 = new OrderedInteractionPoint<int>();
    				var ip2 = new OrderedInteractionPoint<int>();
          
    				ip1 <-- 10;
    				ip2 <-- 20;
          
    				var ips = new OrderedInteractionPoint<int>[] { ip1, ip2 };
          
    				ips >>- PrintOneNumber;
    				PrimaryChannel::ExitCode <-- 0;
          }
        }
    }
    
    

    No output is written to the console. What am I doing wrong?

    Tuesday, September 7, 2010 12:04 AM

Answers

All replies