Example #1
0
        public static void Main(string[] args)
        {
            DefaultWampChannelFactory factory = new DefaultWampChannelFactory();
            IWampChannel channel = factory.CreateJsonChannel(serverAddress, "realm1");

            channel.Open().Wait();

            IWampTopicProxy    topicProxy = channel.RealmProxy.TopicContainer.GetTopicByUri(selectionChangedTopic);
            MySubscribeOptions options    = new MySubscribeOptions();

            // Set your options here
            options.@return = new string[] { "id" };

            SubscribeContext context = new SubscribeContext();

            topicProxy.Subscribe(new MySubscriber(context), options)
            .ContinueWith(t => context.unsubscribeDisposable = t.Result)
            .Wait();

            Console.WriteLine("Add a child to an entity in the Wwise Authoring application.");
            Console.ReadLine();
        }
Example #2
0
 public MySubscriber(SubscribeContext context)
 {
     mContext = context ?? throw new ArgumentNullException("Context cannot be null");
 }