Пример #1
0
        ///<summary>
        /// Synchronous invoker for  'BusinessLogic.IJokeContract.Notify'.
        /// 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 @Notify(@System.@String @text)
        {
            var call = Async_Notify(@text);

            if (call.CallStatus != CallStatus.Dispatched)
            {
                throw new ClientCallException(call.CallStatus, "Call failed: 'JokeContractClient.Notify'");
            }
        }
Пример #2
0
        ///<summary>
        /// Asynchronous invoker for  'BusinessLogic.IJokeContract.UnsecEchoMar'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_UnsecEchoMar(@System.@String @text)
        {
            var request = new @BusinessLogic.@RequestMsg_IJokeContract_UnsecEchoMar(s_ts_CONTRACT, @s_ms_UnsecEchoMar_2, false, RemoteInstance)
            {
                MethodArg_0_text = @text,
            };

            return(DispatchCall(request));
        }
Пример #3
0
        ///<summary>
        /// Synchronous invoker for  'Azos.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, @Azos.@Instrumentation.@Datum @data)
        {
            var call = Async_Send(@siteName, @data);

            if (call.CallStatus != CallStatus.Dispatched)
            {
                throw new ClientCallException(call.CallStatus, "Call failed: 'TelemetryReceiverClient.Send'");
            }
        }
Пример #4
0
        ///<summary>
        /// Asynchronous invoker for  'BusinessLogic.IJokeContract.SimpleWorkMar'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_SimpleWorkMar(@System.@String @s, @System.@Int32 @i1, @System.@Int32 @i2, @System.@Boolean @b, @System.@Double @d)
        {
            var request = new @BusinessLogic.@RequestMsg_IJokeContract_SimpleWorkMar(s_ts_CONTRACT, @s_ms_SimpleWorkMar_4, false, RemoteInstance)
            {
                MethodArg_0_s  = @s,
                MethodArg_1_i1 = @i1,
                MethodArg_2_i2 = @i2,
                MethodArg_3_b  = @b,
                MethodArg_4_d  = @d,
            };

            return(DispatchCall(request));
        }
Пример #5
0
        ///<summary>
        /// Asynchronous invoker for  'BusinessLogic.IJokeContract.SimpleWorkAny'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_SimpleWorkAny(@System.@String @s, @System.@Int32 @i1, @System.@Int32 @i2, @System.@Boolean @b, @System.@Double @d)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_SimpleWorkAny_3, false, RemoteInstance, new object[] { @s, @i1, @i2, @b, @d });

            return(DispatchCall(request));
        }
Пример #6
0
        ///<summary>
        /// Synchronous invoker for  'BusinessLogic.IJokeContract.UnsecEchoMar'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@String' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@String @UnsecEchoMar(@System.@String @text)
        {
            var call = Async_UnsecEchoMar(@text);

            return(call.GetValue <@System.@String>());
        }
Пример #7
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Social.Graph.IGraphFriendSystem.AssignFriendLists'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@Social.@Graph.@GraphChangeStatus' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @Agni.@Social.@Graph.@GraphChangeStatus @AssignFriendLists(@NFX.@DataAccess.@Distributed.@GDID @gNode, @NFX.@DataAccess.@Distributed.@GDID @gFriendNode, @System.@String @lists)
        {
            var call = Async_AssignFriendLists(@gNode, @gFriendNode, @lists);

            return(call.GetValue <@Agni.@Social.@Graph.@GraphChangeStatus>());
        }
Пример #8
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Social.Graph.IGraphFriendSystem.DeleteFriendList'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@Social.@Graph.@GraphChangeStatus' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @Agni.@Social.@Graph.@GraphChangeStatus @DeleteFriendList(@NFX.@DataAccess.@Distributed.@GDID @gNode, @System.@String @list)
        {
            var call = Async_DeleteFriendList(@gNode, @list);

            return(call.GetValue <@Agni.@Social.@Graph.@GraphChangeStatus>());
        }
Пример #9
0
        ///<summary>
        /// Asynchronous invoker for  'BusinessLogic.IJokeContract.UnsecureEcho'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_UnsecureEcho(@System.@String @text)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_UnsecureEcho_1, false, RemoteInstance, new object[] { @text });

            return(DispatchCall(request));
        }
Пример #10
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IZoneLogReceiver.SendLog'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@Int32' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@Int32 @SendLog(@System.@String @host, @System.@String @appName, @NFX.@Log.@Message[]  @data)
        {
            var call = Async_SendLog(@host, @appName, @data);

            return(call.GetValue <@System.@Int32>());
        }
Пример #11
0
        ///<summary>
        /// Asynchronous invoker for  'XYZ.BusinessDomain.Contracts.IWheather.GetWheatherForecast'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_GetWheatherForecast(@System.@String @area, @System.@DateTime @start, @System.@Int32 @days)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetWheatherForecast_1, false, RemoteInstance, new object[] { @area, @start, @days });

            return(DispatchCall(request));
        }
Пример #12
0
        ///<summary>
        /// Synchronous invoker for  'BusinessLogic.IJokeContract.DBWork'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@Object' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@Object @DBWork(@System.@String @id, @System.@Int32 @recCount, @System.@Int32 @waitMs)
        {
            var call = Async_DBWork(@id, @recCount, @waitMs);

            return(call.GetValue <@System.@Object>());
        }
Пример #13
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Social.Graph.IGraphFriendSystem.AssignFriendLists'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_AssignFriendLists(@NFX.@DataAccess.@Distributed.@GDID @gNode, @NFX.@DataAccess.@Distributed.@GDID @gFriendNode, @System.@String @lists)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_AssignFriendLists_5, false, RemoteInstance, new object[] { @gNode, @gFriendNode, @lists });

            return(DispatchCall(request));
        }
        ///<summary>
        /// Asynchronous invoker for  'Azos.Sky.Contracts.IGDIDPersistenceRemoteLocation.Read'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_Read(@System.@Byte @authority, @System.@String @sequenceName, @System.@String @scopeName)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Read_0, false, RemoteInstance, new object[] { @authority, @sequenceName, @scopeName });

            return(DispatchCall(request));
        }
Пример #15
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IZoneHostRegistry.GetSubordinateHost'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@Contracts.@HostInfo' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @Agni.@Contracts.@HostInfo @GetSubordinateHost(@System.@String @hostName)
        {
            var call = Async_GetSubordinateHost(@hostName);

            return(call.GetValue <@Agni.@Contracts.@HostInfo>());
        }
        ///<summary>
        /// Synchronous invoker for  'Azos.Sky.Contracts.IGDIDPersistenceRemoteLocation.Read'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@Nullable[@Azos.@Data.@GDID]' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@Nullable <@Azos.@Data.@GDID> @Read(@System.@Byte @authority, @System.@String @sequenceName, @System.@String @scopeName)
        {
            var call = Async_Read(@authority, @sequenceName, @scopeName);

            return(call.GetValue <@System.@Nullable <@Azos.@Data.@GDID> >());
        }
        ///<summary>
        /// Asynchronous invoker for  'Azos.Sky.Contracts.IGDIDPersistenceRemoteLocation.Write'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_Write(@System.@String @sequenceName, @System.@String @scopeName, @Azos.@Data.@GDID @value)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Write_1, false, RemoteInstance, new object[] { @sequenceName, @scopeName, @value });

            return(DispatchCall(request));
        }
        ///<summary>
        /// Synchronous invoker for  'Azos.Sky.Contracts.IGDIDPersistenceRemoteLocation.Write'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public void @Write(@System.@String @sequenceName, @System.@String @scopeName, @Azos.@Data.@GDID @value)
        {
            var call = Async_Write(@sequenceName, @scopeName, @value);

            call.CheckVoidValue();
        }
Пример #19
0
        ///<summary>
        /// Synchronous invoker for  'BusinessLogic.IJokeContract.SimpleWorkMar'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@String' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@String @SimpleWorkMar(@System.@String @s, @System.@Int32 @i1, @System.@Int32 @i2, @System.@Boolean @b, @System.@Double @d)
        {
            var call = Async_SimpleWorkMar(@s, @i1, @i2, @b, @d);

            return(call.GetValue <@System.@String>());
        }
Пример #20
0
        ///<summary>
        /// Asynchronous invoker for  'XYZ.BusinessDomain.Contracts.IWheather.GetTodaysWheather'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_GetTodaysWheather(@System.@String @area)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetTodaysWheather_0, false, RemoteInstance, new object[] { @area });

            return(DispatchCall(request));
        }
Пример #21
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Contracts.IZoneHostRegistry.GetSubordinateHost'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_GetSubordinateHost(@System.@String @hostName)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetSubordinateHost_1, false, RemoteInstance, new object[] { @hostName });

            return(DispatchCall(request));
        }
Пример #22
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Contracts.IZoneLogReceiver.SendLog'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_SendLog(@System.@String @host, @System.@String @appName, @NFX.@Log.@Message[]  @data)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_SendLog_0, false, RemoteInstance, new object[] { @host, @appName, @data });

            return(DispatchCall(request));
        }
Пример #23
0
        ///<summary>
        /// Asynchronous invoker for  'BusinessLogic.IJokeContract.DBWork'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_DBWork(@System.@String @id, @System.@Int32 @recCount, @System.@Int32 @waitMs)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_DBWork_5, false, RemoteInstance, new object[] { @id, @recCount, @waitMs });

            return(DispatchCall(request));
        }
Пример #24
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IZoneHostRegistry.Spawn'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@Contracts.@DynamicHostID' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @Agni.@Contracts.@DynamicHostID @Spawn(@System.@String @hostPath, @System.@String @id)
        {
            var call = Async_Spawn(@hostPath, @id);

            return(call.GetValue <@Agni.@Contracts.@DynamicHostID>());
        }
Пример #25
0
        ///<summary>
        /// Asynchronous invoker for  'BusinessLogic.IJokeContract.Notify'.
        /// 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_Notify(@System.@String @text)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Notify_6, true, RemoteInstance, new object[] { @text });

            return(DispatchCall(request));
        }
Пример #26
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Contracts.IZoneHostRegistry.Spawn'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or WrappedExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_Spawn(@System.@String @hostPath, @System.@String @id)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Spawn_3, false, RemoteInstance, new object[] { @hostPath, @id });

            return(DispatchCall(request));
        }
Пример #27
0
        ///<summary>
        /// Synchronous invoker for  'XYZ.BusinessDomain.Contracts.IWheather.GetWheatherForecast'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@XYZ.@BusinessDomain.@Contracts.@WeatherDay[]' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @XYZ.@BusinessDomain.@Contracts.@WeatherDay[] @GetWheatherForecast(@System.@String @area, @System.@DateTime @start, @System.@Int32 @days)
        {
            var call = Async_GetWheatherForecast(@area, @start, @days);

            return(call.GetValue <@XYZ.@BusinessDomain.@Contracts.@WeatherDay[]>());
        }
Пример #28
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IZoneHostRegistry.GetSubordinateHosts'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@Collections.@Generic.@IEnumerable<@Agni.@Contracts.@HostInfo>' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@Collections.@Generic.@IEnumerable <@Agni.@Contracts.@HostInfo> @GetSubordinateHosts(@System.@String @hostNameSearchPattern)
        {
            var call = Async_GetSubordinateHosts(@hostNameSearchPattern);

            return(call.GetValue <@System.@Collections.@Generic.@IEnumerable <@Agni.@Contracts.@HostInfo> >());
        }
Пример #29
0
        ///<summary>
        /// Synchronous invoker for  'XYZ.BusinessDomain.Contracts.IWheather.GetTodaysWheather'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@XYZ.@BusinessDomain.@Contracts.@WeatherDay' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @XYZ.@BusinessDomain.@Contracts.@WeatherDay @GetTodaysWheather(@System.@String @area)
        {
            var call = Async_GetTodaysWheather(@area);

            return(call.GetValue <@XYZ.@BusinessDomain.@Contracts.@WeatherDay>());
        }
Пример #30
0
        ///<summary>
        /// Synchronous invoker for  'BusinessLogic.IJokeContract.Echo'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@String' or WrappedExceptionData instance.
        /// ClientCallException is thrown if the call could not be placed in the outgoing queue.
        /// RemoteException is thrown if the server generated exception during method execution.
        ///</summary>
        public @System.@String @Echo(@System.@String @text)
        {
            var call = Async_Echo(@text);

            return(call.GetValue <@System.@String>());
        }