This file contains hidden or 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 Global : System.Web.HttpApplication | |
{ | |
protected void Application_Start(object sender, EventArgs e) | |
{ | |
InitAppInsights(); | |
} | |
private static void InitAppInsights() | |
{ | |
// Add AppInsights:InstrumentationKey appSetting to web.config |
This file contains hidden or 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
private async void AuthenticateAndTest(object sender, RoutedEventArgs e) | |
{ | |
var token = await this.GetAuthorizationToken(); | |
var jsonResponse = await this.CallSitefinityService(token); | |
} | |
private async Task<string> GetAuthorizationToken() | |
{ | |
var requestBody = new FormUrlEncodedContent(new[] { | |
new KeyValuePair<string, string>("wrap_name", "test"), |
This file contains hidden or 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
$(function (window) { | |
window.onFilterMenuInit = function (e) { | |
// Create custom filtering for the "url" columns only. | |
if (e.field === "url") { | |
initUrlFilter(e, this); | |
} | |
}; |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- Plug into the Publish pipeline --> | |
<OnAfterPipelineCollectFilesPhase> | |
XmlTransform; | |
$(OnAfterPipelineCollectFilesPhase); | |
</OnAfterPipelineCollectFilesPhase> |
This file contains hidden or 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 Global : System.Web.HttpApplication | |
{ | |
protected void Application_Start(object sender, EventArgs e) | |
{ | |
Bootstrapper.Bootstrapped += Bootstrapper_Bootstrapped; | |
} | |
private void Bootstrapper_Bootstrapped(object sender, EventArgs e) | |
{ | |
this.AddMvcWidgetToPage(); |
This file contains hidden or 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
private JwtSecurityToken GetAuthenticationTokenForUser(string username) | |
{ | |
var claims = new Claim[] | |
{ | |
new Claim(JwtRegisteredClaimNames.Sub, username) | |
}; | |
var signingKey = this.GetSigningKey(); | |
var audience = this.GetSiteUrl(); // audience must match the url of the site | |
var issuer = this.GetSiteUrl(); // audience must match the url of the site |
This file contains hidden or 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 Plugin | |
{ | |
public void GetCustomData(ref rdServerObjects rdObjects) | |
{ | |
// Get plugin settings | |
var settings = new PluginSettings(ref rdObjects); | |
// Generate data using settings | |
var xmlDocument = new XmlDocument(); | |
xmlDocument = rdObjects.CurrentData; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Kendo MultiSelect - Single Item Per Group</title> | |
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.504/styles/kendo.common.min.css" /> | |
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.504/styles/kendo.metro.min.css" /> | |
<script src="http://kendo.cdn.telerik.com/2016.2.504/js/jquery.min.js"></script> | |
<script src="http://kendo.cdn.telerik.com/2016.2.504/js/kendo.all.min.js"></script> | |
<script src="Scripts/multiselect.js"></script> | |
</head> |
This file contains hidden or 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
<!-- Rest of .csproj --> | |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |
<Import Project="$(MSBuildProjectDirectory)\Build\copy-output.targets" /> | |
</Project> |