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
ko.bindingHandlers.clickSubmit = { | |
init: function(element, valueAccessor, allBindings, viewModel, bindingContext) { | |
var formElement = null; | |
// Allow the binding handler to function with or without jQuery | |
if(typeof jQuery == 'undefined') { | |
// We need to have a parameter provided to the handler if jQuery is not present | |
var value = ko.utils.unwrapObservable(valueAccessor()); | |
if(!value) | |
// Need to have a value which contains the name of our parent form. |
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
Gist because SO Rep system doesn't like me... |
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
using Decorators; | |
using MessageObservers; | |
using System; | |
using System.Collections.Generic; | |
public class ConsumersTestHarness | |
{ | |
readonly BusTestHarness _testHarness; | |
readonly IList<Action<IReceiveEndpointConfigurator>> _consumerConfigurations; |
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
internal class Program | |
{ | |
private static async Task Main(string[] args) | |
{ | |
// Setup configuration | |
IConfiguration configuration = new ConfigurationBuilder() | |
.AddEnvironmentVariables() | |
.AddCommandLine(args) | |
.Build(); |