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
See https://gist.github.com/jbtule/4336842#file-aesthenhmac-cs |
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 Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Hosting; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace WebJobs | |
{ | |
public class JobStartup : IWebJobsStartup | |
{ | |
public void Configure(IWebJobsBuilder builder) | |
{ |
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
public class BinaryConverter | |
{ | |
public static BinaryConverter Instance => new BinaryConverter(); | |
public byte[] ToBinary<T>(T message) where T : class, new() | |
{ | |
var bf = new BinaryFormatter(); | |
using (var ms = new MemoryStream()) | |
{ |
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 Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Linq; | |
namespace EFCoreTest | |
{ | |
public class Program |