예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public ISsml AsOrdinalNumber()
        {
            _writer = new SayAsWriter("ordinal", _value.ToString(CultureInfo.InvariantCulture));

            return(_ssml);
        }