View DependencyResolverInitialization.cs
This file contains 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
using System.Web.Mvc; | |
using EPiServer.DataAbstraction.RuntimeModel; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
using ModularAllowedTypes.Business.Rendering; | |
using EPiServer.Web.Mvc; | |
using EPiServer.Web.Mvc.Html; | |
using StructureMap; |
View DependencyResolverInitialization.cs
This file contains 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
using System.Web.Mvc; | |
using EPiServer.DataAbstraction.RuntimeModel; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
using ModularAllowedTypes.Business.Rendering; | |
using EPiServer.Web.Mvc; | |
using EPiServer.Web.Mvc.Html; | |
using StructureMap; |
View InitializationModule.cs
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using EPiServer.DataAbstraction; | |
using EPiServer.DataAbstraction.RuntimeModel; | |
using EPiServer.DataAnnotations; | |
using EPiServer.Framework; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.ServiceLocation; | |
using Feature.CoolPage; |
View ToQueryString
This file contains 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 static class NameValueCollectionExtensions { | |
public static string ToQueryString(this NameValueCollection nameValueCollection) { | |
return string.Join("&", nameValueCollection | |
.AllKeys | |
.SelectMany(key => (nameValueCollection.GetValues(key) ?? Enumerable.Empty<string>()) | |
.Select(val => string.Concat(key, "=", WebUtility.UrlEncode(val))))); | |
} | |
} |
View remove-bloat.ps1
This file contains 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
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.BingWeather_4.22.3254.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.DesktopAppInstaller_1.10.16004.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.GetHelp_10.1706.1981.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Getstarted_6.5.2851.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Messaging_2017.1026.259.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Microsoft3DViewer_2.1801.4012.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftOfficeHub_2017.715.118.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftSolitaireCollection_3.17.8162.0_neutral_~_8wekyb3d8bbwe | |
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:Micr |
View Migration different project multiple contexts
This file contains 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
dotnet ef migrations Add AddedStorageDto --context TournamentDbContext --startup-project ..\JOS.Tournament.Api |
View Result
This file contains 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 Result | |
{ | |
protected Result(bool success, string message = null) : this(success, message, Enumerable.Empty<Error>()) { } | |
protected Result(bool success, string message, IEnumerable<Error> errors) | |
{ | |
Success = success; | |
Message = message; | |
Errors = errors ?? Enumerable.Empty<Error>(); | |
} |