/// <summary> /// Gets uploader from session or creates a new one /// </summary> private BackgroundUploader GetUploader() { BackgroundUploader bgUploader = Session["bguploader"] as BackgroundUploader; if (bgUploader == null) { bgUploader = new BackgroundUploader(m_cloudinary); Session.Add("bguploader", bgUploader); bgUploader.Upload(); return(bgUploader); } return(bgUploader); }