public static async Task <Guid> WriteAsync(RunningLog log) { ILoggger loggger = (ILoggger)Activator.CreateInstance(LogMediator._LoggerImplType); Task <Guid> logId = Task.Run(() => loggger.Write(log)); return(await logId); }
public static Guid Write(RunningLog log) { ILoggger loggger = (ILoggger)Activator.CreateInstance(LogMediator._LoggerImplType); Guid logId = loggger.Write(log); return(logId); }