public override void ForwardNotification(Growl.Connector.Notification notification, Growl.Connector.CallbackContext callbackContext, Growl.Connector.RequestInfo requestInfo, bool isIdle, ForwardedNotificationCallbackHandler callbackFunction) { Forwarder growl = new Forwarder(this.Password, this.IPAddress, this.Port, requestInfo); growl.KeyHashAlgorithm = this.HashAlgorithm; growl.EncryptionAlgorithm = this.EncryptionAlgorithm; #if DEBUG //growl.EncryptionAlgorithm = Cryptography.SymmetricAlgorithmType.PlainText; #endif growl.ForwardedNotificationCallback += callbackFunction; growl.Notify(notification, callbackContext); }
public override void ForwardRegistration(Growl.Connector.Application application, List<Growl.Connector.NotificationType> notificationTypes, Growl.Connector.RequestInfo requestInfo, bool isIdle) { Forwarder growl = new Forwarder(this.Password, this.IPAddress, this.Port, requestInfo); growl.KeyHashAlgorithm = this.HashAlgorithm; growl.EncryptionAlgorithm = this.EncryptionAlgorithm; #if DEBUG //growl.EncryptionAlgorithm = Cryptography.SymmetricAlgorithmType.PlainText; #endif growl.Register(application, notificationTypes.ToArray()); }
internal abstract void ForwardNotification(Growl.Connector.Notification notification, Growl.Daemon.CallbackInfo callbackInfo, Growl.Daemon.RequestInfo requestInfo, bool isIdle, Forwarder.ForwardedNotificationCallbackHandler callbackFunction);