Beispiel #1
0
        public async Task <string> GetOs()
        {
            _eventLogRepository.Insert(new EventLogModule
            {
                EventID   = 1,
                Exception = "",
                LogLevel  = "Information",
                Message   = "test by Rico"
            });

            await _eventLogRepository.InsertAsync(new EventLogModule
            {
                EventID   = 2,
                Exception = "",
                LogLevel  = "Information",
                Message   = "test by Rico"
            });

            _eventLogRepository.BulkInsert(
                new[] {
                new EventLogModule
                {
                    EventID   = 3,
                    Exception = "",
                    LogLevel  = "Information",
                    Message   = "test by Rico"
                },
                new EventLogModule
                {
                    EventID   = 4,
                    Exception = "",
                    LogLevel  = "Information",
                    Message   = "test by Rico"
                }
            });

            await _eventLogRepository.BulkInsertAsync(
                new[] {
                new EventLogModule
                {
                    EventID   = 5,
                    Exception = "",
                    LogLevel  = "Information",
                    Message   = "test by Rico"
                },
                new EventLogModule
                {
                    EventID   = 6,
                    Exception = "",
                    LogLevel  = "Information",
                    Message   = "test by Rico"
                }
            });

            return(System.Runtime.InteropServices.RuntimeInformation.OSDescription);
        }