Exemplo n.º 1
0
        ///<summary>
        /// Synchronous invoker for  'NFX.Instrumentation.Telemetry.ITelemetryReceiver.Send'.
        /// This is a one-way call per contract specification, meaning - the server sends no acknowledgement of this call receipt and
        /// there is no result that server could return back to the caller.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        ///</summary>
        public void @Send(@System.@String @siteName, @NFX.@Instrumentation.@Datum @data)
        {
            var call = Async_Send(@siteName, @data);

            if (call.CallStatus != CallStatus.Dispatched)
            {
                throw new ClientCallException(call.CallStatus, "Call failed: 'TelemetryReceiverClient.Send'");
            }
        }
Exemplo n.º 2
0
        ///<summary>
        /// Asynchronous invoker for  'NFX.Instrumentation.Telemetry.ITelemetryReceiver.Send'.
        /// This is a one-way call per contract specification, meaning - the server sends no acknowledgement of this call receipt and
        /// there is no result that server could return back to the caller.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg.
        ///</summary>
        public CallSlot Async_Send(@System.@String @siteName, @NFX.@Instrumentation.@Datum @data)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Send_0, true, RemoteInstance, new object[] { @siteName, @data });

            return(DispatchCall(request));
        }