Skip to content

Instantly share code, notes, and snippets.

View MarkMpn's full-sized avatar

Mark Carrington MarkMpn

View GitHub Profile
@MarkMpn
MarkMpn / CanaryTracer.cs
Created July 3, 2020 12:39 — forked from rappen/CanaryTracer.cs
Extension that writes everything from an IExecutionContext to the Plugin Trace Log
/* ***********************************************************
* CanaryTracer.cs
* Found at: https://jonasr.app/canary
* Created by: Jonas Rapp https://jonasr.app/
*
* Writes everything from an IExecutionContext to the Plugin Trace Log.
*
* Sample call:
* tracingservice.TraceContext(context,
* includeparentcontext,
@MarkMpn
MarkMpn / ConnectionListController.cs
Created March 4, 2019 22:42
ASP.NET MVC Controller to generate XrmToolBox Connection List
public class ConnectionListController : Controller
{
public ActionResult Index()
{
var model = new CrmConnections
{
Connections = new ConnectionDetails
{
Proxy = new Proxy(),
Name = "Client CRM Connections",
@MarkMpn
MarkMpn / XrmToolBoxConnection.cs
Created March 4, 2019 22:36
XrmToolBox Connection Serialization
/// <summary>
/// Contains details of the web proxy to be used to connect to each CRM instance
/// </summary>
public class Proxy
{
public bool UseCustomProxy { get; set; }
public bool UseInternetExplorerProxy { get; set; }
public string Address { get; set; } = "";
public string Username { get; set; } = "";
public string Password { get; set; } = "";