Abc.Zebus.Directory.PeerDirectoryClient.CreateSelfDescriptor(System.Collections.Generic.IEnumerable)

Here are the examples of the csharp api class Abc.Zebus.Directory.PeerDirectoryClient.CreateSelfDescriptor(System.Collections.Generic.IEnumerable) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: Zebus
Source File: PeerDirectoryClient.cs
public void Register(IBus bus, Peer self, IEnumerable<Subscription> subscriptions)
        {
            _self = self;

            _globalSubscriptionsIndex.Clear();
            _peers.Clear();

            var selfDescriptor = CreateSelfDescriptor(subscriptions);
            AddOrUpdatePeerEntry(selfDescriptor);
         
            _messagesReceivedDuringRegister = new BlockingCollection<IEvent>();

            try
            {
                TryRegisterOnDirectory(bus, selfDescriptor);
            }
            finally
            {
                _messagesReceivedDuringRegister.CompleteAdding();
            }

            ProcessMessagesReceivedDuringRegister();
        }