public KafKaManager(string server, IMessageSerialize serialize) { producer = new Producer($"{server}:9092"); AdaptConfig.MessageSerializeInstance = serialize ?? new MessageJsonSerialize(); }
public KafKaManager(IMessageSerialize serialize) { AdaptConfig.MessageSerializeInstance = serialize ?? new MessageJsonSerialize(); }
public static void WriteBean(Stream stream, IMessageSerialize value) { value.Serialize(stream); }