private void Write(PropertyInitialValueSetEventArgs e) { Write(BinaryLogRecordKind.PropertyInitialValueSet); WriteMessageFields(e, writeImportance: true); WriteDeduplicatedString(e.PropertyName); WriteDeduplicatedString(e.PropertyValue); WriteDeduplicatedString(e.PropertySource); }
private void Write(PropertyInitialValueSetEventArgs e) { Write(BinaryLogRecordKind.PropertyInitialValueSet); WriteMessageFields(e); Write(e.PropertyName); Write(e.PropertyValue); Write(e.PropertySource); }
public void PropertyInitialValueEventArgs() { var args = new PropertyInitialValueSetEventArgs( propertyName: Guid.NewGuid().ToString(), propertyValue: Guid.NewGuid().ToString(), propertySource: Guid.NewGuid().ToString(), message: Guid.NewGuid().ToString(), helpKeyword: Guid.NewGuid().ToString(), senderName: Guid.NewGuid().ToString()); Roundtrip(args, e => e.PropertyName, e => e.PropertyValue, e => e.PropertySource, e => e.Message, e => e.HelpKeyword, e => e.SenderName); }
private BuildEventArgs ReadPropertyInitialValueSetEventArgs() { var fields = ReadBuildEventArgsFields(); var importance = (MessageImportance)ReadInt32(); string propertyName = ReadString(); string propertyValue = ReadString(); string propertySource = ReadString(); var e = new PropertyInitialValueSetEventArgs( propertyName, propertyValue, propertySource, fields.Message, fields.HelpKeyword, fields.SenderName, importance); SetCommonFields(e, fields); return(e); }