This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <connectionStrings> | |
| <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcApplication3-20120901000818;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-MvcApplication3-20120901000818.mdf" /> | |
| </connectionStrings> | |
| ... | |
| <system.web> | |
| ... | |
| <profile defaultProvider="DefaultProfileProvider"> | |
| <providers> | |
| <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
| connectionStringName="DefaultConnection" applicationName="/" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class WebRole : RoleEntryPoint | |
| { | |
| private TraceSource CreateTraceSource() | |
| { | |
| var traceSource = new TraceSource("SampleApp", SourceLevels.All); | |
| traceSource.Listeners.Add( | |
| Activator.CreateInstance( | |
| Type.GetType("Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime.DevelopmentFabricTraceListener, Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")) as TraceListener); | |
| return traceSource; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class WebRole : RoleEntryPoint | |
| { | |
| public override bool OnStart() | |
| { | |
| RoleEnvironment.Changing += OnChanging; | |
| RoleEnvironment.Changed += OnChanged; | |
| return base.OnStart(); | |
| } | |
| private void OnChanging(object sender, RoleEnvironmentChangingEventArgs e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| csrun.exe /update:31;"C:\Some\Path\MultipleInstancesDemo\MultipleInstancesDemo\bin\Debug\ServiceConfiguration.cscfg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| csrun.exe /update:<deployment-id>;<service-configuration-file> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <ServiceConfiguration serviceName="MultipleInstancesDemo" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="1" osVersion="*" schemaVersion="2012-05.1.7"> | |
| <Role name="MyWebRole"> | |
| <Instances count="3" /> | |
| <ConfigurationSettings> | |
| <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" /> | |
| <Setting name="SomeSetting" value="abcdefg" /> | |
| </ConfigurationSettings> | |
| </Role> | |
| </ServiceConfiguration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <runtime> | |
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
| <dependentAssembly> | |
| <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | |
| <bindingRedirect oldVersion="1.1.0.0" newVersion="1.7.0.0" /> | |
| </dependentAssembly> | |
| </assemblyBinding> | |
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
| <dependentAssembly> | |
| <assemblyIdentity name="Microsoft.ServiceBus" publicKeyToken="31bf3856ad364e35" culture="neutral" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (RoleEnvironment.IsAvailable) | |
| Trace.Listeners.Add(Activator.CreateInstance(Type.GetType("Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")) | |
| as TraceListener) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <system.diagnostics> | |
| <trace> | |
| <listeners> | |
| <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> | |
| <filter type="" /> | |
| </add> | |
| </listeners> | |
| </trace> | |
| </system.diagnostics> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ScrollDataGrid : DataGrid | |
| { | |
| /// <summary> | |
| /// The vertical scrollbar. | |
| /// </summary> | |
| private ScrollBar verticalScrollBar; | |
| /// <summary> | |
| /// The horizontal scrollbar. | |
| /// </summary> |