Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization;
using System.Messaging;
namespace IServiceOriented.ServiceBus
using System;
using System.Configuration;
using System.ServiceModel.Channels;
using System.ServiceModel.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Reflection;
using System.Reflection.Emit;
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
namespace IServiceOriented.ServiceBus
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Reflection;
using System.Runtime.Serialization;
namespace IServiceOriented.ServiceBus
public interface ISubscriptionDB
{
void CreateListener(ListenerEndpoint endpoint);
void CreateSubscription(SubscriptionEndpoint subscription);
void DeleteListener(Guid endpointId);
void DeleteSubscription(Guid id);
System.Collections.Generic.IEnumerable<ListenerEndpoint> LoadListenerEndpoints();
System.Collections.Generic.IEnumerable<SubscriptionEndpoint> LoadSubscriptionEndpoints();
}
public abstract class SubscriptionPersistenceService : RuntimeService
{
protected override void OnStart()
{
foreach (Endpoint e in LoadEndpoints())
{
ListenerEndpoint le = e as ListenerEndpoint;
SubscriptionEndpoint se = e as SubscriptionEndpoint;
public class PerformanceMonitorRuntimeService : RuntimeService
{
public PerformanceMonitorRuntimeService() : this (null, null)
{
}
public PerformanceMonitorRuntimeService(string instanceName, string categoryName)
{
if (instanceName == null)
{
instanceName = "Default Instance";
public class WcfManagementService : RuntimeService
{
protected override void OnStart()
{
base.OnStart();
_host = new ServiceHost(new ServiceBusManagementService(Runtime));
_host.Open();
}
public class SubscriptionExtension : IExtension<ServiceHostBase>
{
public SubscriptionExtension(SubscriptionEndpoint subscription)
{
Subscription = subscription;
}
#region IExtension<ServiceHostBase> Members
public void Attach(ServiceHostBase owner)
@jezell
jezell / gist:4498389
Last active December 10, 2015 21:58
auto resize
/**
* @license wysihtml5 v0.3.0
* https://github.com/xing/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
*
* Copyright (C) 2012 XING AG
* Licensed under the MIT license (MIT)
*
*/