public static void Dispose(this IPlayback playback) { var disposable = playback as IDisposable; if (disposable != null) { disposable.Dispose(); return; } playback.Stop(); playback.ClearOutgoingConnections(); }
public static void Dispose(this IPlayback playback) { var disposable = playback as IDisposable; if (disposable != null) { disposable.Dispose(); return; } playback.Stop(); playback.ClearOutgoingConnections(); }