View Get-DscStatusReport
$PullServer = "localhost:8050"
$ConfigurationId = "45268a6b-9f2d-49eb-a328-79920b389e7a"
#region Generate report
function Get-DscStatusReport
{
param(
$ServiceURL,
$ConfigurationId = "$((glcm).ConfigurationId)"
)
View RestartManagerSession.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
namespace RestartManager
{
public sealed class RestartManagerSession : IDisposable
{
View RestartManagerSession.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
namespace RestartManager
{
public sealed class RestartManagerSession : IDisposable
{
View MSbuild Task to create a web deployment package during build of csproj
<Target Name="Deploy" AfterTargets="Build">
<MSBuild
Projects="$(ProjectPath)"
Targets="WebPublish"
Properties="PublishProfile=LocalDeploy"
/>
</Target>
View BinPath.cs
public static string BinFilesPath
{
get
{
string dllPath;
dllPath = System.Reflection.Assembly.GetExecutingAssembly().CodeBase;
dllPath = new Uri(dllPath).LocalPath;
dllPath = System.IO.Path.GetDirectoryName(dllPath);
View jquery.parsejson.js
/*!
* jQuery.parseJSON() extension (supports ISO & Asp.net date conversion)
*
* Version 1.0 (13 Jan 2011)
*
* Copyright (c) 2011 Robert Koritnik
* Licensed under the terms of the MIT license
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
View jquery-ui.unobtrusive.js
(function ($) {
var createWidgets = function ($el) {
var data = $el.attr('data-jqueryui');
var widget = data, options = null, index = data.indexOf(':');
if (index > 0) {
widget = data.substr(0, index);
eval("options = " + data.substr(index + 1).trim());
}
// Sanity check: can't directly check that it's truly a _widget_, but