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 ProcessorWithUrlBase | |
{ | |
public string Url { get; set; } | |
protected bool IsAllowedRequest(HttpRequestArgs args) | |
{ | |
return string.IsNullOrWhiteSpace(this.Url) || args.Context.Request.RawUrl.StartsWith(this.Url, StringComparison.OrdinalIgnoreCase); | |
} | |
} |
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
Cleaning: Rumar.Xamarin.Venus.iOS (Debug|iPhoneSimulator) | |
Build started 7/17/2015 11:35:46 AM. | |
__________________________________________________ | |
Project "/Users/ruudvanfalier/Rumar/Projects/Rumar-Xamarin-Framework/src/Rumar.Xamarin.Venus.iOS/Rumar.Xamarin.Venus.iOS.csproj" (Clean target(s)): | |
Target CoreClean: | |
Deleting file '/Users/ruudvanfalier/Rumar/Projects/Rumar-Xamarin-Framework/src/Rumar.Xamarin.Venus.iOS/obj/iPhoneSimulator/Debug/Xamarin.iOS,Version=v1.0.AssemblyAttribute.cs' | |
Deleting file '/Users/ruudvanfalier/Rumar/Projects/Rumar-Xamarin-Framework/src/Rumar.Xamarin.Venus.iOS/bin/iPhoneSimulator/Debug/Venus.exe.mdb' |
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
$service = Get-WmiObject -Class Win32_Service -Filter "Name='MongoDB'" | |
if ($service -eq $null) | |
{ | |
$MongoPath = "d:\mongo\mongod.exe" | |
$MongoLogPath = "d:\mongo\logs\mongod.log" | |
$MongoDataFolder = "d:\mongo\data" | |
$binaryPath = "`"$MongoPath`" --service --logpath `"$MongoLogPath`" --dbpath `"$MongoDataFolder`"" | |
New-Service -Name MongoDB -BinaryPathName $binaryPath -Description "MongoDB for Sitecore EMS" -DisplayName "MongoDB" -StartupType auto | Out-Null |
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
Let's say I have a template an overview page - a page that shows an overview of child items - and I need a Glass Mapper model of that. | |
This overview page can be used to display different type of child items. | |
Child items also have Glass Mapper models. | |
So I have: | |
- News items, with the model NewsItemModel | |
- Blog items, with the model BlogItemModel | |
- Overview items, with the model OverviewPageModel | |
Now I would like the OverviewPageModel to be of a generic type: OverviewPageModel<T> |