public LocationService() { this.ContactAddedHandler = ContactAddedHandlerInternal; this.ContactRemovedHandler = ContactRemovedHandlerInternal; this.scheme = System.Text.Encoding.UTF8.GetBytes(@"sip"); this.timer = new MultiTimer <ByteArrayPart>(RemoveExpiredBindings, 16384, false, ByteArrayPartEqualityComparer.GetStaticInstance()); this.bindingsByAor = new Dictionary <ByteArrayPart, Bindings>(); this.bindingsByConnectionId = new ThreadSafe.Dictionary <int, ByteArrayPart>(16384); this.sync = timer; }
public DialogManager() { dictionary = new ThreadSafe.Dictionary <ByteArrayPart, Dialog>( new Dictionary <ByteArrayPart, Dialog>(ByteArrayPartEqualityComparer.GetStaticInstance())); }