This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Security.Cryptography; | |
using System.Text; | |
using System.Threading.Tasks; | |
using FluentEmail.Core.Interfaces; | |
using HandlebarsDotNet; | |
namespace FluentEmail.Renderers | |
{ | |
public class HandlebarsRenderer : ITemplateRenderer | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<T> GetRestRequestList<T>(string url) | |
{ | |
List<T> results = new List<T>(); | |
var httpClient = new HttpClient(); | |
var response = httpClient.GetAsync(new Uri(url)).Result; | |
//will throw an exception if not successful | |
response.EnsureSuccessStatusCode(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ServiceModel; | |
using ChannelAdam.ServiceModel; | |
using EcmServices.DataModel; | |
public class User | |
{ | |
public String Username { get; set; } | |
public String Password { get; set; } | |
} |