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
sfc /scannow | |
CHKDSK /R /F | |
DISM.exe /Online /Cleanup-image /Restorehealth | |
DISM.exe /Online /Cleanup-image /Scanhealth |
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
REM NET stop "SQL Server (MSSQLSERVER)" | |
REM NET start "SQL Server (MSSQLSERVER)" | |
REM taskkill /im webdev.webserver.exe /f | |
REM taskkill /im WebDev.WebServer40.exe /f | |
REM taskkill /im iisexpress.exe /f | |
REM ipconfig /release | |
REM ipconfig /renew | |
REM ipconfig /flushdns |
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 ExceptionalLogger : ILogger | |
{ | |
static ExceptionalLogger() | |
{ | |
VoodooGlobalConfiguration.ErrorDetailLoggingMethodology = ErrorDetailLoggingMethodology.LogInExceptionData; | |
} | |
public void Log(string message) | |
{ | |
ErrorStore.LogException(new Exception(message), HttpContext.Current); | |
} |
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 interface IElmahtiyFrameworkContext | |
{ | |
DbSet<ErrorLog> Errors { get; set; } | |
} | |
public class ErrorLog | |
{ | |
[Index] | |
public Guid ErrorId { get; set; } |
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.Data.Entity.Core.Mapping; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using iTextSharp.text; | |
using iTextSharp.text.pdf; | |
using iTextSharp.tool.xml; |
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 System.Reflection; | |
using Voodoo; | |
namespace Tests | |
{ | |
public class MappingTesterHelper<TSource, TTarget> | |
{ |
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 ADbContext: DbContext | |
{ | |
public ADbContext: () : base("DefaultConnection") | |
{ | |
this.Configuration.ProxyCreationEnabled = false; | |
this.Configuration.LazyLoadingEnabled = false; | |
var ensureDllIsCopied = System.Data.Entity.SqlServer.SqlProviderServices.Instance; | |
} | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) |
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
localReport report = new LocalReport(); | |
report.ReportPath = "SomePath"; | |
report.DataSources.Clear(); | |
report.DataSources.Add(new ReportDataSource("SomeDataSourceName", | |
SomeCollectionObject)); | |
report.DataSources.Add(new ReportDataSource("SomeOtherDataSourceName", | |
SomeOtherCollectionObject)); | |
Warning[] warnings; | |
string[] streamids; | |
string mimeType, encoding, filenameExtension; |
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.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace Renamer | |
{ | |
internal class Program | |
{ |
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 ElmahLogger: Voodoo.Logging.ILogger | |
{ | |
public void Log(string message) | |
{ | |
using (var scope = new TransactionScope(TransactionScopeOption.Suppress)) | |
{ | |
var exception = new Exception(message); | |
ErrorSignal.FromCurrentContext().Raise(exception); | |
} |
NewerOlder