public static void PrintLine(this IImageWorker worker, string text) { if (worker.OnPrintLine != null) { worker.OnPrintLine(text); } else { Console.WriteLine(text); } }
public StudentsService(CoursesSystemDbContext context, IMapperWrapper <SystemUser, SystemUserDTO> mapperWrapper, IExtendedDataService <SystemUser> users, IImageWorker imageWorker) { this.context = context; this.mapperWrapper = mapperWrapper; this.users = users; this.imageWorker = imageWorker; }
public CoursesService(IMapperWrapper <TrainingCourse, TrainingCourseDTO> mapperWrapper, IExtendedDataService <TrainingCourse> courses, IExtendedDataService <SystemUser> users, IImageWorker imageWorker, CoursesSystemDbContext context) { this.mapperWrapper = mapperWrapper; this.courses = courses; this.users = users; this.imageWorker = imageWorker; this.context = context; }
public AccountService(SignInManager <SystemUser> signInManager, RoleManager <SystemRole> roleManager, UserManager <SystemUser> userManager, IConfiguration configuration, SecurityTokenHandler tokenHandler, IMapperWrapper <SystemUser, SystemUserDTO> mapperWrapper, IHttpClientFactory httpClientFactory, IEmailService emailService, IExtendedDataService <SystemUser> users, IImageWorker imageWorker) { this.signInManager = signInManager; this.roleManager = roleManager; this.userManager = userManager; this.configuration = configuration; this.tokenHandler = tokenHandler; this.mapperWrapper = mapperWrapper; this.httpClientFactory = httpClientFactory; this.emailService = emailService; this.users = users; this.imageWorker = imageWorker; }
public static void PrintLine(this IImageWorker worker, string format, params object[] args) { PrintLine(worker, string.Format(format, args)); }