Пример #1
0
 public static void PrintLine(this IImageWorker worker, string text)
 {
     if (worker.OnPrintLine != null)
     {
         worker.OnPrintLine(text);
     }
     else
     {
         Console.WriteLine(text);
     }
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
 public static void PrintLine(this IImageWorker worker, string format, params object[] args)
 {
     PrintLine(worker, string.Format(format, args));
 }