This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| For more information on how to configure your ASP.NET application, please visit | |
| http://go.microsoft.com/fwlink/?LinkId=169433 | |
| --> | |
| <configuration> | |
| <configSections> | |
| <sectionGroup name="elmah"> | |
| <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> | |
| <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dynamic result = fb.Batch( | |
| new FacebookBatchParameter(HttpMethod.Post, "/me/photos", new Dictionary<string, object> { { "message", "picture 1 msg" }, { "pic1", new FacebookMediaObject { ContentType = "image/jpeg", FileName = "Tulips.jpg" }.SetValue(File.ReadAllBytes(@"C:\Users\Public\Pictures\Sample Pictures\Tulips.jpg")) } }), | |
| new FacebookBatchParameter(HttpMethod.Post, "/me/photos", new Dictionary<string, object> { { "message", "picture 2 msg" }, { "pic2", new FacebookMediaObject { ContentType = "image/jpeg", FileName = "Penguins.jpg" }.SetValue(File.ReadAllBytes(@"C:\Users\Public\Pictures\Sample Pictures\Penguins.jpg")) } })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO off | |
| PUSHD "%~dp0" | |
| SET WebsitePath="%~dp0src\WebApplication" | |
| SET WebsitePort=5000 | |
| SET ProgRoot=%ProgramFiles% | |
| IF NOT "%ProgramFiles(x86)%" == "" SET ProgRoot=%ProgramFiles(x86)% | |
| SET IISExpress=%ProgRoot%\IIS Express\iisexpress.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Diagnostics; | |
| public class StopWatchHelper : IDisposable | |
| { | |
| private readonly bool _displayTime; | |
| private readonly Stopwatch _stopwatch; | |
| public StopWatchHelper() | |
| : this(true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Configuration; | |
| using System.Web.Mvc; | |
| using Microsoft.Practices.Unity; | |
| [assembly: WebActivator.PreApplicationStartMethod(typeof(WebApplication.App_Start.AppStart_Unity), "Start")] | |
| namespace WebApplication.App_Start | |
| { | |
| public class AppStart_Unity | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Web; | |
| namespace NetflixDemo | |
| { | |
| public class AppHarborHttpContextWrapper : HttpContextWrapper | |
| { | |
| private readonly HttpContext httpContext; | |
| public AppHarborHttpContextWrapper(HttpContext httpContext) : base(httpContext) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fluent HTTP CORE | |
| //#define FLUENTHTTP_CORE_TPL | |
| //#define FLUENTHTTP_CORE_STREAM | |
| //#define FLUENTHTTP_URLENCODING | |
| //#define FLUENTHTTP_HTMLENCODING | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AccountController : Controller | |
| { | |
| public ActionResult Login(string returnUrl, string scope) | |
| { | |
| if (!Url.IsLocalUrl(returnUrl)) | |
| { | |
| returnUrl = "/"; | |
| } | |
| ViewData["returnUrl"] = returnUrl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AccountController : Controller | |
| { | |
| public ActionResult Login(string returnUrl, string scope) | |
| { | |
| if (!Url.IsLocalUrl(returnUrl)) | |
| { | |
| returnUrl = "/"; | |
| } | |
| ViewData["returnUrl"] = returnUrl; |