public ApnsProvider(string apnUrl, string appBundleId)
 {
     _appBundleId = appBundleId;
     _apnBaseUrl  = apnUrl;
     _handler     = new CustomHttpHandler();
     _client      = new HttpClient(_handler);
 }
Exemplo n.º 2
0
        public async Task <ActionResult> PostPicture(string gamekey, HttpPostedFileBase image)
        {
            HttpContext       context           = HttpContext.ApplicationInstance.Context;
            CustomHttpHandler customHttpHandler = new CustomHttpHandler();
            await customHttpHandler.ProcessRequestAsync(context);

            return(RedirectToAction("GetGame", "Game", new { gamekey }));
        }