コード例 #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());

            //
            // Deprecated: Register at old handler address for a version so that
            // people who still run the old iPhone app don't break instantly.
            //
            RegisterObjectContractHandlers("/", this, this.GetType());
            api = new SystemAPI();
            RegisterObjectContractHandlers("/", api, api.GetType());
            api = new ProfileAPI();
            RegisterObjectContractHandlers("/", api, api.GetType());
            api = new SmallGroupAPI();
            RegisterObjectContractHandlers("/", api, api.GetType());
            api = new PersonAPI();
            RegisterObjectContractHandlers("/", 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());
        }
コード例 #3
0
ファイル: RestApi.cs プロジェクト: secc/arena-secc-webservice
        /// <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());
        }