예제 #1
0
 /// <summary>
 /// Add a callback that is invoked whenever the stream is updated.
 /// </summary>
 public void AddCallback(Action <TReturnType> callback)
 {
     stream.AddCallback((object x) => callback((TReturnType)x));
 }
예제 #2
0
파일: Stream.cs 프로젝트: key50/My_kRPC
 /// <summary>
 /// Add a callback that is invoked whenever the stream is updated.
 /// </summary>
 public int AddCallback(Action <TReturnType> callback)
 {
     return(stream.AddCallback((object x) => callback((TReturnType)x)));
 }