Example #1
0
        public MainShellViewModel(IProxyEventAggregator eventAggregator, SendMessageViewModel sendMessage)
        {
            SendMessage = sendMessage;
            DisplayName = ".NET Client Demo";


            Events = new BindableCollection <IMessageEvent <string> >();

            eventAggregator.Subscribe(this, builder => builder.For <ConstrainedEvent>().Add(new ConstrainedEventConstraint {
                Message = "HelloWorld"
            }));
        }
Example #2
0
        public MainShellViewModel(IEventAggregator <Event> eventAggregator, SendMessageViewModel sendMessage)
        {
            SendMessage = sendMessage;
            DisplayName = ".NET Client Demo";


            Events = new BindableCollection <IMessageEvent <string> >();

            eventAggregator.Subscribe(this, new[]
            {
                new ConstraintInfo <ConstrainedEvent, ConstrainedEventConstraint>(new ConstrainedEventConstraint {
                    Message = "HelloWorld"
                })
            });
        }