コード例 #1
0
            /// <summary>
            /// Sends a request to the executor server.
            /// </summary>
            /// <typeparam name="ReturnType">The expected return type of the request.</typeparam>
            /// <param name="function">The requested operation.</param>
            /// <param name="args">The arguments for the operation.</param>
            /// <returns>The return result from the object as if it were executed locally.</returns>
            private ReturnType SendRequest <ReturnType>(RemoteExecutorFunction function, params object[] args)
            {
                RemoteExecutorClient client = (RemoteExecutorClient)Owner;

                return(client.SendRequest <ReturnType>(function, args));
            }
コード例 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="executor">The <see cref="RemoteExecutor"/> object owning
 /// this list.</param>
 public RemoteExecutorClientTasksCollection(RemoteExecutorClient executor)
     : base(executor)
 {
 }