2015-04-07 09:35:12 +01:00
|
|
|
// ==++==
|
|
|
|
//
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//
|
|
|
|
// ==--==
|
|
|
|
/*============================================================
|
|
|
|
**
|
|
|
|
** Class: IObserver<T>
|
|
|
|
**
|
2016-02-22 11:00:01 -05:00
|
|
|
** <OWNER>kimhamil</OWNER>
|
2015-04-07 09:35:12 +01:00
|
|
|
**
|
|
|
|
**
|
|
|
|
** Purpose: Interface for exposing an Observer in the
|
|
|
|
** Observer pattern
|
|
|
|
**
|
|
|
|
**
|
|
|
|
===========================================================*/
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
public interface IObserver<in T>
|
|
|
|
{
|
|
|
|
void OnNext(T value);
|
|
|
|
void OnError(Exception error);
|
|
|
|
void OnCompleted();
|
|
|
|
}
|
2016-02-22 11:00:01 -05:00
|
|
|
}
|