Пример #1
0
        protected override async Task LoadContentsAsync(IOwinContext context)
        {
            var errorId = context.Request.Query["id"];
            
            errorLogEntry = await ErrorLog.GetErrorAsync(errorId);
            if (errorLogEntry == null)
            {
                PageTitle = "Error not found in log";
                return;
            }

            PageTitle = $"Error: {errorLogEntry.Error.TypeName} [{errorLogEntry.Id}]";
            requestQuery = context.Request.Uri.Query;
        }
Пример #2
0
            public void Add(ErrorLogEntry entry)
            {
                lock (lockObject)
                {
                    if (list.Count == size)
                        list.RemoveAt(0);

                    list.Add(entry);
                }
            }