示例#1
0
        /// <summary>
        /// Creates an procedure that can be called by a remote client
        /// </summary>
        /// <remarks>
        /// Note that this can only be called by a server.
        /// </remarks>
        /// <param name="name">The name for this Rpc</param>
        /// <param name="def">The definition for this Rpc</param>
        /// <param name="callback">The callback to use the the procedure is called from a remote</param>
        public static void CreateRpc(string name, IList <byte> def, RpcCallback callback)
        {
#if CORE
            CoreMethods.CreateRpc(name, def, callback);
#else
            Storage.Instance.CreateRpc(name, def, callback);
#endif
        }