/// <summary>
        /// Use BSON (binary JSON) for event serialization.
        /// </summary>
        /// <param name="cfg"></param>
        /// <returns></returns>
        public static EventStoreConfiguration WithBsonEventSerializer(this EventStoreConfiguration cfg)
        {
            ISerializer serializer = new BsonNetSerializer();

            Xyperico.Agres.EventStore.EventStoreConfigurationExtensions.SetMessageSerializer(cfg, serializer);
            return(cfg);
        }
Beispiel #2
0
        /// <summary>
        /// Use BSON (binary JSON) for message serialization.
        /// </summary>
        /// <param name="cfg"></param>
        /// <returns></returns>
        public static MessageBusConfiguration WithBsonMessageSerializer(this MessageBusConfiguration cfg)
        {
            ISerializer serializer = new BsonNetSerializer();

            Xyperico.Agres.MessageBus.MessageBusConfigurationExtensions.SetMessageSerializer(cfg, serializer);
            return(cfg);
        }
 /// <summary>
 /// Use BSON (binary JSON) for event serialization.
 /// </summary>
 /// <param name="cfg"></param>
 /// <returns></returns>
 public static EventStoreConfiguration WithBsonEventSerializer(this EventStoreConfiguration cfg)
 {
     ISerializer serializer = new BsonNetSerializer();
       Xyperico.Agres.EventStore.EventStoreConfigurationExtensions.SetMessageSerializer(cfg, serializer);
       return cfg;
 }