int IVsInfoBarUIElement.Advise(IVsInfoBarUIEvents eventSink, out uint cookie) { Assert.IsNotNull(eventSink); cookie = (uint)Interlocked.Increment(ref this.cookies); this.sinks[cookie] = eventSink; return VSConstants.S_OK; }
int IVsInfoBarUIElement.Advise(IVsInfoBarUIEvents eventSink, out uint cookie) { eventSink.Should().NotBeNull(); cookie = (uint)Interlocked.Increment(ref this.cookies); this.sinks[cookie] = eventSink; return(VSConstants.S_OK); }
int IVsInfoBarUIElement.Advise(IVsInfoBarUIEvents eventSink, out uint cookie) { Assert.IsNotNull(eventSink); cookie = (uint)Interlocked.Increment(ref this.cookies); this.sinks[cookie] = eventSink; return(VSConstants.S_OK); }