예제 #1
0
        /// <summary>
        /// Executes the custom endpoint blocking.
        /// </summary>
        /// <returns>The custom endpoint blocking.</returns>
        /// <param name="endpoint">Endpoint.</param>
        /// <param name="input">Input.</param>
        internal CustomEndpointRequest <I, O> BuildCustomEnpointRequest(string endpoint, I input)
        {
            var urlParameters = new Dictionary <string, string>();

            urlParameters.Add("appKey", ((KinveyClientRequestInitializer)client.RequestInitializer).AppKey);
            urlParameters.Add("endpoint", endpoint);

            CustomEndpointRequest <I, O> custom = new CustomEndpointRequest <I, O>(client, endpoint, input, urlParameters);

            client.InitializeRequest(custom);

            custom.customRequestHeaders = GetCustomRequestProperties();

            return(custom);
        }