Skip to content

Instantly share code, notes, and snippets.

@maldworth
maldworth / Knockout.clickSubmit.js
Created November 23, 2014 17:50
Click Submit Custom Binding for Form Validation
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.
using Decorators;
using MessageObservers;
using System;
using System.Collections.Generic;
public class ConsumersTestHarness
{
readonly BusTestHarness _testHarness;
readonly IList<Action<IReceiveEndpointConfigurator>> _consumerConfigurations;
@maldworth
maldworth / Program.cs
Created January 27, 2021 00:35
Azure Service Bus Deploy Topology Console App
internal class Program
{
private static async Task Main(string[] args)
{
// Setup configuration
IConfiguration configuration = new ConfigurationBuilder()
.AddEnvironmentVariables()
.AddCommandLine(args)
.Build();