Provides data for Heartbeat.Sending event. Cancelable. HeartbeatData and Url may be modified.
Inheritance: System.EventArgs, ICancelableEvent
Beispiel #1
0
 static bool RaiseHeartbeatSendingEvent( HeartbeatData data, Uri uri, bool getServerUri ) {
     var h = Sending;
     if( h == null ) return true;
     var e = new HeartbeatSendingEventArgs( data, uri, getServerUri );
     h( null, e );
     return !e.Cancel;
 }
Beispiel #2
0
 static bool RaiseHeartbeatSendingEvent([NotNull] HeartbeatData data, [NotNull] Uri uri) {
     var h = Sending;
     if (h == null) return true;
     var e = new HeartbeatSendingEventArgs(data, uri);
     h(null, e);
     return !e.Cancel;
 }
Beispiel #3
0
 static bool RaiseHeartbeatSendingEvent( HeartbeatData heartbeatData ) {
     var h = Sending;
     if( h == null ) return false;
     var e = new HeartbeatSendingEventArgs( heartbeatData );
     h( null, e );
     return e.Cancel;
 }
Beispiel #4
0
 static bool RaiseHeartbeatSendingEvent( HeartbeatData data, Uri uri, bool getServerUri ) {
     var e = new HeartbeatSendingEventArgs( data, uri, getServerUri );
     SendingEvent.Raise( e );
     return !e.Cancel;
 }