private void AuthEndpointCheck() { if (options.Authorizer == null) { var pusherException = new PusherException("You must set a ChannelAuthorizer property to use private or presence channels", ErrorCodes.ChannelAuthorizerNotSet); RaiseError(pusherException); throw pusherException; } }
private void RaiseError(PusherException error) { // if a handler is registerd, use it, otherwise throw var handler = Error; if (handler != null) { handler(this, error); } else { throw error; } }
private void RaiseError(PusherException error) { errorEvent?.Invoke(this, error); }