Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Configuration;
using System.Net;
using System.Net.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace WebApplication4
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
using Microsoft.Exchange.WebServices.Data;
using System;
namespace EWS_FindAppointments
{
class Program
{
static void Main(string[] args)
{
var service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
@bschapendonk
bschapendonk / CreateValidateJWT.cs
Last active October 22, 2023 08:01
How to create and validate a JWT using System.IdentityModel.Tokens.Jwt
using System;
using System.IdentityModel.Tokens;
using System.Security.Claims;
using System.Security.Cryptography;
namespace CreateValidateJWT
{
class Program
{
static void Main(string[] args)