Exemple #1
0
 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;
     }
 }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
 private void RaiseError(PusherException error)
 {
     errorEvent?.Invoke(this, error);
 }