Exemple #1
0
        static Codec()
        {
            Encoder.Initialize();

            Encoder.AddKnownDescribed(Codec.Open, () => new Open());
            Encoder.AddKnownDescribed(Codec.Begin, () => new Begin());
            Encoder.AddKnownDescribed(Codec.Attach, () => new Attach());
            Encoder.AddKnownDescribed(Codec.Detach, () => new Detach());
            Encoder.AddKnownDescribed(Codec.End, () => new End());
            Encoder.AddKnownDescribed(Codec.Close, () => new Close());
            Encoder.AddKnownDescribed(Codec.Flow, () => new Flow());
            Encoder.AddKnownDescribed(Codec.Dispose, () => new Dispose());
            Encoder.AddKnownDescribed(Codec.Transfer, () => new Transfer());

            Encoder.AddKnownDescribed(Codec.Error, () => new Error(null));
            Encoder.AddKnownDescribed(Codec.Source, () => new Source());
            Encoder.AddKnownDescribed(Codec.Target, () => new Target());

            Encoder.AddKnownDescribed(Codec.Accepted, () => new Accepted());
            Encoder.AddKnownDescribed(Codec.Rejected, () => new Rejected());
            Encoder.AddKnownDescribed(Codec.Released, () => new Released());
            Encoder.AddKnownDescribed(Codec.Modified, () => new Modified());
            Encoder.AddKnownDescribed(Codec.Received, () => new Received());

            Encoder.AddKnownDescribed(Codec.SaslMechanisms, () => new SaslMechanisms());
            Encoder.AddKnownDescribed(Codec.SaslInit, () => new SaslInit());
            Encoder.AddKnownDescribed(Codec.SaslChallenge, () => new SaslChallenge());
            Encoder.AddKnownDescribed(Codec.SaslResponse, () => new SaslResponse());
            Encoder.AddKnownDescribed(Codec.SaslOutcome, () => new SaslOutcome());

            Encoder.AddKnownDescribed(Codec.Header, () => new Header());
            Encoder.AddKnownDescribed(Codec.DeliveryAnnotations, () => new DeliveryAnnotations());
            Encoder.AddKnownDescribed(Codec.MessageAnnotations, () => new MessageAnnotations());
            Encoder.AddKnownDescribed(Codec.Properties, () => new Properties());
            Encoder.AddKnownDescribed(Codec.ApplicationProperties, () => new ApplicationProperties());
            Encoder.AddKnownDescribed(Codec.Data, () => new Data());
            Encoder.AddKnownDescribed(Codec.AmqpSequence, () => new AmqpSequence());
            Encoder.AddKnownDescribed(Codec.AmqpValue, () => new AmqpValue());
            Encoder.AddKnownDescribed(Codec.Footer, () => new Footer());

#if NETFX || NETFX40 || DOTNET
            Encoder.AddKnownDescribed(Codec.Coordinator, () => new Coordinator());
            Encoder.AddKnownDescribed(Codec.Declare, () => new Declare());
            Encoder.AddKnownDescribed(Codec.Discharge, () => new Discharge());
            Encoder.AddKnownDescribed(Codec.Declared, () => new Declared());
            Encoder.AddKnownDescribed(Codec.TransactionalState, () => new TransactionalState());
#endif
        }