/// <summary>
        /// Get the outbound throttle rate. This the rate at which the transport
        /// sends outbound messages to the feed handlers. It is also the rate at
        /// which new subscriptions are created. Its purpose is to avoid flooding
        /// the network with requests.
        /// </summary>
        public double getOutboundThrottle(MamaThrottleInstance instance)
        {
            double ret  = 0;
            int    code = NativeMethods.mamaTransport_getOutboundThrottle(nativeHandle, instance, ref ret);

            CheckResultCode(code);

            return(ret);
        }
Example #2
0
            public static extern int mamaTransport_setOutboundThrottle(IntPtr transport,
				MamaThrottleInstance instance,
				double outboundThrottle);
Example #3
0
            public static extern int mamaTransport_getOutboundThrottle(IntPtr transport,
				MamaThrottleInstance instance,
				ref double result);
Example #4
0
 /// <summary>
 /// Set the throttle rate.
 /// </summary>
 public void setOutboundThrottle(MamaThrottleInstance instance, double outboundThrottle)
 {
     int code = NativeMethods.mamaTransport_setOutboundThrottle(nativeHandle, instance, outboundThrottle);
     CheckResultCode(code);
 }
Example #5
0
        /// <summary>
        /// Get the outbound throttle rate. This the rate at which the transport
        /// sends outbound messages to the feed handlers. It is also the rate at
        /// which new subscriptions are created. Its purpose is to avoid flooding
        /// the network with requests.
        /// </summary>
        public double getOutboundThrottle(MamaThrottleInstance instance)
        {
            double ret = 0;
            int code = NativeMethods.mamaTransport_getOutboundThrottle(nativeHandle, instance, ref ret);
            CheckResultCode(code);

            return ret;
        }
 public static extern int mamaTransport_setOutboundThrottle(IntPtr transport,
                                                            MamaThrottleInstance instance,
                                                            double outboundThrottle);
 public static extern int mamaTransport_getOutboundThrottle(IntPtr transport,
                                                            MamaThrottleInstance instance,
                                                            ref double result);
        /// <summary>
        /// Set the throttle rate.
        /// </summary>
        public void setOutboundThrottle(MamaThrottleInstance instance, double outboundThrottle)
        {
            int code = NativeMethods.mamaTransport_setOutboundThrottle(nativeHandle, instance, outboundThrottle);

            CheckResultCode(code);
        }