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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst fiddler4 | |
cinst git | |
cinst nodejs | |
cinst Brackets | |
cinst kdiff3 | |
cinst jre8 | |
cinst redis-desktop-manager |
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
/*jslint node: true*/ | |
'use strict'; | |
var Parenizor = require('./crockfordClass').Parenizor; | |
Function.method('inherits', function (parent) { | |
this.prototype = new parent(); | |
var d = {}, | |
p = this.prototype; | |
this.prototype.constructor = parent; |
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
/*jslint node: true*/ | |
'use strict'; | |
Function.prototype.method = function (name, func) { | |
this.prototype[name] = func; | |
return this; | |
}; | |
function Parenizor(value) { | |
this.setValue(value); |
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
var parameters = new UriOperationParameter[] { | |
new UriOperationParameter("userId", _userSession.User.UserID ), | |
new UriOperationParameter("platformContextId", _appSession.PlatformContextId) }; | |
var context = _dataContextFactory.Create(MergeOption.AppendOnly); | |
_settings = context.Execute<Setting>(new Uri("GetSettings", UriKind.Relative), "GET", false, parameters).ToList(); |
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
var existingSetting = _settings.Where(s => s.SettingKey == setting.SettingKey).FirstOrDefault(); | |
if (existingSetting == null) | |
throw new ArgumentException("Attempting to update Setting with name '{0}' but the setting is not cached and cannot be updated."); | |
existingSetting.Value = setting.Value; | |
var parameters = new UriOperationParameter[] { | |
new UriOperationParameter("userId", _userSession.User.UserID ), | |
new UriOperationParameter("serializedSetting", _serializationService.SerializeAsString<Setting>(existingSetting)) }; | |
var context = _dataContextFactory.Create(MergeOption.AppendOnly); | |
// Perform WCF Data Services ServiceOperation call. |
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
[WebGet] | |
public IQueryable<Setting> GetSettings(Guid userId, Guid platformContextId) | |
{ | |
return DataSource.GetSettings(userId, platformContextId).AsQueryable<Setting>(); | |
} | |
[WebInvoke] | |
public void UpdateSetting(Guid userId, string serializedSetting) | |
{ | |
var serializationService = new SerializationService(); |