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 LoginForm : FormView | |
{ | |
public LoginForm() | |
{ | |
this.Action = "/login"; | |
Method = "POST"; | |
AutoComplete = "off"; | |
Classes = new[] {"form-stacked"}; | |
DefineFields<LoginModel>(f => |
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 Payment { | |
private int _accountID; | |
private int _userID; | |
private decimal _paymentAmount; | |
/* I realize this looks almost like it should be a FI, but | |
that would just distract from the point */ | |
public void OnAccount(int id) { | |
_accountID = id; |
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
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="My WPF UI" Height="300" Width="300"> | |
<StackPanel Margin="5"> | |
<StackPanel> | |
<Label Content="Prename:" /> | |
<TextBox x:Name="preName" MinWidth="50"/> | |
</StackPanel> | |
<StackPanel> | |
<Label Content="Surename:" /> |
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
(-> means references) | |
WebProject -> ServiceStack 3.9.32 -> ServiceStack.Text 3.9.32 | |
Using 'Manage nuget packages for solution' I add ServiceStack to my test project and wind up with | |
TestProject -> ServiceStack 3.9.32 -> ServiceStack.Text 3.9.38 | |
#WTF!!! |
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
[Route("/helloservice/alive")] | |
[Service(1,RestrictAccessTo = EndpointAttributes.Xml | EndpointAttributes.HttpGet)] | |
public class Alive {} |
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 NonMinifyingJavascript : IBundleTransform | |
{ | |
public void Process(BundleContext context, BundleResponse bundle) | |
{ | |
if(bundle == null) | |
{ | |
throw new ArgumentNullException("bundle"); | |
} | |
context.HttpContext.Response.Cache.SetLastModifiedFromFileDependencies(); |
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 ImportedFilePathResolver : IPathResolver | |
{ | |
private string currentFileDirectory; | |
private string currentFilePath; | |
/// <summary> | |
/// Initializes a new instance of the <see cref="ImportedFilePathResolver"/> class. | |
/// </summary> | |
/// <param name="currentFilePath">The path to the currently processed file.</param> | |
public ImportedFilePathResolver(string currentFilePath) |
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 A { | |
public A() { | |
_b = new B(); | |
} | |
} |
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
<Reference Include="System.Core" /> | |
<Reference Include="System.Data.DataSetExtensions" /> | |
<Reference Include="System.Web.Extensions" /> | |
- <Reference Include="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |
- <SpecificVersion>False</SpecificVersion> | |
- <HintPath>..\..\lib\AspMvc-3.0\System.Web.Helpers.dll</HintPath> | |
- <Private>False</Private> | |
+ <Reference Include="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">^M | |
+ <Private>True</Private>^M | |
+ <HintPath>..\..\packages\AspNetWebPages.Core.2.0.20126.16343\lib\net40\System.Web.Helpers.dll</HintPath>^M |
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
Primary reference "EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". (TaskId:16961) | |
Resolved file path is "C:\Builds\10\OSS\Current\Sources\Current\Billing\Web\packages\EntityFramework.4.1.10715.0\lib\EntityFramework.dll". (TaskId:16961) | |
Reference found at search path location "{HintPathFromItem}". (TaskId:16961) | |
For SearchPath "C:\Builds\10\OSS\Current\Sources\Current\_Dependencies". (TaskId:16961) | |
Considered "C:\Builds\10\OSS\Current\Sources\Current\_Dependencies\EntityFramework.dll", but it didn't exist. (TaskId:16961) | |
Considered "C:\Builds\10\OSS\Current\Sources\Current\_Dependencies\EntityFramework.exe", but it didn't exist. (TaskId:16961) | |
For SearchPath "C:\Builds\10\OSS\Current\Sources\Current\_GAC Dependencies". (TaskId:16961) | |
Considered "C:\Builds\10\OSS\Current\Sources\Current\_GAC Dependencies\EntityFramework.dll", but it didn't exist. (TaskId:16961) | |
Considered "C:\Builds\10\OSS\Current\Sour |