// Detach first sink from events.
Console.WriteLine("\n***** Removing first sink *****");
c1.Unadvise(sink);
// Speed up again (only myOtherSink will be called).
Console.WriteLine("\n***** Speeding up again *****");
for(int i = 0; i < 10; i++)
c1.Accelerate(20);
Do'stlaringiz bilan baham: