public ForwardDestinationSurrogateSelector()
        {
            DestinationBaseSerializationSurrogate dbss = new DestinationBaseSerializationSurrogate();

            base.AddSurrogate(typeof(Growl.GNTPForwardDestination),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);

            base.AddSurrogate(typeof(Growl.BonjourForwardDestination),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);

            base.AddSurrogate(typeof(Growl.ProwlForwardDestination),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);

            base.AddSurrogate(typeof(Growl.TwitterForwardDestination),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);

            base.AddSurrogate(typeof(Growl.EmailForwardDestination),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);

            base.AddSurrogate(typeof(Growl.UDPForwardDestination),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);
        }
        public ForwardDestinationSurrogateSelector()
        {
            DestinationBaseSerializationSurrogate dbss = new DestinationBaseSerializationSurrogate();

            base.AddSurrogate(typeof(Growl.GNTPForwardDestination),
               new StreamingContext(StreamingContextStates.All),
               dbss);

            base.AddSurrogate(typeof(Growl.BonjourForwardDestination),
               new StreamingContext(StreamingContextStates.All),
               dbss);

            base.AddSurrogate(typeof(Growl.ProwlForwardDestination),
               new StreamingContext(StreamingContextStates.All),
               dbss);

            base.AddSurrogate(typeof(Growl.TwitterForwardDestination),
               new StreamingContext(StreamingContextStates.All),
               dbss);

            base.AddSurrogate(typeof(Growl.EmailForwardDestination),
               new StreamingContext(StreamingContextStates.All),
               dbss);

            base.AddSurrogate(typeof(Growl.UDPForwardDestination),
                new StreamingContext(StreamingContextStates.All),
                dbss);
        }
コード例 #3
0
        public SubscriptionSurrogateSelector()
        {
            DestinationBaseSerializationSurrogate dbss = new DestinationBaseSerializationSurrogate();

            base.AddSurrogate(typeof(Growl.GNTPSubscription),
                              new StreamingContext(StreamingContextStates.All),
                              dbss);
        }
コード例 #4
0
        public SubscriptionSurrogateSelector()
        {
            DestinationBaseSerializationSurrogate dbss = new DestinationBaseSerializationSurrogate();

             base.AddSurrogate(typeof(Growl.GNTPSubscription),
               new StreamingContext(StreamingContextStates.All),
               dbss);
        }