You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the DAL class, we have a method that has this format: public async Task<IEnumerable<LogMessage>> GetLogsForObject(string objectType, long objectId, LogLevel minLogLevel = LogLevel.Information)
It generates the following interface:
public partial interface ILogMessageRepository
{
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TSWCloud.Domain.Logging.LogMessage>> GetLogsForObject(string objectType, long objectId, TSWCloud.Domain.Logging.LogLevel minLogLevel = 2);
}
When compiling, this gives the error: A value of type 'int' cannot be used as a default parameter because there is no standard conversions to type LogLevel
Instead, it should generate the following interface:
public interface ILogMessageRepository
{
Task<IEnumerable<LogMessage>> GetLogsForObject(string objectType, long objectId,
LogLevel minLogLevel = LogLevel.Information);
}
The text was updated successfully, but these errors were encountered:
We have our own custom set of log events that we keep track of in a database. The severity is stored with a custom LogLevel enum:
For the DAL class, we have a method that has this format:
public async Task<IEnumerable<LogMessage>> GetLogsForObject(string objectType, long objectId, LogLevel minLogLevel = LogLevel.Information)
It generates the following interface:
When compiling, this gives the error:
A value of type 'int' cannot be used as a default parameter because there is no standard conversions to type LogLevel
Instead, it should generate the following interface:
The text was updated successfully, but these errors were encountered: