private void RaiseEndEvent() { OnPrintEndEventHandler handler = _printEndEvent; // Event will be null if there are no subscribers if (handler != null) { handler(_args, _stream); } }
internal P4PrintCallback(P4Connection p4connection, OnPrintStreamEventHandler OnPrintEvent, OnPrintEndEventHandler OnPrintEnd) { _p4 = p4connection; _printEvent = OnPrintEvent; _printEndEvent = OnPrintEnd; }