Beispiel #1
0
 private void When(IconPathChanged @event)
 {
     this.IconPath = @event.IconPath;
 }
 /// <summary>
 /// Notifies the client that the display icon for the session has changed.
 /// </summary>
 /// <param name="newIconPath">The path for the new display icon for the session.</param>
 /// <param name="eventContext">The event context value.</param>
 /// <returns>HRESULT</returns>
 int IAudioSessionEvents.OnIconPathChanged(string newIconPath, ref Guid eventContext)
 {
     IconPathChanged?.Invoke(this, new AudioSessionIconPathChangedEventArgs(newIconPath, eventContext));
     return(0);
 }