├── Experiments.WIF ├── RSTSApp │ ├── Global.asax │ ├── About.aspx.cs │ ├── Default.aspx.cs │ ├── Site.Master.cs │ ├── About.aspx │ ├── About.aspx.designer.cs │ ├── Default.aspx.designer.cs │ ├── Secure │ │ ├── Default.aspx.cs │ │ ├── Default.aspx.designer.cs │ │ └── Default.aspx │ ├── Default.aspx │ ├── FederationMetadata │ │ └── 2007-06 │ │ │ └── FederationMetadata.xml │ ├── Global.asax.cs │ └── Web.Debug.config ├── WIFControlsApp │ ├── Global.asax │ ├── Site.Master.cs │ ├── Default.aspx.cs │ ├── Default.aspx.designer.cs │ ├── Default.aspx │ ├── FederationMetadata │ │ └── 2007-06 │ │ │ ├── FederationMetadata.xml │ │ │ ├── FederationMetadata.xml.backup.1 │ │ │ └── FederationMetadata.xml.backup.2 │ ├── Global.asax.cs │ └── Web.Debug.config ├── RSTSApp_STS │ ├── App_Code │ │ └── Common.cs │ ├── Default.aspx │ └── FederationMetadata │ │ └── 2007-06 │ │ └── FederationMetadata.xml ├── RSTSApp_STS_STS │ ├── App_Code │ │ └── Common.cs │ └── Default.aspx └── WIFControlsApp_STS │ ├── App_Code │ └── Common.cs │ └── Default.aspx ├── Experiments.AspNetMvc3NewFeatures ├── packages │ ├── NUnit.2.5.7.10213 │ │ ├── Tools │ │ │ ├── runpnunit.bat │ │ │ ├── agent.conf │ │ │ ├── lib │ │ │ │ ├── fit.dll │ │ │ │ ├── Failure.png │ │ │ │ ├── Ignored.png │ │ │ │ ├── Skipped.png │ │ │ │ ├── Success.png │ │ │ │ ├── log4net.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.uikit.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── Inconclusive.png │ │ │ │ ├── nunit.fixtures.dll │ │ │ │ ├── nunit-gui-runner.dll │ │ │ │ ├── nunit.uiexception.dll │ │ │ │ ├── nunit-console-runner.dll │ │ │ │ └── nunit.core.interfaces.dll │ │ │ ├── pnunit.tests.dll │ │ │ ├── nunit.framework.dll │ │ │ ├── pnunit.framework.dll │ │ │ ├── agent.log.conf │ │ │ ├── launcher.log.conf │ │ │ ├── NUnitTests.nunit │ │ │ └── test.conf │ │ ├── Logo.ico │ │ ├── license.txt │ │ ├── lib │ │ │ ├── nunit.mocks.dll │ │ │ ├── nunit.framework.dll │ │ │ └── pnunit.framework.dll │ │ ├── NUnit.2.5.7.10213.nupkg │ │ └── Content │ │ │ └── NUnitSampleTests.cs.pp │ └── Moq.3.1.416.3 │ │ ├── lib │ │ └── Moq.dll │ │ └── Moq.3.1.416.3.nupkg ├── Experiments.AspNetMvc3NewFeatures.Razor │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ └── _Layout.cshtml │ │ └── Home │ │ │ ├── About.cshtml │ │ │ ├── FeedbackSent.cshtml │ │ │ ├── Index.cshtml │ │ │ └── Feedback.cshtml │ ├── packages.config │ ├── Global.asax │ ├── Models │ │ ├── ContentPage.cs │ │ ├── ContentPagesModel.cs │ │ └── ChartModel.cs │ ├── Global.asax.cs │ └── Web.Debug.config ├── External Libraries │ ├── nunit.mocks.dll │ └── nunit.framework.dll ├── Experiments.AspNetMvc3NewFeatures.Aspx │ ├── Global.asax │ ├── images │ │ ├── watermark.png │ │ └── bunny-peanuts.jpg │ ├── Views │ │ ├── Home │ │ │ ├── About.aspx │ │ │ └── Index.aspx │ │ ├── Shared │ │ │ ├── Error.aspx │ │ │ └── ImagesMenu.ascx │ │ └── Image │ │ │ ├── Index.aspx │ │ │ ├── Resized.aspx │ │ │ ├── RotateLeft.aspx │ │ │ ├── RotateRight.aspx │ │ │ ├── VerticalFlip.aspx │ │ │ ├── HorizontalFlip.aspx │ │ │ ├── TextWatermark.aspx │ │ │ ├── ImageWatermark.aspx │ │ │ └── Cropped.aspx │ ├── Models │ │ └── ChartModel.cs │ ├── ChartResult.cs │ ├── WebImageResult.cs │ ├── Controllers │ │ ├── HomeController.cs │ │ └── ImageWorkshopController.cs │ ├── Global.asax.cs │ └── Web.Debug.config ├── Experiments.AspNetMvc3NewFeatures.GlobalActionFilters │ ├── Global.asax │ ├── Views │ │ ├── Home │ │ │ ├── About.aspx │ │ │ └── Index.aspx │ │ └── Shared │ │ │ ├── Error.aspx │ │ │ └── Site.Master │ ├── Controllers │ │ └── HomeController.cs │ ├── MyActionFilter.cs │ ├── Global.asax.cs │ ├── StopwatchAttribute.cs │ └── Web.Debug.config └── Experiments.AspNetMvc3NewFeatures.Aspx.Tests │ ├── packages.config │ └── HomeControllerTests.cs ├── Experiments.WebAppThreading ├── ClientWebMvc │ ├── Global.asax │ ├── Views │ │ ├── Home │ │ │ ├── About.aspx │ │ │ └── Index.aspx │ │ └── Shared │ │ │ ├── Error.aspx │ │ │ └── Site.Master │ ├── Service References │ │ └── ServiceReference1 │ │ │ └── DelayedHello.disco │ ├── Global.asax.cs │ └── Web.Debug.config ├── RemoteWebService │ ├── DelayedHello.asmx │ └── DelayedHello.asmx.cs └── ClientWeb │ ├── Properties │ ├── Settings.settings │ └── Settings.Designer.cs │ ├── Service References │ └── ServiceReference1 │ │ └── DelayedHello.disco │ ├── Default.aspx │ └── Default.aspx.designer.cs ├── Experiments.ASPNET.MVP ├── Experiments.ASPNET.MVP │ ├── Global.asax │ ├── About.aspx.cs │ ├── Site.Master.cs │ ├── About.aspx │ ├── About.aspx.designer.cs │ ├── Default.aspx.cs │ ├── Default.aspx │ ├── Default.aspx.designer.cs │ ├── Global.asax.cs │ └── Web.Debug.config ├── ExternalLibraries │ ├── WebFormsMvp.dll │ └── nunit.framework.dll └── Experiments.APSNET.MVP.Presentation │ ├── IDefaultView.cs │ └── DefaultPresenter.cs ├── Experiments.CropImage ├── Experiments.CropImage │ ├── Global.asax │ ├── Images │ │ ├── cropped_doggie.jpg │ │ └── akropolis-doggie.jpg │ ├── Site.Master.cs │ ├── Styles │ │ └── jquery.Jcrop.css │ ├── Global.asax.cs │ └── Web.Debug.config └── Experiments.CropImage.sln ├── Experiments.ResizeImage ├── Experiment.ResizeImage │ ├── Global.asax │ ├── images │ │ └── original.jpg │ ├── Global.asax.cs │ ├── Site.Master.cs │ ├── Default.aspx │ └── Web.Debug.config └── Experiments.ResizeImage.sln ├── Experiments.jQuery ├── Experiments.jQuery.Dialogs │ ├── Global.asax │ ├── Styles │ │ └── images │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_888888_256x240.png │ │ │ ├── ui-icons_cd0a0a_256x240.png │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png │ ├── About.aspx.cs │ ├── Default.aspx.cs │ ├── Site.Master.cs │ ├── About.aspx │ ├── About.aspx.designer.cs │ ├── Default.aspx.designer.cs │ ├── Default.aspx │ ├── SelectTree.aspx.designer.cs │ ├── SelectTree.aspx.cs │ ├── Global.asax.cs │ └── Web.Debug.config └── Experiments.jQuery.sln ├── UML.SaveAsImage ├── UML.SaveAsImage │ ├── Command_large.png │ └── Command_small.png └── UML.SaveAsImage.sln ├── Experiments.Vcard └── MvcVcardControllerAction │ ├── Global.asax │ ├── Views │ ├── Home │ │ ├── About.aspx │ │ └── Index.aspx │ └── Shared │ │ ├── Error.aspx │ │ └── Site.Master │ ├── Controllers │ └── HomeController.cs │ ├── Global.asax.cs │ ├── VcardResult.cs │ └── Web.Debug.config ├── Experiments.MemBus.Forms ├── External Libraries │ ├── MemBus.dll │ └── Microsoft.Practices.ServiceLocation.dll └── Experiments.MemBus.Forms │ ├── Properties │ ├── Settings.settings │ └── Settings.Designer.cs │ ├── GeoLocationItem.cs │ └── Program.cs ├── Experiments.OData ├── Experiments.OData.TwitPicClient │ ├── Global.asax │ ├── Global.asax.cs │ ├── About.aspx.cs │ ├── Site.Master.cs │ ├── Web.config │ ├── About.aspx │ ├── About.aspx.designer.cs │ ├── Service References │ │ └── TwitpicData │ │ │ └── Reference.datasvcmap │ └── Web.Debug.config └── Experiments.OData.sln ├── Experiments.AppDataLocks ├── Experiments.AppDataLocks │ ├── Global.asax │ ├── BusinessBase.cs │ ├── Models │ │ └── Product.cs │ ├── LockItem.cs │ ├── Views │ │ ├── Home │ │ │ ├── About.aspx │ │ │ └── Index.aspx │ │ └── Shared │ │ │ ├── Error.aspx │ │ │ └── Site.Master │ ├── Global.asax.cs │ ├── Controllers │ │ └── HomeController.cs │ └── Web.Debug.config └── Experiments.AppDataLocks.sln ├── Experiments.Wif ├── _UpgradeReport_Files │ ├── UpgradeReport_Plus.gif │ └── UpgradeReport_Minus.gif ├── Microsoft.Samples.DPE.Identity.Controls │ ├── icon.bmp │ └── Content │ │ ├── images │ │ ├── icon.png │ │ ├── ExpandIcon.bmp │ │ ├── CollapseIcon.bmp │ │ └── cornerroundedtransp.gif │ │ └── scripts │ │ └── SecurityTokenVisualizer.js ├── Backup │ ├── Microsoft.Samples.DPE.Identity.Controls │ │ ├── icon.bmp │ │ └── Content │ │ │ ├── images │ │ │ ├── icon.png │ │ │ ├── CollapseIcon.bmp │ │ │ ├── ExpandIcon.bmp │ │ │ └── cornerroundedtransp.gif │ │ │ └── scripts │ │ │ └── SecurityTokenVisualizer.js │ └── SecurityTokenVisualizerControl.sln ├── WIFControlsApp │ └── Secure │ │ ├── Default.aspx.cs │ │ ├── Token.aspx.cs │ │ ├── Default.aspx │ │ ├── Default.aspx.designer.cs │ │ ├── Token.aspx │ │ └── Token.aspx.designer.cs ├── CustomDictionary.xml └── SecurityTokenVisualizerControl.sln ├── Experiments.ChartControlInMvc ├── Experiments.ChartControlInMvc │ ├── Global.asax │ ├── IReportControl.cs │ ├── Views │ │ ├── Shared │ │ │ ├── Error.aspx │ │ │ └── Site.Master │ │ └── Home │ │ │ └── Index.aspx │ ├── ChartLoader.cs │ ├── Reports │ │ ├── PriceEnquiriesPerMonth.ascx.cs │ │ └── PriceEnquiriesPerMonth.ascx.designer.cs │ ├── Global.asax.cs │ ├── Controllers │ │ └── HomeController.cs │ └── Web.Debug.config └── Experiments.ChartControlInMvc.sln ├── Experiments.MobileWeb ├── Experiments.MobileWeb.JqueryMobile │ ├── Global.asax │ ├── img │ │ ├── amstel-small.png │ │ └── heineken-small.png │ ├── Views │ │ ├── Shared │ │ │ ├── Error.aspx │ │ │ └── Site.Master │ │ └── Home │ │ │ ├── About.aspx │ │ │ ├── Index.aspx │ │ │ ├── Amstel.aspx │ │ │ └── Heineken.aspx │ ├── Controllers │ │ └── HomeController.cs │ ├── Global.asax.cs │ └── Web.Debug.config └── Experiments.MobileWeb.sln ├── Experiments.MeasuringTools ├── Experiments.MeasuringTools │ ├── IScenario.cs │ ├── IDatabaseCommand.cs │ ├── ICommand.cs │ ├── UnitOfWork.cs │ └── TimerBasedUnitOfWork.cs └── Experiments.MeasuringTools.sln ├── Experiments.Object2ObjectMapper ├── Experiments.Object2ObjectMapper.ConsoleTests │ └── Program.cs └── Experiments.Object2ObjectMapper │ ├── PropertyMap.cs │ └── ReflectionBasedMapper.cs ├── Experiments.LinqPLinqPerformance ├── Experiments.LinqPLinqPerformance │ ├── PotentialPrime.cs │ └── Program.cs └── Experiments.LinqPLinqPerformance.sln ├── .gitignore ├── Experiments.SongRequestWorkflow ├── Experiment.SongRequestWorkflow │ ├── PlaylistClient.cs │ └── Web.config └── Experiment.SongRequestWorkflow.sln ├── Experiments.FibonacciPerformance ├── Experiments.FibonacciPerformance │ ├── Fibonacci.cs │ └── Program.cs └── Experiments.FibonacciPerformance.sln └── Experiments.MemoryMappedFiles ├── Experiments.MemoryMappedFiles.Client └── Program.cs └── Experiments.MemoryMappedFiles.Server └── Program.cs /Experiments.WIF/RSTSApp/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="RSTSApp.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/runpnunit.bat: -------------------------------------------------------------------------------- 1 | start pnunit-agent agent.conf 2 | pnunit-launcher test.conf -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WIFControlsApp.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ClientWebMvc.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.ASPNET.MVP.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.CropImage.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiment.ResizeImage/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.ResizeImage.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/RemoteWebService/DelayedHello.asmx: -------------------------------------------------------------------------------- 1 | <%@ WebService Language="C#" CodeBehind="DelayedHello.asmx.cs" Class="RemoteWebService.DelayedHello" %> -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.jQuery.Dialogs.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /UML.SaveAsImage/UML.SaveAsImage/Command_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/UML.SaveAsImage/UML.SaveAsImage/Command_large.png -------------------------------------------------------------------------------- /UML.SaveAsImage/UML.SaveAsImage/Command_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/UML.SaveAsImage/UML.SaveAsImage/Command_small.png -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcVcardControllerAction.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/agent.conf: -------------------------------------------------------------------------------- 1 | 2 | 8080 3 | . 4 | -------------------------------------------------------------------------------- /Experiments.MemBus.Forms/External Libraries/MemBus.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.MemBus.Forms/External Libraries/MemBus.dll -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.OData.TwitPicClient.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/ExternalLibraries/WebFormsMvp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.ASPNET.MVP/ExternalLibraries/WebFormsMvp.dll -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Application.Data.Locks.Example.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.Wif/_UpgradeReport_Files/UpgradeReport_Plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/_UpgradeReport_Files/UpgradeReport_Plus.gif -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/ExternalLibraries/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.ASPNET.MVP/ExternalLibraries/nunit.framework.dll -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.ChartControlInMvc.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.Wif/_UpgradeReport_Files/UpgradeReport_Minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/_UpgradeReport_Files/UpgradeReport_Minus.gif -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.MobileWeb.JqueryMobile.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/icon.bmp -------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiment.ResizeImage/images/original.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.ResizeImage/Experiment.ResizeImage/images/original.jpg -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/External Libraries/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/External Libraries/nunit.mocks.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/Moq.3.1.416.3/lib/Moq.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/Moq.3.1.416.3/lib/Moq.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Logo.ico -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Images/cropped_doggie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.CropImage/Experiments.CropImage/Images/cropped_doggie.jpg -------------------------------------------------------------------------------- /Experiments.MeasuringTools/Experiments.MeasuringTools/IScenario.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.MeasuringTools 2 | { 3 | public interface IScenario 4 | { 5 | UnitOfWork Load(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiment.ResizeImage/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | 3 | namespace Experiments.ResizeImage 4 | { 5 | public class Global : HttpApplication 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Images/akropolis-doggie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.CropImage/Experiments.CropImage/Images/akropolis-doggie.jpg -------------------------------------------------------------------------------- /Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/icon.bmp -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.AspNetMvc3NewFeatures.Aspx.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.AspNetMvc3NewFeatures.Razor.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/External Libraries/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/External Libraries/nunit.framework.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/license.txt -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/Moq.3.1.416.3/Moq.3.1.416.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/Moq.3.1.416.3/Moq.3.1.416.3.nupkg -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/BusinessBase.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace Application.Data.Locks.Example 3 | { 4 | public abstract class BusinessBase 5 | { 6 | public int Id { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/fit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/fit.dll -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/img/amstel-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/img/amstel-small.png -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/img/heineken-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/img/heineken-small.png -------------------------------------------------------------------------------- /Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/icon.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/lib/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/lib/nunit.mocks.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/NUnit.2.5.7.10213.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/NUnit.2.5.7.10213.nupkg -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Failure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Failure.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Ignored.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Ignored.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Skipped.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Success.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/log4net.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/pnunit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/pnunit.tests.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/lib/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/lib/nunit.framework.dll -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.UI; 3 | 4 | namespace Experiments.CropImage 5 | { 6 | public partial class SiteMaster : MasterPage 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Experiments.MemBus.Forms/External Libraries/Microsoft.Practices.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.MemBus.Forms/External Libraries/Microsoft.Practices.ServiceLocation.dll -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | 3 | namespace Experiments.OData.TwitPicClient 4 | { 5 | public class Global : HttpApplication 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.core.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.uikit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.uikit.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.util.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/nunit.framework.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/lib/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/lib/pnunit.framework.dll -------------------------------------------------------------------------------- /Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/icon.png -------------------------------------------------------------------------------- /Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/ExpandIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/ExpandIcon.bmp -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Experiments.AspNetMvc3NewFeatures.GlobalActionFilters.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Inconclusive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/Inconclusive.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.fixtures.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.fixtures.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/pnunit.framework.dll -------------------------------------------------------------------------------- /Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/CollapseIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/CollapseIcon.bmp -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit-gui-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit-gui-runner.dll -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/images/watermark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/images/watermark.png -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.uiexception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.uiexception.dll -------------------------------------------------------------------------------- /Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/CollapseIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/CollapseIcon.bmp -------------------------------------------------------------------------------- /Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/ExpandIcon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/ExpandIcon.bmp -------------------------------------------------------------------------------- /Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/cornerroundedtransp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/images/cornerroundedtransp.gif -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx.Tests/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit-console-runner.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/lib/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/images/bunny-peanuts.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/images/bunny-peanuts.jpg -------------------------------------------------------------------------------- /Experiments.Object2ObjectMapper/Experiments.Object2ObjectMapper.ConsoleTests/Program.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.Object2ObjectMapper.ConsoleTests 2 | { 3 | class Program 4 | { 5 | static void Main() 6 | { 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/cornerroundedtransp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/images/cornerroundedtransp.gif -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpeipman/Visual-Studio-Experiments/HEAD/Experiments.jQuery/Experiments.jQuery.Dialogs/Styles/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWeb/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Experiments.LinqPLinqPerformance/Experiments.LinqPLinqPerformance/PotentialPrime.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.LinqPLinqPerformance 2 | { 3 | class PotentialPrime 4 | { 5 | public int Value { get; set; } 6 | public bool IsPrime { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.APSNET.MVP.Presentation/IDefaultView.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace Experiments.APSNET.MVP.Presentation 3 | { 4 | public interface IDefaultView 5 | { 6 | string Title { get; set; } 7 | string Heading { set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Models/Product.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace Application.Data.Locks.Example.Models 3 | { 4 | public class Product : BusinessBase 5 | { 6 | public string Name { get; set; } 7 | public decimal Price { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model System.Web.Mvc.HandleErrorInfo 2 | 3 | @{ 4 | View.Title = "Error"; 5 | } 6 | 7 |

8 | Sorry, an error occurred while processing your request. 9 |

10 | -------------------------------------------------------------------------------- /Experiments.MeasuringTools/Experiments.MeasuringTools/IDatabaseCommand.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.MeasuringTools 2 | { 3 | public interface IDatabaseCommand : ICommand 4 | { 5 | long RowsReturned { get; } 6 | long RowsInUnpagedResult { get; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Experiments.MeasuringTools/Experiments.MeasuringTools/ICommand.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.MeasuringTools 2 | { 3 | public interface ICommand 4 | { 5 | string Title { get; set; } 6 | void Execute(); 7 | bool RequiresWarmupCall { get; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @model Experiments.AspNetMvc3NewFeatures.Razor.Models.ContentPage 2 | @{ 3 | View.Title = Model.Title; 4 | } 5 | 6 | 7 |

@Model.Title

8 |

9 | @Model.Description 10 |

11 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Models/ContentPage.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.AspNetMvc3NewFeatures.Razor.Models 2 | { 3 | public class ContentPage 4 | { 5 | public string Title { get; set; } 6 | public string Description { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /Experiments.LinqPLinqPerformance/Experiments.LinqPLinqPerformance/Program.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.LinqPLinqPerformance 2 | { 3 | class Program 4 | { 5 | static void Main() 6 | { 7 | var demo = new PrimeNumberDemo(); 8 | demo.ShowDemo(); 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiment.ResizeImage/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Experiments.ResizeImage 4 | { 5 | public partial class SiteMaster : System.Web.UI.MasterPage 6 | { 7 | protected void Page_Load(object sender, EventArgs e) 8 | { 9 | 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/About.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.UI; 3 | 4 | namespace Experiments.OData.TwitPicClient 5 | { 6 | public partial class About : Page 7 | { 8 | protected void Page_Load(object sender, EventArgs e) 9 | { 10 | 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Experiments.MemBus.Forms/Experiments.MemBus.Forms/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Experiments.Object2ObjectMapper/Experiments.Object2ObjectMapper/PropertyMap.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | namespace Experiments.Object2ObjectMapper 4 | { 5 | public class PropertyMap 6 | { 7 | public PropertyInfo SourceProperty { get; set; } 8 | public PropertyInfo TargetProperty { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Experiments.Wif/WIFControlsApp/Secure/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace WIFControlsApp.Secure 4 | { 5 | public partial class Default : System.Web.UI.Page 6 | { 7 | protected void Page_Load(object sender, EventArgs e) 8 | { 9 | Response.Redirect(ResolveUrl("~/")); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/Home/FeedbackSent.cshtml: -------------------------------------------------------------------------------- 1 | @model dynamic 2 | 3 | @{ 4 | View.Title = "Feedback sent"; 5 | Layout = "~/Views/Shared/_Layout.cshtml"; 6 | } 7 | 8 |

Feedback sent

9 | 10 |

Thank you for your feedback. We will reply to your message during next 48 hours.

11 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/IReportControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace Experiments.ChartControlInMvc 5 | { 6 | public interface IReportControl : IDisposable 7 | { 8 | void DataBind(); 9 | object DataSource { set; } 10 | void SaveChartImage(Stream stream); 11 | } 12 | } -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/LockItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Application.Data.Locks.Example 4 | { 5 | public class LockItem 6 | { 7 | public Type ObjectType { get; set; } 8 | public int ObjectId { get; set; } 9 | public string SessionId { get; set; } 10 | public DateTime LockedAt { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | View.Title = "Home Page"; 3 | } 4 | 5 |

@View.Message

6 |

7 | @* 8 | Charts area 9 | ----------- 10 | 1. cached for 10 minutes by default 11 | 2. cached for 180 minutes 12 | *@ 13 | 14 | 15 |

16 | -------------------------------------------------------------------------------- /Experiments.MemBus.Forms/Experiments.MemBus.Forms/GeoLocationItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Experiments.MemBus.Forms 4 | { 5 | public class GeoLocationItem 6 | { 7 | public string Title { get; set; } 8 | public DateTime Time { get; set; } 9 | public decimal Latitude { get; set; } 10 | public decimal Longitude { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | #ignore thumbnails created by windows 3 | Thumbs.db 4 | #Ignore files build by Visual Studio 5 | *.obj 6 | *.exe 7 | *.pdb 8 | *.user 9 | *.aps 10 | *.pch 11 | *.vspscc 12 | *_i.c 13 | *_p.c 14 | *.ncb 15 | *.suo 16 | *.tlb 17 | *.tlh 18 | *.bak 19 | *.cache 20 | *.ilk 21 | *.log 22 | [Bb]in 23 | [Dd]ebug*/ 24 | *.lib 25 | *.sbr 26 | obj/ 27 | [Rr]elease*/ 28 | _ReSharper*/ 29 | [Tt]est[Rr]esult* -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/About.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace RSTSApp 9 | { 10 | public partial class About : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace RSTSApp 9 | { 10 | public partial class _Default : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace RSTSApp 9 | { 10 | public partial class SiteMaster : System.Web.UI.MasterPage 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.Wif/WIFControlsApp/Secure/Token.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace WIFControlsApp 9 | { 10 | public partial class About : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace WIFControlsApp 9 | { 10 | public partial class SiteMaster : System.Web.UI.MasterPage 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/About.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.ASPNET.MVP 9 | { 10 | public partial class About : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.Wif/CustomDictionary.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Visualizer 6 | Visualizers 7 | Saml 8 | 9 | 10 | 11 | 12 | DPE 13 | 14 | 15 | -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace WIFControlsApp 9 | { 10 | public partial class _Default : System.Web.UI.Page 11 | { 12 | 13 | 14 | protected void Page_Load(object sender, EventArgs e) 15 | { 16 | 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/About.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.jQuery.Dialogs 9 | { 10 | public partial class About : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.jQuery.Dialogs 9 | { 10 | public partial class _Default : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.ASPNET.MVP 9 | { 10 | public partial class SiteMaster : System.Web.UI.MasterPage 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Content/NUnitSampleTests.cs.pp: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace $rootnamespace$ { 4 | [TestFixture] 5 | public class NUnitSampleTests { 6 | [Test] 7 | public void SomePassingTest() { 8 | Assert.AreEqual(5, 5); 9 | } 10 | 11 | [Test] 12 | public void SomeFailingTest() { 13 | Assert.Greater(5, 7); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.jQuery.Dialogs 9 | { 10 | public partial class SiteMaster : System.Web.UI.MasterPage 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.OData.TwitPicClient 9 | { 10 | public partial class SiteMaster : System.Web.UI.MasterPage 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Models/ContentPagesModel.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.AspNetMvc3NewFeatures.Razor.Models 2 | { 3 | public class ContentPagesModel 4 | { 5 | public ContentPage GetAboutPage() 6 | { 7 | var page = new ContentPage(); 8 | page.Title = "About us"; 9 | page.Description = "This page introduces us"; 10 | 11 | return page; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="About.aspx.cs" Inherits="RSTSApp.About" %> 3 | 4 | 5 | 6 | 7 |

8 | About 9 |

10 |

11 | Put content here. 12 |

13 |
14 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%: View.Message %>

9 | Chart 10 |
11 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcVcardControllerAction.Controllers 4 | { 5 | [HandleError] 6 | public class HomeController : Controller 7 | { 8 | public ActionResult Index() 9 | { 10 | ViewData["Message"] = "Welcome to ASP.NET MVC!"; 11 | 12 | return View(); 13 | } 14 | 15 | public ActionResult About() 16 | { 17 | return View(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/About.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace RSTSApp 11 | { 12 | 13 | 14 | public partial class About 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="About.aspx.cs" Inherits="Experiments.ASPNET.MVP.About" %> 3 | 4 | 5 | 6 | 7 |

8 | About 9 |

10 |

11 | Put content here. 12 |

13 |
14 | -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace RSTSApp 11 | { 12 | 13 | 14 | public partial class _Default 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.Wif/WIFControlsApp/Secure/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WIFControlsApp.Secure.Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="About.aspx.cs" Inherits="Experiments.jQuery.Dialogs.About" %> 3 | 4 | 5 | 6 | 7 |

8 | About 9 |

10 |

11 | Put content here. 12 |

13 |
14 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.SongRequestWorkflow/Experiment.SongRequestWorkflow/PlaylistClient.cs: -------------------------------------------------------------------------------- 1 | namespace Experiment.SongRequestWorkflow 2 | { 3 | public class PlaylistClient 4 | { 5 | public static bool SongInQue(string artist, string song) 6 | { 7 | return false; 8 | } 9 | 10 | public static bool SongExists(string artist, string song) 11 | { 12 | return true; 13 | } 14 | 15 | public static void AddToQueue(string artist, string song) 16 | { 17 | 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="About.aspx.cs" Inherits="Experiments.OData.TwitPicClient.About" %> 3 | 4 | 5 | 6 | 7 |

8 | About 9 |

10 |

11 | This is my twitpic client example. 12 |

13 |
14 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/About.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.ASPNET.MVP 11 | { 12 | 13 | 14 | public partial class About 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Index 5 | 6 | 7 | 8 | 9 | <% Html.RenderPartial("ImagesMenu");%> 10 | 11 |

Index

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About 5 | 6 | 7 | 8 | About 9 | 10 | 11 | 12 |

About

13 | 14 |

About this page

15 |
-------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/About.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.jQuery.Dialogs 11 | { 12 | 13 | 14 | public partial class About 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace Experiments.AspNetMvc3NewFeatures.GlobalActionFilters.Controllers 4 | { 5 | public class HomeController : Controller 6 | { 7 | public ActionResult Index() 8 | { 9 | ViewModel.Message = "Welcome to ASP.NET MVC!"; 10 | 11 | return View(); 12 | } 13 | 14 | public ActionResult About() 15 | { 16 | return View(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.jQuery.Dialogs 11 | { 12 | 13 | 14 | public partial class _Default 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/About.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.OData.TwitPicClient 11 | { 12 | 13 | 14 | public partial class About 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%: ViewData["Message"] %>

9 |

10 | To learn more about ASP.NET MVC visit http://asp.net/mvc. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%: ViewData["Message"] %>

9 |

10 | To learn more about ASP.NET MVC visit http://asp.net/mvc. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Secure/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | using Microsoft.IdentityModel.Claims; 8 | 9 | namespace RSTSApp.Secure 10 | { 11 | public partial class Default : System.Web.UI.Page 12 | { 13 | protected void Page_Load(object sender, EventArgs e) 14 | { 15 | var identity = (IClaimsIdentity)User.Identity; 16 | Repeater1.DataSource = identity.Claims; 17 | Repeater1.DataBind(); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Shared/ImagesMenu.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 | 3 | Index | 4 | Cropped | 5 | Horizontal flip | 6 | Vertical flip | 7 | Resized | 8 | Rotate left | 9 | Rotate right | 10 | Text watermark | 11 | Image watermark -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/Resized.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Resized 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Resized image

11 |

Image resized to 200x200 px

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%: View.Message %>

9 |

10 | To learn more about ASP.NET MVC visit http://asp.net/mvc. 11 |

12 |
13 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/RotateLeft.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Rotate left 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Rotate left

11 |

Image rotated to left

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/agent.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Experiments.MemBus.Forms/Experiments.MemBus.Forms/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace Experiments.MemBus.Forms 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new MainForm()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/RemoteWebService/DelayedHello.asmx.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using System.Web.Services; 3 | 4 | namespace RemoteWebService 5 | { 6 | [WebService(Namespace = "http://tempuri.org/")] 7 | [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] 8 | [System.ComponentModel.ToolboxItem(false)] 9 | public class DelayedHello : WebService 10 | { 11 | [WebMethod] 12 | public string HelloWorld(int delay) 13 | { 14 | if(delay > 0) 15 | Thread.Sleep(delay); 16 | return "Hello World, delay: " + delay; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="Default.aspx.cs" Inherits="Experiments.jQuery.Dialogs._Default" %> 3 | 4 | 5 | 6 | 7 |

8 | Welcome to ASP.NET! 9 |

10 |

11 |

14 |

15 |
16 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/RotateRight.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Rotate right 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Rotate right

11 |

Image rotated to right

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/VerticalFlip.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Vertical flip 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Vertical flip

11 |

Vertical flip of image

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/launcher.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/HorizontalFlip.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Cropped 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Horizontal flip

11 |

Horizontal flip of image

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/TextWatermark.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Text watermark 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Text watermark

11 |

Image with text watermark.

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Models/ChartModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.Razor.Models 5 | { 6 | public class ChartModel 7 | { 8 | public IList GetChartData() 9 | { 10 | return new ArrayList 11 | { 12 | new { X = DateTime.Now.AddMonths(-2), Y = 200 }, 13 | new { X = DateTime.Now.AddMonths(-1), Y = 300 }, 14 | new { X = DateTime.Now, Y = 500 } 15 | }; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Models/ChartModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.Aspx.Models 5 | { 6 | public class ChartModel 7 | { 8 | public virtual IList GetChartData() 9 | { 10 | return new ArrayList 11 | { 12 | new { X = DateTime.Now.AddMonths(-2), Y = 200 }, 13 | new { X = DateTime.Now.AddMonths(-1), Y = 300 }, 14 | new { X = DateTime.Now, Y = 500 } 15 | }; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/ImageWatermark.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Image watermark 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Image watermark

11 |

Image with image watermark

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage>" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%: ViewData["Message"] %>

9 |

10 | <% foreach(var item in Model) 11 | { 12 | Response.Write(item); 13 | Response.Write("
"); 14 | } 15 | %> 16 |

17 |
18 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Views/Image/Cropped.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Image: Cropped 5 | 6 | 7 | 8 | <% Html.RenderPartial("ImagesMenu");%> 9 | 10 |

Cropped image

11 |

This version of image is cropped by 50px from all directions.

12 | 13 |

14 |
15 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/Home/Feedback.cshtml: -------------------------------------------------------------------------------- 1 | @model dynamic 2 | 3 | @{ 4 | View.Title = "Feedback"; 5 | Layout = "~/Views/Shared/_Layout.cshtml"; 6 | } 7 | 8 |

Feedback

9 | 10 |

@Html.ValidationMessage("_FORM")

11 | 12 | @using(Html.BeginForm()) { 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
Your e-mail:@Html.TextBox("email")
Subject:@Html.TextBox("subject")
Body:@Html.TextArea("body")
27 | 28 | } -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

Enterprise dashboard

9 |

10 | " 12 | alt="Enquiries during last three months" 13 | title="Enquiries during last three months" 14 | /> 15 |

16 |
17 | -------------------------------------------------------------------------------- /Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/Content/scripts/SecurityTokenVisualizer.js: -------------------------------------------------------------------------------- 1 | function toggleVisualizerVisibility(visualizerId, visualizerImageId, expandedImgSrc, collapsedImgSrc) { 2 | visualizer = document.getElementById(visualizerId); 3 | visualizerImage = document.getElementById(visualizerImageId); 4 | 5 | if (visualizer != null) { 6 | if (visualizer.style.display == "none") { 7 | visualizer.style.display = "block"; 8 | visualizerImage.src = expandedImgSrc; 9 | } 10 | else { 11 | visualizer.style.display = "none"; 12 | visualizerImage.src = collapsedImgSrc; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.UI; 3 | using Experiments.APSNET.MVP.Presentation; 4 | 5 | namespace Experiments.ASPNET.MVP 6 | { 7 | public partial class _Default : Page, IDefaultView 8 | { 9 | private DefaultPresenter _presenter; 10 | 11 | protected void Page_Load(object sender, EventArgs e) 12 | { 13 | _presenter = new DefaultPresenter(this); 14 | _presenter.Init(); 15 | } 16 | 17 | public string Heading 18 | { 19 | set 20 | { 21 | headingField.Text = value; 22 | } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Experiments.Wif/Backup/Microsoft.Samples.DPE.Identity.Controls/Content/scripts/SecurityTokenVisualizer.js: -------------------------------------------------------------------------------- 1 | function toggleVisualizerVisibility(visualizerId, visualizerImageId, expandedImgSrc, collapsedImgSrc) { 2 | visualizer = document.getElementById(visualizerId); 3 | visualizerImage = document.getElementById(visualizerImageId); 4 | 5 | if (visualizer != null) { 6 | if (visualizer.style.display == "none") { 7 | visualizer.style.display = "block"; 8 | visualizerImage.src = expandedImgSrc; 9 | } 10 | else { 11 | visualizer.style.display = "none"; 12 | visualizerImage.src = collapsedImgSrc; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/ChartLoader.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.IO; 3 | using System.Web.UI; 4 | 5 | namespace Experiments.ChartControlInMvc 6 | { 7 | public static class ChartLoader 8 | { 9 | public static void SaveChartImage(string controlLocation, IEnumerable data, Stream stream) 10 | { 11 | using (var page = new Page()) 12 | using (var control = (IReportControl)page.LoadControl("~/Reports/" + controlLocation)) 13 | { 14 | control.DataSource = data; 15 | control.DataBind(); 16 | control.SaveChartImage(stream); 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/Service References/TwitpicData/Reference.datasvcmap: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/MyActionFilter.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace Experiments.AspNetMvc3NewFeatures.GlobalActionFilters 4 | { 5 | public class MyActionFilterAttribute : ActionFilterAttribute 6 | { 7 | public override void OnResultExecuting(ResultExecutingContext filterContext) 8 | { 9 | base.OnResultExecuting(filterContext); 10 | 11 | var response = filterContext.RequestContext.HttpContext.Response; 12 | 13 | response.Write(""); // Works for Cassini and IIS 14 | //response.Headers.Add("MyActionFilter", "Buuu!"); // Works for IIS only 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace Experiments.MobileWeb.JqueryMobile.Controllers 4 | { 5 | public class HomeController : Controller 6 | { 7 | public ActionResult Index() 8 | { 9 | ViewModel.Message = "Welcome to ASP.NET MVC!"; 10 | 11 | return View(); 12 | } 13 | 14 | public ActionResult About() 15 | { 16 | return View(); 17 | } 18 | 19 | public ActionResult Heineken() 20 | { 21 | return View(); 22 | } 23 | 24 | public ActionResult Amstel() 25 | { 26 | return View(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Experiments.MeasuringTools/Experiments.MeasuringTools/UnitOfWork.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Experiments.MeasuringTools 4 | { 5 | public class UnitOfWork 6 | { 7 | private readonly List _commands = new List(); 8 | 9 | public virtual void Commit() 10 | { 11 | foreach (var command in Commands) 12 | command.Execute(); 13 | } 14 | 15 | public IList Commands 16 | { 17 | get { return _commands; } 18 | } 19 | 20 | public void Merge(UnitOfWork uow) 21 | { 22 | foreach (var command in uow.Commands) 23 | Commands.Add(command); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/NUnitTests.nunit: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Reports/PriceEnquiriesPerMonth.ascx.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Web.UI; 3 | 4 | namespace Experiments.ChartControlInMvc.Reports 5 | { 6 | public partial class PriceEnquiriesPerMonth : UserControl, IReportControl 7 | { 8 | public object DataSource 9 | { 10 | set 11 | { 12 | Chart1.DataSource = value; 13 | } 14 | } 15 | 16 | public override void DataBind() 17 | { 18 | base.DataBind(); 19 | Chart1.DataBind(); 20 | } 21 | 22 | public void SaveChartImage(Stream stream) 23 | { 24 | Chart1.SaveImage(stream); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | Beer Index 4 | 5 | 6 | 7 | Beer Index 8 | 9 | 10 | 11 | 12 |
    13 |
  • <%: Html.ActionLink("Heineken", "Heineken", "Home") %>
  • 14 |
  • <%: Html.ActionLink("Amstel", "Amstel", "Home") %>
  • 15 |
16 | 17 |
-------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWeb/Service References/ServiceReference1/DelayedHello.disco: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Service References/ServiceReference1/DelayedHello.disco: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="Default.aspx.cs" Inherits="RSTSApp._Default" %> 3 | 4 | 5 | 6 | 7 |

8 | Welcome to ASP.NET! 9 |

10 |

11 | To learn more about ASP.NET visit www.asp.net. 12 |

13 |

14 | You can also find documentation on ASP.NET at MSDN. 16 |

17 |
18 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="Default.aspx.cs" Inherits="Experiments.ASPNET.MVP._Default" %> 3 | 4 | 5 | 6 | 7 |

8 |

9 | To learn more about ASP.NET visit www.asp.net. 10 |

11 |

12 | You can also find documentation on ASP.NET at MSDN. 14 |

15 |
-------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.APSNET.MVP.Presentation/DefaultPresenter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Experiments.APSNET.MVP.Presentation 7 | { 8 | public class DefaultPresenter 9 | { 10 | private readonly IDefaultView _view; 11 | 12 | public DefaultPresenter(IDefaultView view) 13 | { 14 | if (view == null) 15 | throw new ArgumentNullException("view"); 16 | 17 | _view = view; 18 | } 19 | 20 | public void Init() 21 | { 22 | _view.Title = "ASP.NET Model-View-Presenter Example Site"; 23 | _view.Heading = "Welcome to MVP world!"; 24 | } 25 | 26 | public void Join(string email) 27 | { 28 | 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp_STS/App_Code/Common.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // 3 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 4 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 5 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 6 | // PARTICULAR PURPOSE. 7 | // 8 | // Copyright (c) Microsoft Corporation. All rights reserved. 9 | // 10 | // 11 | //----------------------------------------------------------------------------- 12 | 13 | /// 14 | /// Summary description for Common 15 | /// 16 | public static class Common 17 | { 18 | public const string IssuerName = "IssuerName"; 19 | public const string SigningCertificateName = "SigningCertificateName"; 20 | public const string EncryptingCertificateName = "EncryptingCertificateName"; 21 | } 22 | -------------------------------------------------------------------------------- /Experiments.FibonacciPerformance/Experiments.FibonacciPerformance/Fibonacci.cs: -------------------------------------------------------------------------------- 1 | namespace Experiments.FibonacciPerformance 2 | { 3 | static class Fibonacci 4 | { 5 | public static int FibonacciRecursive(int x) 6 | { 7 | if (x == 0 || x == 1) 8 | return x; 9 | 10 | return FibonacciRecursive(x - 1) + 11 | FibonacciRecursive(x - 2); 12 | } 13 | 14 | public static int FibonacciFlat(int x) 15 | { 16 | var previousValue = -1; 17 | var currentResult = 1; 18 | 19 | for (var i = 0; i <= x; ++i) 20 | { 21 | var sum = currentResult + previousValue; 22 | previousValue = currentResult; 23 | currentResult = sum; 24 | } 25 | 26 | return currentResult; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp_STS_STS/App_Code/Common.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // 3 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 4 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 5 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 6 | // PARTICULAR PURPOSE. 7 | // 8 | // Copyright (c) Microsoft Corporation. All rights reserved. 9 | // 10 | // 11 | //----------------------------------------------------------------------------- 12 | 13 | /// 14 | /// Summary description for Common 15 | /// 16 | public static class Common 17 | { 18 | public const string IssuerName = "IssuerName"; 19 | public const string SigningCertificateName = "SigningCertificateName"; 20 | public const string EncryptingCertificateName = "EncryptingCertificateName"; 21 | } 22 | -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp_STS/App_Code/Common.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // 3 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 4 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 5 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 6 | // PARTICULAR PURPOSE. 7 | // 8 | // Copyright (c) Microsoft Corporation. All rights reserved. 9 | // 10 | // 11 | //----------------------------------------------------------------------------- 12 | 13 | /// 14 | /// Summary description for Common 15 | /// 16 | public static class Common 17 | { 18 | public const string IssuerName = "IssuerName"; 19 | public const string SigningCertificateName = "SigningCertificateName"; 20 | public const string EncryptingCertificateName = "EncryptingCertificateName"; 21 | } 22 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Secure/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace RSTSApp.Secure { 11 | 12 | 13 | public partial class Default { 14 | 15 | /// 16 | /// Repeater1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.WebControls.Repeater Repeater1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Experiments.Wif/WIFControlsApp/Secure/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace WIFControlsApp.Secure 11 | { 12 | 13 | 14 | public partial class Default 15 | { 16 | 17 | /// 18 | /// form1 control. 19 | /// 20 | /// 21 | /// Auto-generated field. 22 | /// To modify move field declaration from designer file to code-behind file. 23 | /// 24 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.ASPNET.MVP { 11 | 12 | 13 | public partial class _Default { 14 | 15 | /// 16 | /// headingField control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.WebControls.Label headingField; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Experiments.Wif/WIFControlsApp/Secure/Token.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="Token.aspx.cs" Inherits="WIFControlsApp.About" %> 3 | 4 | <%@ Register assembly="SecurityTokenVisualizerControl" namespace="Microsoft.Samples.DPE.Identity.Controls" tagprefix="cc1" %> 5 | 6 | <%@ Register assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="Microsoft.IdentityModel.Web.Controls" tagprefix="wif" %> 7 | 8 | 9 | 10 | 11 |

12 | About 13 |

14 |

15 | 17 |

18 |
19 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/packages/NUnit.2.5.7.10213/Tools/test.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Testing 6 | 7 | 8 | Testing 9 | pnunit.tests.dll 10 | TestLibraries.Testing.EqualTo19 11 | localhost:8080 12 | 13 | ..\server 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/SelectTree.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.jQuery.Dialogs { 11 | 12 | 13 | public partial class SelectTree { 14 | 15 | /// 16 | /// TreeView1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.WebControls.TreeView TreeView1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Styles/jquery.Jcrop.css: -------------------------------------------------------------------------------- 1 | /* Fixes issue here http://code.google.com/p/jcrop/issues/detail?id=1 */ 2 | .jcrop-holder { text-align: left; } 3 | 4 | .jcrop-vline, .jcrop-hline 5 | { 6 | font-size: 0; 7 | position: absolute; 8 | background: white url('Jcrop.gif') top left repeat; 9 | } 10 | .jcrop-vline { height: 100%; width: 1px !important; } 11 | .jcrop-hline { width: 100%; height: 1px !important; } 12 | .jcrop-handle { 13 | font-size: 1px; 14 | width: 7px !important; 15 | height: 7px !important; 16 | border: 1px #eee solid; 17 | background-color: #333; 18 | *width: 9px; 19 | *height: 9px; 20 | } 21 | 22 | .jcrop-tracker { width: 100%; height: 100%; } 23 | 24 | .custom .jcrop-vline, 25 | .custom .jcrop-hline 26 | { 27 | background: yellow; 28 | } 29 | .custom .jcrop-handle 30 | { 31 | border-color: black; 32 | background-color: #C7BB00; 33 | -moz-border-radius: 3px; 34 | -webkit-border-radius: 3px; 35 | } -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace WIFControlsApp { 11 | 12 | 13 | public partial class _Default { 14 | 15 | /// 16 | /// FederatedPassiveSignIn1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::Microsoft.IdentityModel.Web.Controls.FederatedPassiveSignIn FederatedPassiveSignIn1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /UML.SaveAsImage/UML.SaveAsImage.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UML.SaveAsImage", "UML.SaveAsImage\UML.SaveAsImage.csproj", "{14C75E3A-A22B-4FBB-9B6C-C9292D36857C}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {14C75E3A-A22B-4FBB-9B6C-C9292D36857C}.Debug|x86.ActiveCfg = Debug|x86 13 | {14C75E3A-A22B-4FBB-9B6C-C9292D36857C}.Debug|x86.Build.0 = Debug|x86 14 | {14C75E3A-A22B-4FBB-9B6C-C9292D36857C}.Release|x86.ActiveCfg = Release|x86 15 | {14C75E3A-A22B-4FBB-9B6C-C9292D36857C}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Views/Home/Amstel.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | Amstel 4 | 5 | 6 | 7 | Amstel 8 | 9 | 10 | 11 | 12 |

" alt="Heineken" style="float:left; margin-right:5px; margin-bottom:5px;" /> 13 | Heineken offers several beers under the Amstel brand.[1] Amstel Lager uses predominantly light pilsner malt, 14 | although some dark malt is also used. It is sold in 75 countries. Amstel Light is a 3.5% abv pale lager. 15 | Amstel 1870 is a slightly dark 5% abv lager. 16 |

17 |
-------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiment.ResizeImage/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="Default.aspx.cs" Inherits="Experiments.ResizeImage.Default" %> 3 | 4 | 5 | 6 | 7 |

8 | Resize image, scale factor = 0.1 9 |

10 | 11 |

12 | 13 |

14 |

15 | Resize image, square a = 100px 16 |

17 |

18 | 19 |

20 |
21 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Secure/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RSTSApp.Secure.Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
<%# Eval("ClaimType") %>
<%# Eval("Value") %>
<%# Eval("Issuer") %>
<%# Eval("OriginalIssuer") %>
27 | 28 |
29 | -------------------------------------------------------------------------------- /Experiments.Wif/WIFControlsApp/Secure/Token.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace WIFControlsApp { 11 | 12 | 13 | public partial class About { 14 | 15 | /// 16 | /// SecurityTokenVisualizerControl1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::Microsoft.Samples.DPE.Identity.Controls.SecurityTokenVisualizerControl SecurityTokenVisualizerControl1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Reports/PriceEnquiriesPerMonth.ascx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace Experiments.ChartControlInMvc.Reports { 11 | 12 | 13 | public partial class PriceEnquiriesPerMonth { 14 | 15 | /// 16 | /// Chart1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.DataVisualization.Charting.Chart Chart1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/SelectTree.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace Experiments.jQuery.Dialogs 9 | { 10 | public partial class SelectTree : Page 11 | { 12 | protected override void OnPreRender(EventArgs e) 13 | { 14 | base.OnPreRender(e); 15 | 16 | if (IsPostBack) 17 | return; 18 | 19 | SetSelectNodeUrls(TreeView1.Nodes); 20 | } 21 | 22 | private void SetSelectNodeUrls(TreeNodeCollection nodes) 23 | { 24 | foreach (TreeNode node in nodes) 25 | { 26 | node.NavigateUrl = "javascript:selectNode('" + node.Value + 27 | "','" + node.Text + "');"; 28 | SetSelectNodeUrls(node.ChildNodes); 29 | } 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Views/Home/Heineken.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Heineken 5 | 6 | 7 | Heineken 8 | 9 | 10 | 11 | 12 |

" alt="Heineken" style="float:left; margin-right:5px; margin-bottom:5px;" /> 13 | Heineken is a 5% abv pale lager, made by Heineken International since 1873. 14 | It is available in a 4.3% alcohol by volume, in countries such as Ireland. 15 | It is the flagship product of the company and is made of purified water, 16 | malted barley, hops, and yeast. 17 |

18 | 19 |
-------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.CropImage", "Experiments.CropImage\Experiments.CropImage.csproj", "{4666E9C3-7C0A-4AB5-9726-E83700BD758B}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {4666E9C3-7C0A-4AB5-9726-E83700BD758B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {4666E9C3-7C0A-4AB5-9726-E83700BD758B}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {4666E9C3-7C0A-4AB5-9726-E83700BD758B}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {4666E9C3-7C0A-4AB5-9726-E83700BD758B}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.FibonacciPerformance/Experiments.FibonacciPerformance.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.FibonacciPerformance", "Experiments.FibonacciPerformance\Experiments.FibonacciPerformance.csproj", "{F28DEA7E-8585-4A8B-BE5A-529257493820}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {F28DEA7E-8585-4A8B-BE5A-529257493820}.Debug|x86.ActiveCfg = Debug|x86 13 | {F28DEA7E-8585-4A8B-BE5A-529257493820}.Debug|x86.Build.0 = Debug|x86 14 | {F28DEA7E-8585-4A8B-BE5A-529257493820}.Release|x86.ActiveCfg = Release|x86 15 | {F28DEA7E-8585-4A8B-BE5A-529257493820}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.LinqPLinqPerformance/Experiments.LinqPLinqPerformance.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.LinqPLinqPerformance", "Experiments.LinqPLinqPerformance\Experiments.LinqPLinqPerformance.csproj", "{3B3E35B4-1170-44A8-8867-A63644AE8818}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {3B3E35B4-1170-44A8-8867-A63644AE8818}.Debug|x86.ActiveCfg = Debug|x86 13 | {3B3E35B4-1170-44A8-8867-A63644AE8818}.Debug|x86.Build.0 = Debug|x86 14 | {3B3E35B4-1170-44A8-8867-A63644AE8818}.Release|x86.ActiveCfg = Release|x86 15 | {3B3E35B4-1170-44A8-8867-A63644AE8818}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiments.ResizeImage.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.ResizeImage", "Experiment.ResizeImage\Experiments.ResizeImage.csproj", "{D1493F66-B265-4F3B-9016-AA1FD8C83DEE}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {D1493F66-B265-4F3B-9016-AA1FD8C83DEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {D1493F66-B265-4F3B-9016-AA1FD8C83DEE}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {D1493F66-B265-4F3B-9016-AA1FD8C83DEE}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {D1493F66-B265-4F3B-9016-AA1FD8C83DEE}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.jQuery.Dialogs", "Experiments.jQuery.Dialogs\Experiments.jQuery.Dialogs.csproj", "{E27C2919-D1E2-4817-87B8-C04D1FA1A544}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {E27C2919-D1E2-4817-87B8-C04D1FA1A544}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {E27C2919-D1E2-4817-87B8-C04D1FA1A544}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {E27C2919-D1E2-4817-87B8-C04D1FA1A544}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {E27C2919-D1E2-4817-87B8-C04D1FA1A544}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @View.Title 5 | 6 | 7 | 8 | 9 |
10 | 11 | 30 | 31 |
32 | @RenderBody() 33 | 35 |
36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /Experiments.MemoryMappedFiles/Experiments.MemoryMappedFiles.Client/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO.MemoryMappedFiles; 3 | 4 | namespace Experiments.MemoryMappedFiles.Client 5 | { 6 | class Program 7 | { 8 | static void Main() 9 | { 10 | Console.WriteLine("Memory mapped file reader started"); 11 | 12 | using (var file = MemoryMappedFile.OpenExisting("myFile")) 13 | { 14 | using (var reader = file.CreateViewAccessor(0, 24)) 15 | { 16 | var bytes = new byte[24]; 17 | reader.ReadArray(0, bytes, 0, bytes.Length); 18 | 19 | Console.WriteLine("Reading bytes"); 20 | foreach (var t in bytes) 21 | Console.Write((char)t + " "); 22 | 23 | Console.WriteLine(string.Empty); 24 | } 25 | } 26 | 27 | Console.WriteLine("Press any key to exit ..."); 28 | Console.ReadLine(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Experiments.MemoryMappedFiles/Experiments.MemoryMappedFiles.Server/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO.MemoryMappedFiles; 3 | 4 | namespace Experiments.MemoryMappedFiles.Server 5 | { 6 | class Program 7 | { 8 | static void Main() 9 | { 10 | Console.WriteLine("Memory mapped file server started"); 11 | 12 | using (var file = MemoryMappedFile.CreateNew("myFile", int.MaxValue)) 13 | { 14 | var bytes = new byte[24]; 15 | for (var i = 0; i < bytes.Length; i++) 16 | bytes[i] = (byte)(65 + i); 17 | 18 | using (var writer = file.CreateViewAccessor(0, bytes.Length)) 19 | { 20 | writer.WriteArray(0, bytes, 0, bytes.Length); 21 | } 22 | 23 | Console.WriteLine("Before exiting run memory mapped file reader"); 24 | Console.WriteLine("Press any key to exit ..."); 25 | Console.ReadLine(); 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Experiments.MeasuringTools/Experiments.MeasuringTools.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.MeasuringTools", "Experiments.MeasuringTools\Experiments.MeasuringTools.csproj", "{A3F83AA1-35F7-4161-A7DE-5024FBB670C7}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {A3F83AA1-35F7-4161-A7DE-5024FBB670C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {A3F83AA1-35F7-4161-A7DE-5024FBB670C7}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {A3F83AA1-35F7-4161-A7DE-5024FBB670C7}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {A3F83AA1-35F7-4161-A7DE-5024FBB670C7}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.OData.TwitPicClient", "Experiments.OData.TwitPicClient\Experiments.OData.TwitPicClient.csproj", "{FBBCCDD3-1044-4206-8FE3-8A2D17C8E010}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {FBBCCDD3-1044-4206-8FE3-8A2D17C8E010}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {FBBCCDD3-1044-4206-8FE3-8A2D17C8E010}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {FBBCCDD3-1044-4206-8FE3-8A2D17C8E010}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {FBBCCDD3-1044-4206-8FE3-8A2D17C8E010}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | using System; 4 | 5 | namespace Application.Data.Locks.Example 6 | { 7 | public class MvcApplication : System.Web.HttpApplication 8 | { 9 | public static void RegisterRoutes(RouteCollection routes) 10 | { 11 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 12 | 13 | routes.MapRoute( 14 | "Default", // Route name 15 | "{controller}/{action}/{id}", // URL with parameters 16 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 17 | ); 18 | 19 | } 20 | 21 | protected void Application_Start() 22 | { 23 | AreaRegistration.RegisterAllAreas(); 24 | 25 | RegisterRoutes(RouteTable.Routes); 26 | } 27 | 28 | protected void Session_End() 29 | { 30 | LockManager.ReleaseSessionLocks(Session.SessionID); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.ChartControlInMvc", "Experiments.ChartControlInMvc\Experiments.ChartControlInMvc.csproj", "{828A0C2E-8F9E-4FC1-BB10-081ED31B1D25}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {828A0C2E-8F9E-4FC1-BB10-081ED31B1D25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {828A0C2E-8F9E-4FC1-BB10-081ED31B1D25}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {828A0C2E-8F9E-4FC1-BB10-081ED31B1D25}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {828A0C2E-8F9E-4FC1-BB10-081ED31B1D25}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.MobileWeb.JqueryMobile", "Experiments.MobileWeb.JqueryMobile\Experiments.MobileWeb.JqueryMobile.csproj", "{92C615D4-D34C-40C3-B723-00EE34863C14}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {92C615D4-D34C-40C3-B723-00EE34863C14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {92C615D4-D34C-40C3-B723-00EE34863C14}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {92C615D4-D34C-40C3-B723-00EE34863C14}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {92C615D4-D34C-40C3-B723-00EE34863C14}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.SongRequestWorkflow/Experiment.SongRequestWorkflow.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiment.SongRequestWorkflow", "Experiment.SongRequestWorkflow\Experiment.SongRequestWorkflow.csproj", "{7D3A8B50-8579-497C-826E-776919BA4C37}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {7D3A8B50-8579-497C-826E-776919BA4C37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {7D3A8B50-8579-497C-826E-776919BA4C37}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {7D3A8B50-8579-497C-826E-776919BA4C37}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {7D3A8B50-8579-497C-826E-776919BA4C37}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/ChartResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Helpers; 3 | using System.Web.Mvc; 4 | 5 | namespace Experiments.AspNetMvc3NewFeatures.Aspx 6 | { 7 | public class ChartResult : ActionResult 8 | { 9 | private readonly Chart _chart; 10 | private readonly string _format; 11 | 12 | public ChartResult(Chart chart, string format) 13 | { 14 | if (chart == null) 15 | throw new ArgumentNullException("chart"); 16 | 17 | _chart = chart; 18 | _format = format; 19 | 20 | if (string.IsNullOrEmpty(_format)) 21 | _format = "png"; 22 | } 23 | 24 | public Chart Chart 25 | { 26 | get { return _chart; } 27 | } 28 | 29 | public string Format 30 | { 31 | get { return _format; } 32 | } 33 | 34 | public override void ExecuteResult(ControllerContext context) 35 | { 36 | _chart.Write(_format); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/WebImageResult.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Helpers; 2 | using System.Web.Mvc; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.Aspx 5 | { 6 | public class WebImageResult : ActionResult 7 | { 8 | private readonly WebImage _image; 9 | private readonly string _format; 10 | 11 | public WebImageResult(WebImage image) : this(image, null) 12 | {} 13 | 14 | public WebImageResult(WebImage image, string format) 15 | { 16 | _image = image; 17 | _format = format; 18 | } 19 | 20 | public WebImage WebImage 21 | { 22 | get { return _image; } 23 | } 24 | 25 | public string Format 26 | { 27 | get { return _format; } 28 | } 29 | 30 | public override void ExecuteResult(ControllerContext context) 31 | { 32 | if (_format == null) 33 | _image.Write(_format); 34 | else 35 | _image.Write(_format); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Experiments.MeasuringTools/Experiments.MeasuringTools/TimerBasedUnitOfWork.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Diagnostics; 3 | 4 | namespace Experiments.MeasuringTools 5 | { 6 | public class TimerBasedUnitOfWork : UnitOfWork 7 | { 8 | public override void Commit() 9 | { 10 | var stopper = new Stopwatch(); 11 | 12 | Time = 0; 13 | TimeTable = new Dictionary(); 14 | 15 | foreach (var command in Commands) 16 | { 17 | if (command.RequiresWarmupCall) 18 | command.Execute(); 19 | 20 | stopper.Reset(); 21 | stopper.Start(); 22 | command.Execute(); 23 | stopper.Stop(); 24 | 25 | TimeTable.Add(command, stopper.ElapsedMilliseconds); 26 | Time += stopper.ElapsedMilliseconds; 27 | } 28 | } 29 | 30 | public long Time { get; private set; } 31 | public Dictionary TimeTable { get; private set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Experiments.SongRequestWorkflow/Experiment.SongRequestWorkflow/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Experiments.Wif/SecurityTokenVisualizerControl.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Samples.DPE.Identity.Controls", "Microsoft.Samples.DPE.Identity.Controls\Microsoft.Samples.DPE.Identity.Controls.csproj", "{FA56BEC3-5483-4C6A-B012-ABAC12018B6F}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.Wif/Backup/SecurityTokenVisualizerControl.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Samples.DPE.Identity.Controls", "Microsoft.Samples.DPE.Identity.Controls\Microsoft.Samples.DPE.Identity.Controls.csproj", "{FA56BEC3-5483-4C6A-B012-ABAC12018B6F}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {FA56BEC3-5483-4C6A-B012-ABAC12018B6F}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace ClientWebMvc 9 | { 10 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 11 | // visit http://go.microsoft.com/?LinkId=9394801 12 | 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | public static void RegisterRoutes(RouteCollection routes) 16 | { 17 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 18 | 19 | routes.MapRoute( 20 | "Default", // Route name 21 | "{controller}/{action}/{id}", // URL with parameters 22 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 23 | ); 24 | 25 | } 26 | 27 | protected void Application_Start() 28 | { 29 | AreaRegistration.RegisterAllAreas(); 30 | 31 | RegisterRoutes(RouteTable.Routes); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 2 | CodeBehind="Default.aspx.cs" Inherits="WIFControlsApp._Default" %> 3 | 4 | <%@ Register assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="Microsoft.IdentityModel.Web.Controls" tagprefix="wif" %> 5 | 6 | 7 | 8 | 9 |

10 | 11 |

12 |

13 | To learn more about ASP.NET visit www.asp.net. 14 | 18 | 19 |

20 |
21 | -------------------------------------------------------------------------------- /Experiments.FibonacciPerformance/Experiments.FibonacciPerformance/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace Experiments.FibonacciPerformance 5 | { 6 | class Program 7 | { 8 | static void Main() 9 | { 10 | var watch = new Stopwatch(); 11 | 12 | Console.WriteLine("Measuring recursive implementation"); 13 | 14 | watch.Start(); 15 | for(var i=0; i<42; i++) 16 | { 17 | Fibonacci.FibonacciRecursive(i); 18 | } 19 | watch.Stop(); 20 | 21 | Console.WriteLine("Recursive: " + watch.Elapsed); 22 | Console.WriteLine("\r\nMeasuring flat implementation"); 23 | 24 | watch.Reset(); 25 | for (var i = 0; i < 42; i++) 26 | { 27 | Fibonacci.FibonacciFlat(i); 28 | } 29 | watch.Stop(); 30 | 31 | Console.WriteLine("Flat: " + watch.Elapsed); 32 | Console.WriteLine("\r\nPress any key to quit ..."); 33 | Console.ReadLine(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace MvcVcardControllerAction 9 | { 10 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 11 | // visit http://go.microsoft.com/?LinkId=9394801 12 | 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | public static void RegisterRoutes(RouteCollection routes) 16 | { 17 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 18 | 19 | routes.MapRoute( 20 | "Default", // Route name 21 | "{controller}/{action}/{id}", // URL with parameters 22 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 23 | ); 24 | 25 | } 26 | 27 | protected void Application_Start() 28 | { 29 | AreaRegistration.RegisterAllAreas(); 30 | 31 | RegisterRoutes(RouteTable.Routes); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace Experiments.ChartControlInMvc 9 | { 10 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 11 | // visit http://go.microsoft.com/?LinkId=9394801 12 | 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | public static void RegisterRoutes(RouteCollection routes) 16 | { 17 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 18 | 19 | routes.MapRoute( 20 | "Default", // Route name 21 | "{controller}/{action}/{id}", // URL with parameters 22 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 23 | ); 24 | 25 | } 26 | 27 | protected void Application_Start() 28 | { 29 | AreaRegistration.RegisterAllAreas(); 30 | 31 | RegisterRoutes(RouteTable.Routes); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Views/Shared/Site.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | 5 | <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 |

15 |
16 |
17 | 18 |
19 |
20 | <%: Html.ActionLink("About", "About", "Home") %> 21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Helpers; 2 | using System.Web.Mvc; 3 | using Experiments.AspNetMvc3NewFeatures.Aspx.Models; 4 | 5 | namespace Experiments.AspNetMvc3NewFeatures.Aspx.Controllers 6 | { 7 | public class HomeController : Controller 8 | { 9 | private readonly ChartModel _model; 10 | 11 | public HomeController(ChartModel model) 12 | { 13 | _model = model; 14 | } 15 | 16 | public ActionResult Index() 17 | { 18 | ViewModel.Message = "Welcome to ASP.NET MVC!"; 19 | 20 | return View(); 21 | } 22 | 23 | public ChartResult GetChart() 24 | { 25 | var data = _model.GetChartData(); 26 | 27 | var chart = new Chart(400, 200, ChartTheme.Blue) 28 | .AddTitle("Price enquiries") 29 | .DataBindTable(data, "X"); 30 | 31 | return new ChartResult(chart, "png"); 32 | } 33 | 34 | public ActionResult About() 35 | { 36 | return View(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWeb/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Async="true" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ClientWeb._Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
Instance idAnswer
<%# Eval("InstanceId") %><%# Eval("Answer") %>
28 | 29 |
30 |
31 |
32 | 33 | 34 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiments.AppDataLocks", "Experiments.AppDataLocks\Experiments.AppDataLocks.csproj", "{0703A3C1-229B-44E9-8F4B-68306FEA72A5}" 5 | EndProject 6 | Global 7 | GlobalSection(SubversionScc) = preSolution 8 | Svn-Managed = True 9 | Manager = AnkhSVN - Subversion Support for Visual Studio 10 | EndGlobalSection 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {0703A3C1-229B-44E9-8F4B-68306FEA72A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {0703A3C1-229B-44E9-8F4B-68306FEA72A5}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {0703A3C1-229B-44E9-8F4B-68306FEA72A5}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {0703A3C1-229B-44E9-8F4B-68306FEA72A5}.Release|Any CPU.Build.0 = Release|Any CPU 20 | EndGlobalSection 21 | GlobalSection(SolutionProperties) = preSolution 22 | HideSolutionNode = FALSE 23 | EndGlobalSection 24 | EndGlobal 25 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Mvc; 3 | 4 | namespace Experiments.ChartControlInMvc.Controllers 5 | { 6 | [HandleError] 7 | public class HomeController : Controller 8 | { 9 | public ActionResult Index() 10 | { 11 | return View(); 12 | } 13 | 14 | [HttpGet] 15 | public ActionResult GetChart() 16 | { 17 | var date = DateTime.Now.Date; 18 | date = date.AddDays(-1*date.Day); 19 | 20 | var data = new[] 21 | { 22 | new { Date = date.AddMonths(-2), Count = 30 }, 23 | new { Date = date.AddMonths(-1), Count = 25 }, 24 | new { Date = date, Count = 15 } 25 | }; 26 | 27 | Response.Clear(); 28 | Response.ContentType = "image/png"; 29 | ChartLoader.SaveChartImage( 30 | "PriceEnquiriesPerMonth.ascx", 31 | data, 32 | Response.OutputStream); 33 | Response.End(); 34 | return null; // have to return something 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWeb/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace ClientWeb.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Experiments.Object2ObjectMapper/Experiments.Object2ObjectMapper/ReflectionBasedMapper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Experiments.Object2ObjectMapper 5 | { 6 | public class ReflectionBasedMapper : ObjectCopyBase 7 | { 8 | private readonly Dictionary _maps = 9 | new Dictionary(); 10 | 11 | public override void MapTypes() 12 | { 13 | var key = GetMapKey(); 14 | if (_maps.ContainsKey(key)) 15 | return; 16 | 17 | var props = GetMatchingProperties(); 18 | _maps.Add(key, props.ToArray()); 19 | } 20 | 21 | public override void Copy(T source, TU target) 22 | { 23 | var key = GetMapKey(); 24 | if (!_maps.ContainsKey(key)) 25 | MapTypes(); 26 | 27 | var propMap = _maps[key]; 28 | 29 | foreach (var prop in propMap) 30 | { 31 | var sourceValue = prop.SourceProperty.GetValue(source, null); 32 | prop.TargetProperty.SetValue(target, sourceValue, null); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp_STS/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %> 2 | <%@ OutputCache Location="None" %> 3 | 4 | <%@ Register assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="Microsoft.IdentityModel.Web.Controls" tagprefix="idfx" %> 5 | 6 | 7 | 8 | 9 | 10 | ASP.NET Security Token Service Web Site 11 | 17 | 18 | 19 |
20 |
21 | Windows Identity Foundation - ASP.NET Security Token Service Web Site
23 |
24 | Note : This test STS uses Forms based authentication with no password validation. Use more secure authentication mode for production scenarios. 25 |
26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Controllers/ImageWorkshopController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Helpers; 2 | using System.Web.Mvc; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.Aspx.Controllers 5 | { 6 | public class ImageWorkshopController : Controller 7 | { 8 | [HttpGet] 9 | public ActionResult Index() 10 | { 11 | return View(); 12 | } 13 | 14 | public void GetImage(string horizontalFlip="", string verticalFlip="", 15 | string rotateLeft="", string rotateRight="") 16 | { 17 | var imagePath = Server.MapPath("~/images/bunny-peanuts.jpg"); 18 | var image = new WebImage(imagePath); 19 | 20 | if (!string.IsNullOrWhiteSpace(verticalFlip)) 21 | image = image.FlipVertical(); 22 | if (!string.IsNullOrWhiteSpace(horizontalFlip)) 23 | image = image.FlipHorizontal(); 24 | if (!string.IsNullOrWhiteSpace(rotateLeft)) 25 | image = image.RotateLeft(); 26 | if (!string.IsNullOrWhiteSpace(rotateRight)) 27 | image = image.RotateRight(); 28 | 29 | image.Write(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Experiments.MemBus.Forms/Experiments.MemBus.Forms/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Experiments.MemBus.Forms.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp_STS_STS/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %> 2 | <%@ OutputCache Location="None" %> 3 | 4 | <%@ Register assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="Microsoft.IdentityModel.Web.Controls" tagprefix="idfx" %> 5 | 6 | 7 | 8 | 9 | 10 | ASP.NET Security Token Service Web Site 11 | 17 | 18 | 19 |
20 |
21 | Windows Identity Foundation - ASP.NET Security Token Service Web Site
23 |
24 | Note : This test STS uses Forms based authentication with no password validation. Use more secure authentication mode for production scenarios. 25 |
26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp_STS/FederationMetadata/2007-06/FederationMetadata.xml: -------------------------------------------------------------------------------- 1 |
http://localhost:2742/RSTSApp_STS/
http://localhost:2742/RSTSApp_STS/
-------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp_STS/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %> 2 | <%@ OutputCache Location="None" %> 3 | 4 | <%@ Register assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="Microsoft.IdentityModel.Web.Controls" tagprefix="idfx" %> 5 | 6 | 7 | 8 | 9 | 10 | ASP.NET Security Token Service Web Site 11 | 17 | 18 | 19 |
20 |
21 | Windows Identity Foundation - ASP.NET Security Token Service Web Site
23 |
24 | Note : This test STS uses Forms based authentication with no password validation. Use more secure authentication mode for production scenarios. 25 |
26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/VcardResult.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using System.Web.Mvc; 3 | using Experiments.Vcard; 4 | 5 | namespace MvcVcardControllerAction 6 | { 7 | public class VcardResult : ActionResult 8 | { 9 | private readonly Vcard _card; 10 | 11 | protected VcardResult() { } 12 | 13 | public VcardResult(Vcard card) 14 | { 15 | _card = card; 16 | } 17 | 18 | public override void ExecuteResult(ControllerContext context) 19 | { 20 | var response = context.HttpContext.Response; 21 | response.ContentType = "text/vcard"; 22 | response.AddHeader("Content-Disposition", "attachment; fileName=" + _card.FirstName + " " + _card.LastName + ".vcf"); 23 | 24 | var cardString = _card.ToString(); 25 | var inputEncoding = Encoding.Default; 26 | var outputEncoding = Encoding.GetEncoding("windows-1257"); 27 | var cardBytes = inputEncoding.GetBytes(cardString); 28 | 29 | var outputBytes = Encoding.Convert(inputEncoding, 30 | outputEncoding, cardBytes); 31 | 32 | response.OutputStream.Write(outputBytes, 0, outputBytes.Length); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/FederationMetadata/2007-06/FederationMetadata.xml: -------------------------------------------------------------------------------- 1 |
http://localhost:8080/rstsapp/secure/
http://localhost:8080/rstsapp/secure/
-------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/FederationMetadata/2007-06/FederationMetadata.xml: -------------------------------------------------------------------------------- 1 |
http://localhost:8080/wifcontrolsapp/secure/
http://localhost:8080/wifcontrolsapp/secure/
-------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/FederationMetadata/2007-06/FederationMetadata.xml.backup.1: -------------------------------------------------------------------------------- 1 |
http://localhost:8080/wifcontrolsapp/secure/
http://localhost:8080/wifcontrolsapp/secure/
-------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/FederationMetadata/2007-06/FederationMetadata.xml.backup.2: -------------------------------------------------------------------------------- 1 |
http://localhost:8080/wifcontrolsapp/secure/
http://localhost:8080/wifcontrolsapp/secure/
-------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWeb/Default.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.4952 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace ClientWeb { 12 | 13 | 14 | public partial class _Default { 15 | 16 | /// 17 | /// form1 control. 18 | /// 19 | /// 20 | /// Auto-generated field. 21 | /// To modify move field declaration from designer file to code-behind file. 22 | /// 23 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 24 | 25 | /// 26 | /// answersRepeater control. 27 | /// 28 | /// 29 | /// Auto-generated field. 30 | /// To modify move field declaration from designer file to code-behind file. 31 | /// 32 | protected global::System.Web.UI.WebControls.Repeater answersRepeater; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Views/Shared/Site.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | 5 | 6 | <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 7 | 8 | 9 | 10 | 11 |
12 | 13 | 30 | 31 |
32 | 33 | 34 | 36 |
37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using Application.Data.Locks.Example.Models; 3 | using System.Threading; 4 | 5 | namespace Application.Data.Locks.Example.Controllers 6 | { 7 | [HandleError] 8 | public class HomeController : Controller 9 | { 10 | public ActionResult Index() 11 | { 12 | Response.Clear(); 13 | Response.ContentType = "text/plain"; 14 | 15 | var product = new Product { Id = 1, Name = "Heineken", Price = 1.2M }; 16 | 17 | if(!LockManager.Lock(product, Session.SessionID)) 18 | { 19 | Response.Write("Object has already lock on it!\r\n"); 20 | Response.End(); 21 | return null; 22 | } 23 | 24 | Response.Write("Object successfully locked\r\n"); 25 | Response.Flush(); 26 | Thread.Sleep(20000); 27 | 28 | Response.Write("Releasing lock\r\n"); 29 | LockManager.ReleaseLock(product, Session.SessionID); 30 | Response.Write("Lock released\r\n"); 31 | 32 | Response.End(); 33 | return null; 34 | } 35 | 36 | public ActionResult About() 37 | { 38 | return View(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Security; 6 | using System.Web.SessionState; 7 | 8 | namespace RSTSApp 9 | { 10 | public class Global : System.Web.HttpApplication 11 | { 12 | 13 | void Application_Start(object sender, EventArgs e) 14 | { 15 | // Code that runs on application startup 16 | 17 | } 18 | 19 | void Application_End(object sender, EventArgs e) 20 | { 21 | // Code that runs on application shutdown 22 | 23 | } 24 | 25 | void Application_Error(object sender, EventArgs e) 26 | { 27 | // Code that runs when an unhandled error occurs 28 | 29 | } 30 | 31 | void Session_Start(object sender, EventArgs e) 32 | { 33 | // Code that runs when a new session is started 34 | 35 | } 36 | 37 | void Session_End(object sender, EventArgs e) 38 | { 39 | // Code that runs when a session ends. 40 | // Note: The Session_End event is raised only when the sessionstate mode 41 | // is set to InProc in the Web.config file. If session mode is set to StateServer 42 | // or SQLServer, the event is not raised. 43 | 44 | } 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Security; 6 | using System.Web.SessionState; 7 | 8 | namespace WIFControlsApp 9 | { 10 | public class Global : System.Web.HttpApplication 11 | { 12 | 13 | void Application_Start(object sender, EventArgs e) 14 | { 15 | // Code that runs on application startup 16 | 17 | } 18 | 19 | void Application_End(object sender, EventArgs e) 20 | { 21 | // Code that runs on application shutdown 22 | 23 | } 24 | 25 | void Application_Error(object sender, EventArgs e) 26 | { 27 | // Code that runs when an unhandled error occurs 28 | 29 | } 30 | 31 | void Session_Start(object sender, EventArgs e) 32 | { 33 | // Code that runs when a new session is started 34 | 35 | } 36 | 37 | void Session_End(object sender, EventArgs e) 38 | { 39 | // Code that runs when a session ends. 40 | // Note: The Session_End event is raised only when the sessionstate mode 41 | // is set to InProc in the Web.config file. If session mode is set to StateServer 42 | // or SQLServer, the event is not raised. 43 | 44 | } 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Views/Shared/Site.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | 5 | 6 | <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 7 | 8 | 9 | 10 | 11 |
12 | 13 | 30 | 31 |
32 | 33 | 34 | 36 |
37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.GlobalActionFilters 5 | { 6 | public class MvcApplication : System.Web.HttpApplication 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | 13 | public static void RegisterRoutes(RouteCollection routes) 14 | { 15 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 16 | 17 | routes.MapRoute( 18 | "Default", // Route name 19 | "{controller}/{action}/{id}", // URL with parameters 20 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 21 | ); 22 | 23 | } 24 | 25 | protected void Application_Start() 26 | { 27 | AreaRegistration.RegisterAllAreas(); 28 | 29 | // Register global filter 30 | GlobalFilters.Filters.Add(new MyActionFilterAttribute()); 31 | GlobalFilters.Filters.Add(new StopwatchAttribute()); 32 | 33 | RegisterGlobalFilters(GlobalFilters.Filters); 34 | RegisterRoutes(RouteTable.Routes); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace Experiments.MobileWeb.JqueryMobile 9 | { 10 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 11 | // visit http://go.microsoft.com/?LinkId=9394801 12 | 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 16 | { 17 | filters.Add(new HandleErrorAttribute()); 18 | } 19 | 20 | public static void RegisterRoutes(RouteCollection routes) 21 | { 22 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 23 | 24 | routes.MapRoute( 25 | "Default", // Route name 26 | "{controller}/{action}/{id}", // URL with parameters 27 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 28 | ); 29 | 30 | } 31 | 32 | protected void Application_Start() 33 | { 34 | AreaRegistration.RegisterAllAreas(); 35 | 36 | RegisterGlobalFilters(GlobalFilters.Filters); 37 | RegisterRoutes(RouteTable.Routes); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Views/Shared/Site.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | 5 | 6 | <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 7 | 8 | 9 | 10 | 11 |
12 | 13 | 31 | 32 |
33 | 34 | 35 | 37 |
38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Views/Shared/Site.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | 5 | 6 | <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 7 | 8 | 9 | 10 | 11 |
12 | 13 | 31 | 32 |
33 | 34 | 35 | 37 |
38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /Experiments.WIF/RSTSApp/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Security; 6 | using System.Web.SessionState; 7 | 8 | namespace Experiments.CropImage 9 | { 10 | public class Global : System.Web.HttpApplication 11 | { 12 | 13 | void Application_Start(object sender, EventArgs e) 14 | { 15 | // Code that runs on application startup 16 | 17 | } 18 | 19 | void Application_End(object sender, EventArgs e) 20 | { 21 | // Code that runs on application shutdown 22 | 23 | } 24 | 25 | void Application_Error(object sender, EventArgs e) 26 | { 27 | // Code that runs when an unhandled error occurs 28 | 29 | } 30 | 31 | void Session_Start(object sender, EventArgs e) 32 | { 33 | // Code that runs when a new session is started 34 | 35 | } 36 | 37 | void Session_End(object sender, EventArgs e) 38 | { 39 | // Code that runs when a session ends. 40 | // Note: The Session_End event is raised only when the sessionstate mode 41 | // is set to InProc in the Web.config file. If session mode is set to StateServer 42 | // or SQLServer, the event is not raised. 43 | 44 | } 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Experiments.WIF/WIFControlsApp/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Security; 6 | using System.Web.SessionState; 7 | 8 | namespace Experiments.ASPNET.MVP 9 | { 10 | public class Global : System.Web.HttpApplication 11 | { 12 | 13 | void Application_Start(object sender, EventArgs e) 14 | { 15 | // Code that runs on application startup 16 | 17 | } 18 | 19 | void Application_End(object sender, EventArgs e) 20 | { 21 | // Code that runs on application shutdown 22 | 23 | } 24 | 25 | void Application_Error(object sender, EventArgs e) 26 | { 27 | // Code that runs when an unhandled error occurs 28 | 29 | } 30 | 31 | void Session_Start(object sender, EventArgs e) 32 | { 33 | // Code that runs when a new session is started 34 | 35 | } 36 | 37 | void Session_End(object sender, EventArgs e) 38 | { 39 | // Code that runs when a session ends. 40 | // Note: The Session_End event is raised only when the sessionstate mode 41 | // is set to InProc in the Web.config file. If session mode is set to StateServer 42 | // or SQLServer, the event is not raised. 43 | 44 | } 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using System.Web.Routing; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.Aspx 5 | { 6 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 7 | // visit http://go.microsoft.com/?LinkId=9394801 8 | 9 | public class MvcApplication : System.Web.HttpApplication 10 | { 11 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 12 | { 13 | filters.Add(new HandleErrorAttribute()); 14 | } 15 | 16 | public static void RegisterRoutes(RouteCollection routes) 17 | { 18 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 19 | 20 | routes.MapRoute( 21 | "Default", // Route name 22 | "{controller}/{action}/{id}", // URL with parameters 23 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 24 | ); 25 | 26 | } 27 | 28 | protected void Application_Start() 29 | { 30 | AreaRegistration.RegisterAllAreas(); 31 | 32 | RegisterGlobalFilters(GlobalFilters.Filters); 33 | RegisterRoutes(RouteTable.Routes); 34 | 35 | ControllerBuilder.Current.SetControllerFactory(typeof (MyControllerFactory)); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace Experiments.AspNetMvc3NewFeatures.Razor 9 | { 10 | // Note: For instructions on enabling IIS6 or IIS7 classic mode, 11 | // visit http://go.microsoft.com/?LinkId=9394801 12 | 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 16 | { 17 | filters.Add(new HandleErrorAttribute()); 18 | } 19 | 20 | public static void RegisterRoutes(RouteCollection routes) 21 | { 22 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 23 | 24 | routes.MapRoute( 25 | "Default", // Route name 26 | "{controller}/{action}/{id}", // URL with parameters 27 | new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults 28 | ); 29 | 30 | } 31 | 32 | protected void Application_Start() 33 | { 34 | AreaRegistration.RegisterAllAreas(); 35 | 36 | RegisterGlobalFilters(GlobalFilters.Filters); 37 | RegisterRoutes(RouteTable.Routes); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Experiments.Vcard/MvcVcardControllerAction/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.WebAppThreading/ClientWebMvc/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Security; 6 | using System.Web.SessionState; 7 | 8 | namespace Experiments.jQuery.Dialogs 9 | { 10 | public class Global : System.Web.HttpApplication 11 | { 12 | 13 | void Application_Start(object sender, EventArgs e) 14 | { 15 | // Code that runs on application startup 16 | 17 | } 18 | 19 | void Application_End(object sender, EventArgs e) 20 | { 21 | // Code that runs on application shutdown 22 | 23 | } 24 | 25 | void Application_Error(object sender, EventArgs e) 26 | { 27 | // Code that runs when an unhandled error occurs 28 | 29 | } 30 | 31 | void Session_Start(object sender, EventArgs e) 32 | { 33 | // Code that runs when a new session is started 34 | 35 | } 36 | 37 | void Session_End(object sender, EventArgs e) 38 | { 39 | // Code that runs when a session ends. 40 | // Note: The Session_End event is raised only when the sessionstate mode 41 | // is set to InProc in the Web.config file. If session mode is set to StateServer 42 | // or SQLServer, the event is not raised. 43 | 44 | } 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Experiments.ASPNET.MVP/Experiments.ASPNET.MVP/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.CropImage/Experiments.CropImage/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.ResizeImage/Experiment.ResizeImage/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.jQuery/Experiments.jQuery.Dialogs/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.AppDataLocks/Experiments.AppDataLocks/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.OData/Experiments.OData.TwitPicClient/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.MobileWeb/Experiments.MobileWeb.JqueryMobile/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.ChartControlInMvc/Experiments.ChartControlInMvc/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/StopwatchAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using System.Web.Mvc; 3 | 4 | namespace Experiments.AspNetMvc3NewFeatures.GlobalActionFilters 5 | { 6 | // Credits to Nick Berardi: http://coderjournal.com/2010/10/timing-the-execution-time-of-your-mvc-actions/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+coderjournal+(Nick+Berardi's+Coder+Journal) 7 | public class StopwatchAttribute : ActionFilterAttribute 8 | { 9 | private readonly Stopwatch _stopwatch; 10 | 11 | public StopwatchAttribute() 12 | { 13 | _stopwatch = new Stopwatch(); 14 | } 15 | 16 | public override void OnActionExecuting(ActionExecutingContext filterContext) 17 | { 18 | _stopwatch.Start(); 19 | } 20 | 21 | public override void OnActionExecuted(ActionExecutedContext filterContext) 22 | { 23 | _stopwatch.Stop(); 24 | 25 | var httpContext = filterContext.HttpContext; 26 | var response = httpContext.Response; 27 | var elapsed = _stopwatch.Elapsed.ToString(); 28 | 29 | // Works for Cassini and IIS 30 | response.Write(string.Format("", elapsed)); 31 | 32 | // Works for IIS 33 | //response.AddHeader("X-Stopwatch", elapsed); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Views/Shared/Site.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | 5 | 6 | <asp:ContentPlaceHolder ID="TitleContent" runat="server" /> 7 | 8 | 9 | 10 | 11 |
12 | 13 | 31 | 32 |
33 | 34 | 35 | 37 |
38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Aspx.Tests/HomeControllerTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using Experiments.AspNetMvc3NewFeatures.Aspx.Controllers; 4 | using Experiments.AspNetMvc3NewFeatures.Aspx.Models; 5 | using Moq; 6 | using NUnit.Framework; 7 | 8 | namespace Experiments.AspNetMvc3NewFeatures.Aspx.Tests 9 | { 10 | [TestFixture] 11 | public class HomeControllerTests 12 | { 13 | [Test] 14 | public void GetChartReturnsChart() 15 | { 16 | var data = GetChartData(); 17 | var mock = new Mock(); 18 | mock.Setup(c => c.GetChartData()) 19 | .Returns(data); 20 | 21 | var controller = new HomeController(mock.Object); 22 | var result = controller.GetChart(); 23 | 24 | mock.Verify(); 25 | Assert.IsNotNull(result, "Result is null"); 26 | Assert.IsInstanceOf(result,"Result is not ChartResult"); 27 | } 28 | 29 | private static IList GetChartData() 30 | { 31 | return new ArrayList 32 | { 33 | new { X = DateTime.Now.AddMonths(-2), Y = 200 }, 34 | new { X = DateTime.Now.AddMonths(-1), Y = 300 }, 35 | new { X = DateTime.Now, Y = 500 } 36 | }; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.Razor/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /Experiments.AspNetMvc3NewFeatures/Experiments.AspNetMvc3NewFeatures.GlobalActionFilters/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | --------------------------------------------------------------------------------