/CodeGenerator.Infrastructure

Infrastructure library used in projects created by the Code Generator tool.

Primary LanguageC#MIT LicenseMIT

Tolitech.CodeGenerator.Infrastructure

Infrastructure library used in projects created by the Code Generator tool.

This project contains the implementation of common services used in the infrastructure layer for the projects generated by the Tolitech Code Generator tool.

Tolitech Code Generator Tool: http://www.tolitech.com.br

Examples:

string filePath = Path.Combine(
    Directory.GetCurrentDirectory(),
    "Assets",
    "Test.html");

string template = emailService.GetTemplate(filePath, "Tolitech");

var attachments = new List<Attachment>();
attachments.Add(new Attachment(file1));
attachments.Add(new Attachment(file2));
attachments.Add(new Attachment(file3));

emailService.Send("host", 587, "username", "password", "From<from@domain.com>", "to@domain.com", "Subject", template, "cc@domain.com", "bcc@domain.com", attachments);