Skip to content

Instantly share code, notes, and snippets.

View dbeattie71's full-sized avatar

Derek Beattie dbeattie71

  • Nebraska
  • 11:58 (UTC -05:00)
View GitHub Profile
@dbeattie71
dbeattie71 / Program.cs
Created February 14, 2024 22:36 — forked from madcodemonkey/Program.cs
Generate SSRS report using WCF in .NET Core Application
using ServiceReference1;
using System;
using System.Collections.Generic;
using System.IO;
using System.ServiceModel;
using System.Threading.Tasks;
namespace SSRSSimple
{
class Program
; keyboard bindings (via /keyboard)
;
; , is one handed weapon
; . is two handed weapon
; ; is ranged weapon
; = is a /qbind to pet target
EquipOneHanded() {
Send, {F9}
}
using System.IdentityModel.Tokens.Jwt;
using Microsoft.AspNetCore.Authentication;
using Microsoft.IdentityModel.Protocols;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
using Microsoft.IdentityModel.Tokens;
namespace ReverseProxy.Common;
//https://blog.cellenza.com/en/cloud/secure-access-to-swagger-ui-with-azure-active-directory/
//https://medium.com/@niteshsinghal85/securing-swagger-ui-in-production-in-asp-net-core-part-2-dc2ae0f03c73
unit MapNavigator;
interface
(****
Map nodes are layed out in a top-down coordinate system (y-axis reversed):
(0,0) --------> +x
|
|
V
using System;
using System.Collections.Generic;
using System.Linq;
using HarmonyLib;
namespace Pulumi.Helpers
{
public interface ITaggingStrategy
{
bool IsTaggable(string typeName);
public sealed class ProviderHelper
{
private static readonly Lazy<ProviderHelper> Lazy = new Lazy<ProviderHelper>(() => new ProviderHelper());
private static readonly Dictionary<string, Provider> Providers = new Dictionary<string, Provider>();
private static readonly LocalDataStoreSlot LocalDataStoreSlot =
Thread.GetNamedDataSlot(nameof(Provider).ToLower());
private Input<string>? _accessKey;
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
# OR
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
# OR
public class AuthenticatingHandler<T> : DelegatingHandler where T : ISecurityTokenAccessor
{
private readonly Policy<HttpResponseMessage> _policy;
private readonly T _securityTokenAccessor;
private IAccessToken _accessToken;
private AuthenticationHeaderValue _authenticationHeader;
public AuthenticatingHandler(T securityTokenAccessor)
{
_securityTokenAccessor = securityTokenAccessor;
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://tempuri.org/DataConnectRQ")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/DataConnectRQ", IsNullable=false)]
public partial class DATACONNECTRQ {
private string vERSIONField;
public sealed class MyIssue
{
[Fact]
void Verify() {
var serializer = new ConfigurationContainer( ).ConfigureType<SubjectRequest>( ).EnableImplicitTypingFromNamespace<MyIssue>( ).Create( ).ForTesting( );
var subjectRequest =
new SubjectRequest {
SomeInterface = new Subject2 { Message = "message1", Message2 = "message2" }
};