Skip to content

Instantly share code, notes, and snippets.

@teo-mateo
Last active December 31, 2015 18:49
Show Gist options
  • Select an option

  • Save teo-mateo/8029911 to your computer and use it in GitHub Desktop.

Select an option

Save teo-mateo/8029911 to your computer and use it in GitHub Desktop.
// Provides a mechanism for receiving push-based notifications.
public interface IObserver<in T>
{
// Summary:
// Notifies the observer that the provider has finished sending push-based notifications.
void OnCompleted();
// Notifies the observer that the provider has experienced an error condition.
void OnError(Exception error);
// Provides the observer with new data.
void OnNext(T value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment