public async Task WriteAsync(XmlWriter writer) { var format = DateFormatMap[_dateFormat]; var date = FormatDate(_date, _dateFormat); var sayAsWriter = new SayAsWriter("date", format, date); await sayAsWriter.WriteAsync(writer) .ConfigureAwait(false); }
public async Task WriteAsync(XmlWriter writer) { var format = GetFormat(_format); var value = GetValue(_value, _format); var sayAsWriter = new SayAsWriter("time", format, value); await sayAsWriter.WriteAsync(writer) .ConfigureAwait(false); }
public ISsml AsOrdinalNumber() { _writer = new SayAsWriter("ordinal", _value.ToString(CultureInfo.InvariantCulture)); return(_ssml); }