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
namespace StuffOnAShelf | |
{ | |
using System; | |
using System.IO; | |
using System.Timers; | |
using log4net; | |
using log4net.Config; | |
using Topshelf.Configuration.Dsl; | |
using Topshelf.Shelving; |
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
#GetQueueOwnership | |
param | |
( | |
[string] $queueNameRegex, | |
[string] $userName | |
) | |
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Messaging") | |
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("localhost") | |
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 interface IKeyedObject<T> | |
{ | |
T Key { get; } | |
} |
NewerOlder