protected void OnStreamError(StreamError anError) { if (StreamError != null) { StreamErrorArgs args = new StreamErrorArgs(anError); StreamError(this, args); } }