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
Task Output -Depends Compile { | |
“Copy Outputs...” | |
$xf = @("*.log", "*.txt", "*.md", "*.xml", "*.pdb") | |
$xd = @(".git", "obj") | |
& robocopy "$SourceDir\bin\$BuildConfig" "$BuildDir\Output" $np /XF $xf /XD $xd /NP | |
if ($lastexitcode -ge 8) { | |
throw ("RoboCopy: Error copying files.") |
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
Kick.Start(config => { | |
config | |
.IncludeLoadedAssemblies() | |
.IncludeReferencedAssemblies() | |
.IncludeAssemblyFor<Type>() | |
.IncludeAssembly(Assembly) | |
.IncludeName(string) | |
.ExcludeAssemblyFor<Type>() |
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
Bootstrap | |
.Assemblies(scan => { | |
scan.Include().FromType<Type>(); | |
scan.Include().Assembly(Assembly); | |
scan.Include().StartsWith(string); | |
scan.Include().Contains(string); | |
scan.Include().LoadedAssemblies(); | |
scan.Include().ReferencedAssemblies(); | |
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
/* slider */ | |
.sliderLabel | |
{ | |
border: 1px solid; | |
border-color: #e4e4e4 #e4e4e4 #bebebe; | |
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | |
-moz-border-radius: 5px; | |
-webkit-border-radius: 5px; | |
-ms-border-radius: 5px; | |
border-radius: 5px; |
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
{ | |
"_id" : ObjectId("5184219b545eb455aca34391"), | |
"Date" : "2013-05-03 15:44:11.7942", | |
"Level" : "Error", | |
"Message" : "Error reading file 'blah.txt'.", | |
"Logger" : "NLog.Mongo.ConsoleTest.Program", | |
"Exception" : "System.IO.FileNotFoundException: Could not find file 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'.\r\nFile name: 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'\r\n at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLong |
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
{ | |
"_id" : ObjectId("5184219b545eb455aca34390"), | |
"TimeStamp" : ISODate("2013-05-03T20:44:11Z"), | |
"Level" : "Error", | |
"LoggerName" : "NLog.Mongo.ConsoleTest.Program", | |
"Message" : "Error reading file 'blah.txt'.", | |
"Exception" : { | |
"Message" : "Could not find file 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'.", | |
"Text" : "System.IO.FileNotFoundException: Could not find file 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'.\r\nFile name: 'C:\\Projects\\github\\NLog.Mongo\\Source\\NLog.Mongo.ConsoleTest\\bin\\Debug\\blah.txt'\r\n at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n at System.IO.FileS |
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 MongoRepository<TEntity> | |
where TEntity : class | |
{ | |
private static readonly Lazy<string> _collectionName; | |
private static int _mappingInitialized = 0; | |
private static int _indexingInitialized = 0; | |
private readonly Lazy<MongoCollection<TEntity>> _collection; | |
private readonly MongoUrl _mongoUrl; |
NewerOlder