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
namespace Cake.DotNetVersion | |
{ | |
using System; | |
using System.Collections.Generic; | |
using Cake.Core; | |
using Cake.Core.Annotations; | |
using Cake.Core.IO; | |
/// <summary> | |
/// Contains functionality required to updating project file versions. |
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.Threading.Tasks; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace ConsoleApp1 | |
{ | |
public 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 abstract class StartupBase | |
{ | |
public virtual void ConfigureService(IServiceCollection services) | |
{ | |
// Standard registrations | |
ConfigureEntityFramework(services); | |
} | |
public abstract void ConfigureEntityFramework(IServiceCollection services); |
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 ConnectionStringProvider | |
{ | |
private readonly IApplicationEnvironment _appEnv; | |
private readonly IConfiguration _config; | |
public ConnectionStringProvider(IApplicationEnvironment appEnv, IConfiguration config) | |
{ | |
_appEnv = appEnv; | |
_config = config; | |
} |
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
namespace CompileModuleExample | |
{ | |
public class Greeter | |
{ | |
public string GetMessage() | |
{ | |
} | |
} | |
} |
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
!function(root, _, undefined) { | |
var Disposable = root.Disposable = function() { | |
this.disposed = false; | |
}; | |
Disposable.prototype = { | |
_dispose: function() { | |
if (!this.disposed) { | |
this.dispose(); | |
this.disposed = true; |
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
<rewrite> | |
<outboundRules> | |
<rule name="CassetteOutboundUrl" preCondition="HtmlContent" stopProcessing="false"> | |
<match filterByTags="Link, Script" pattern="^/cassette.axd/(.*?)/(.*)" /> | |
<action type="Rewrite" value="/cassette.axd/?type={R:1}&data={R:2}" /> | |
</rule> | |
<preConditions> | |
<remove name="HtmlContent" /> | |
<preCondition name="HtmlContent"> | |
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> |
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; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
/// <summary> | |
/// Represents a list whose items can be dependant on each other, and enumerating the list will sort the items | |
/// as per their dependency requirements. | |
/// </summary> |
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 BarConfigurationElement : NamedConfigurationElementBase | |
{ | |
private const string BarValueAttribute = "barValue"; | |
[ConfigurationProperty(BarValueAttribute, IsRequired = true)] | |
public string BarValue | |
{ | |
get { return (string)this[BarValueAttribute]; } | |
} | |
} |
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
namespace AsyncUpload.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
ViewBag.Message = "Welcome to ASP.NET MVC!"; | |
return View(); | |
} |