예제 #1
0
        /// <inheritdoc />
        public async Task WriteLogAsync(string title, string text, IWavesObject sender, WavesMessageType type)
        {
            var message = new WavesTextMessage(
                text,
                title,
                sender,
                type);

            await WriteLogAsync(message);
        }
예제 #2
0
        /// <inheritdoc />
        public async Task WriteLogAsync(string text)
        {
            var message = new WavesTextMessage(
                text,
                string.Empty,
                this);

            if (!LoggingServices.Any())
            {
                await _pendingLogStorage.Push(message);
            }
            else
            {
                foreach (var service in LoggingServices)
                {
                    await service.WriteLogAsync(text);
                }
            }

            OnMessageReceived(message);
        }