Creates an IpcEventChannel that persists state in Registry.LocalMachine at hklmKeyPath + channelName
Syntax
Parameters
- hkcuKeyPath
- The registry current-user path to all channels ex: @"Software\MyProduct\IpcChannels"
- channelName
- The name of the channel to subscribe or send events to
Example
Library/Library.Test/TestIpcChannel.cs
C# | Copy Code |
---|
using (IpcEventChannel ch1 = new IpcEventChannel(@"CSharpTest.Net\IpcChannelTest", _channel))
using (IpcEventChannel ch2 = new IpcEventChannel(@"CSharpTest.Net\IpcChannelTest", _channel))
{
Assert.AreNotEqual(ch1.InstanceId, ch2.InstanceId);
} |
VB.NET | Copy Code |
---|
Using ch1 As New IpcEventChannel("CSharpTest.Net\IpcChannelTest", _channel)
Using ch2 As New IpcEventChannel("CSharpTest.Net\IpcChannelTest", _channel)
Assert.AreNotEqual(ch1.InstanceId, ch2.InstanceId)
End Using
End Using |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also