Skip to content

Instantly share code, notes, and snippets.

@mgaffigan
mgaffigan / WSTrust on NetCore.cs
Last active March 4, 2024 21:02
Example of using System.ServiceModel.Federation with Windows Integrated Auth on net8.0 and net48
using System;
#if NET
using System.IdentityModel.Tokens;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.ServiceModel.Federation;
using Microsoft.IdentityModel.Protocols.WsTrust;
using Microsoft.IdentityModel.Protocols.WsPolicy;
using Microsoft.IdentityModel.Protocols.WsAddressing;
@mgaffigan
mgaffigan / Example.txt
Created January 12, 2024 16:41
Example of net48 target from sdk style project.
PS C:\dev\source\repos\SdkStyleNet48\SdkStyleNet48> dotnet run
Hello, World from 4.0.30319.42000!
PS C:\dev\source\repos\SdkStyleNet48\SdkStyleNet48> dotnet build
MSBuild version 17.7.3+8ec440e68 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
SdkStyleNet48 -> C:\dev\source\repos\SdkStyleNet48\SdkStyleNet48\bin\Debug\net48\SdkStyleNet48.exe
Build succeeded.
0 Warning(s)
@mgaffigan
mgaffigan / vue example.html
Created November 22, 2019 03:56
Example of using Vue to have a dynamic set of combo boxes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
</head>
<body>
<section class="regionapp">
<header class="header">
<h1>regions</h1>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>Example of a variable number of combo boxes</p>
<form>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>Example of a variable number of combo boxes</p>
<form>
@mgaffigan
mgaffigan / sox-layer-node10.zip
Last active October 29, 2019 17:24
Lambda SOX Layer for node 10
This file has been truncated, but you can view the full file.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace StripJabberTelUri
{
@mgaffigan
mgaffigan / BarcodeRenderingService.cs
Created June 17, 2017 17:24
Example showing a barcode renderer which uses GET parameters to render images
using dmx = IEC16022Sharp;
using gdii = System.Drawing.Imaging;
using gdi = System.Drawing;
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.IO;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;