示例#1
0
        /// <summary>
        /// Register all internal handlers that are a part of this
        /// assembly.
        /// </summary>
        void RegisterInternalHandlers()
        {
            RegisterObjectContractHandlers("/rc", this, this.GetType());

            Object api;

//            api = new CoreRpc();
//            RegisterObjectContractHandlers("/", api, api.GetType());
            api = new SystemAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new ProfileAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new SmallGroupAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new PersonAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new SECC.PersonAttributeAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.AuthAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.PersonAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.SmallGroupAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.EventAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
        }
示例#2
0
        /// <summary>
        /// Register all internal handlers that are a part of this
        /// assembly.
        /// </summary>
        void RegisterInternalHandlers()
        {
            RegisterObjectContractHandlers("/rc", this, this.GetType());

            Object api;
            //            api = new CoreRpc();
            //            RegisterObjectContractHandlers("/", api, api.GetType());
            api = new SystemAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new ProfileAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new SmallGroupAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new PersonAPI();
            RegisterObjectContractHandlers("/cust/rc", api, api.GetType());
            api = new SECC.PersonAttributeAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.AuthAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.PersonAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.SmallGroupAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
            api = new SECC.EventAPI();
            RegisterObjectContractHandlers("/cust/secc", api, api.GetType());
        }