Exemplo n.º 1
0
        private Guid LogMessage(ErrorViewModel viewModel)
        {
            var log = new ErrorListItem(
                itemType: Sdk.Enums.ErrorListItemType.Message,
                number: 1,
                description: "New message log " + DateTime.Now.Ticks,
                path: "Message Path",
                line: 3,
                column: 1);

            viewModel.LogError(log);

            return(log.Id);
        }
Exemplo n.º 2
0
        private Guid LogWarning(ErrorViewModel viewModel)
        {
            var log = new ErrorListItem(
                itemType: Sdk.Enums.ErrorListItemType.Warning,
                number: 1,
                description: "New warning log " + DateTime.Now.Ticks,
                path: "Warning Path",
                line: 2,
                column: 1);

            viewModel.LogError(log);

            return(log.Id);
        }