コード例 #1
0
        ///<summary>
        /// Synchronous invoker for  'Azos.Sky.Contracts.IZoneHostReplicator.PostHostInfo'.
        /// 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 @PostHostInfo(@Azos.@Sky.@Contracts.@HostInfo @host, @System.@Nullable <@Azos.@Sky.@Contracts.@DynamicHostID> @hid)
        {
            var call = Async_PostHostInfo(@host, @hid);

            if (call.CallStatus != CallStatus.Dispatched)
            {
                throw new ClientCallException(call.CallStatus, "Call failed: 'ZoneHostReplicator.PostHostInfo'");
            }
        }
コード例 #2
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Contracts.IZoneHostRegistry.RegisterSubordinateHost'.
        /// 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_RegisterSubordinateHost(@Agni.@Contracts.@HostInfo @host, @System.@Nullable <@Agni.@Contracts.@DynamicHostID> @hid)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_RegisterSubordinateHost_2, false, RemoteInstance, new object[] { @host, @hid });

            return(DispatchCall(request));
        }
コード例 #3
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IZoneHostRegistry.RegisterSubordinateHost'.
        /// 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 @RegisterSubordinateHost(@Agni.@Contracts.@HostInfo @host, @System.@Nullable <@Agni.@Contracts.@DynamicHostID> @hid)
        {
            var call = Async_RegisterSubordinateHost(@host, @hid);

            call.CheckVoidValue();
        }
コード例 #4
0
        ///<summary>
        /// Asynchronous invoker for  'NFX.NUnit.Glue.ITestContractB.GetName'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning no exception or RemoteExceptionData instance.
        /// CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
        ///</summary>
        public CallSlot Async_GetName(@System.@Int32 @id, @System.@Nullable <@System.@DateTime> @startDate)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_GetName_4, false, RemoteInstance, new object[] { @id, @startDate });

            return(DispatchCall(request));
        }
コード例 #5
0
        ///<summary>
        /// Synchronous invoker for  'NFX.NUnit.Glue.ITestContractB.GetName'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@String' or RemoteExceptionData 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 @GetName(@System.@Int32 @id, @System.@Nullable <@System.@DateTime> @startDate)
        {
            var call = Async_GetName(@id, @startDate);

            return(call.GetValue <@System.@String>());
        }
コード例 #6
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Social.Graph.IGraphFriendSystem.AddFriend'.
        /// 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_AddFriend(@NFX.@DataAccess.@Distributed.@GDID @gNode, @NFX.@DataAccess.@Distributed.@GDID @gFriendNode, @System.@Nullable <@System.@Boolean> @approve)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_AddFriend_4, false, RemoteInstance, new object[] { @gNode, @gFriendNode, @approve });

            return(DispatchCall(request));
        }
コード例 #7
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Social.Graph.IGraphFriendSystem.AddFriend'.
        /// 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 @AddFriend(@NFX.@DataAccess.@Distributed.@GDID @gNode, @NFX.@DataAccess.@Distributed.@GDID @gFriendNode, @System.@Nullable <@System.@Boolean> @approve)
        {
            var call = Async_AddFriend(@gNode, @gFriendNode, @approve);

            return(call.GetValue <@Agni.@Social.@Graph.@GraphChangeStatus>());
        }
コード例 #8
0
        ///<summary>
        /// Asynchronous invoker for  'Azos.Sky.Contracts.IZoneHostReplicator.PostHostInfo'.
        /// 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_PostHostInfo(@Azos.@Sky.@Contracts.@HostInfo @host, @System.@Nullable <@Azos.@Sky.@Contracts.@DynamicHostID> @hid)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_PostHostInfo_2, true, RemoteInstance, new object[] { @host, @hid });

            return(DispatchCall(request));
        }
コード例 #9
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Contracts.IGDIDAuthority.AllocateBlock'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@Contracts.@GDIDBlock' 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.@GDIDBlock @AllocateBlock(@System.@String @scopeName, @System.@String @sequenceName, @System.@Int32 @blockSize, @System.@Nullable <@System.@UInt64> @vicinity)
        {
            var call = Async_AllocateBlock(@scopeName, @sequenceName, @blockSize, @vicinity);

            return(call.GetValue <@Agni.@Contracts.@GDIDBlock>());
        }
コード例 #10
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Contracts.IGDIDAuthority.AllocateBlock'.
        /// 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_AllocateBlock(@System.@String @scopeName, @System.@String @sequenceName, @System.@Int32 @blockSize, @System.@Nullable <@System.@UInt64> @vicinity)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_AllocateBlock_0, false, RemoteInstance, new object[] { @scopeName, @sequenceName, @blockSize, @vicinity });

            return(DispatchCall(request));
        }
コード例 #11
0
        ///<summary>
        /// Asynchronous invoker for  'Azos.Sky.Contracts.ILogReceiver.List'.
        /// 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_List(@System.@String @archiveDimensionsFilter, @System.@DateTime @startDate, @System.@DateTime @endDate, @System.@Nullable <@Azos.@Log.@MessageType> @type, @System.@String @host, @System.@String @channel, @System.@String @topic, @System.@Nullable <@System.@Guid> @relatedTo, @System.@Int32 @skipCount)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_List_2, false, RemoteInstance, new object[] { @archiveDimensionsFilter, @startDate, @endDate, @type, @host, @channel, @topic, @relatedTo, @skipCount });

            return(DispatchCall(request));
        }
コード例 #12
0
        ///<summary>
        /// Synchronous invoker for  'Azos.Sky.Contracts.ILogReceiver.List'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@System.@Collections.@Generic.@IEnumerable[@Azos.@Log.@Message]' 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 <@Azos.@Log.@Message> @List(@System.@String @archiveDimensionsFilter, @System.@DateTime @startDate, @System.@DateTime @endDate, @System.@Nullable <@Azos.@Log.@MessageType> @type, @System.@String @host, @System.@String @channel, @System.@String @topic, @System.@Nullable <@System.@Guid> @relatedTo, @System.@Int32 @skipCount)
        {
            var call = Async_List(@archiveDimensionsFilter, @startDate, @endDate, @type, @host, @channel, @topic, @relatedTo, @skipCount);

            return(call.GetValue <@System.@Collections.@Generic.@IEnumerable <@Azos.@Log.@Message> >());
        }
コード例 #13
0
        ///<summary>
        /// Asynchronous invoker for  'Agni.Social.Graph.IGraphCommentSystem.Create'.
        /// 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_Create(@NFX.@DataAccess.@Distributed.@GDID @gAuthorNode, @NFX.@DataAccess.@Distributed.@GDID @gTargetNode, @System.@String @dimension, @System.@String @content, @System.@Byte[]  @data, @Agni.@Social.@Graph.@PublicationState @publicationState, @Agni.@Social.@Graph.@RatingValue @value, @System.@Nullable <@System.@DateTime> @timeStamp)
        {
            var request = new RequestAnyMsg(s_ts_CONTRACT, @s_ms_Create_0, false, RemoteInstance, new object[] { @gAuthorNode, @gTargetNode, @dimension, @content, @data, @publicationState, @value, @timeStamp });

            return(DispatchCall(request));
        }
コード例 #14
0
        ///<summary>
        /// Synchronous invoker for  'Agni.Social.Graph.IGraphCommentSystem.Create'.
        /// This is a two-way call per contract specification, meaning - the server sends the result back either
        ///  returning '@Agni.@Social.@Graph.@Comment' 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.@Comment @Create(@NFX.@DataAccess.@Distributed.@GDID @gAuthorNode, @NFX.@DataAccess.@Distributed.@GDID @gTargetNode, @System.@String @dimension, @System.@String @content, @System.@Byte[]  @data, @Agni.@Social.@Graph.@PublicationState @publicationState, @Agni.@Social.@Graph.@RatingValue @value, @System.@Nullable <@System.@DateTime> @timeStamp)
        {
            var call = Async_Create(@gAuthorNode, @gTargetNode, @dimension, @content, @data, @publicationState, @value, @timeStamp);

            return(call.GetValue <@Agni.@Social.@Graph.@Comment>());
        }