diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Connected Services/Application Insights/ConnectedService.json b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Connected Services/Application Insights/ConnectedService.json deleted file mode 100644 index f4580e22d5..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Connected Services/Application Insights/ConnectedService.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider", - "Version": "8.6.404.2", - "GettingStartedDocument": { - "Uri": "https://go.microsoft.com/fwlink/?LinkID=798432" - } -} \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/DotVVM.Samples.ApplicationInsights.AspNetCore.csproj b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/DotVVM.Samples.ApplicationInsights.AspNetCore.csproj deleted file mode 100755 index c44b4323fa..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/DotVVM.Samples.ApplicationInsights.AspNetCore.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - netcoreapp2.0 - /subscriptions/1f41fa3c-37d6-4b89-b5dc-913463de0d9a/resourcegroups/DotVVMWeb/providers/microsoft.insights/components/DotvvmTrackingPoints - /subscriptions/1f41fa3c-37d6-4b89-b5dc-913463de0d9a/resourcegroups/DotVVMWeb/providers/microsoft.insights/components/DotvvmTrackingPoints - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/DotvvmStartup.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/DotvvmStartup.cs deleted file mode 100644 index 984fa42e73..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/DotvvmStartup.cs +++ /dev/null @@ -1,40 +0,0 @@ -using DotVVM.Framework; -using DotVVM.Framework.Configuration; -using DotVVM.Framework.Routing; -using DotVVM.Tracing.ApplicationInsights; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore -{ - public class DotvvmStartup : IDotvvmStartup - { - // For more information about this class, visit https://dotvvm.com/docs/tutorials/basics-project-structure - public void Configure(DotvvmConfiguration config, string applicationPath) - { - ConfigureRoutes(config, applicationPath); - ConfigureControls(config, applicationPath); - ConfigureResources(config, applicationPath); - } - - private void ConfigureRoutes(DotvvmConfiguration config, string applicationPath) - { - config.RouteTable.Add("Default", "", "Views/default.dothtml"); - - config.RouteTable.Add("InitException", "Test/InitException", "Views/Test/initException.dothtml"); - config.RouteTable.Add("CommandException", "Test/CommandException", "Views/Test/commandException.dothtml"); - config.RouteTable.Add("Correct", "Test/Correct", "Views/Test/correct.dothtml"); - config.RouteTable.Add("CorrectCommand", "Test/CorrectCommand", "Views/Test/correctCommand.dothtml"); - // Uncomment the following line to auto-register all dothtml files in the Views folder - // config.RouteTable.AutoDiscoverRoutes(new DefaultRouteStrategy(config)); - } - - private void ConfigureControls(DotvvmConfiguration config, string applicationPath) - { - // register code-only controls and markup controls - } - - private void ConfigureResources(DotvvmConfiguration config, string applicationPath) - { - // register custom resources and adjust paths to the built-in resources - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Program.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Program.cs deleted file mode 100644 index 5922a8277e..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore -{ - public class Program - { - public static void Main(string[] args) - { - var host = new WebHostBuilder() - .UseKestrel() - .UseContentRoot(Directory.GetCurrentDirectory()) - .UseIISIntegration() - .UseStartup() - .Build(); - - host.Run(); - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Properties/launchSettings.json b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Properties/launchSettings.json deleted file mode 100644 index 52a0c0a957..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Properties/launchSettings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:56564/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "DotVVM.Samples.ApplicationInsights.AspNetCore": { - "commandName": "Project" - } - } -} \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Startup.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Startup.cs deleted file mode 100755 index 41f97c349f..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Startup.cs +++ /dev/null @@ -1,59 +0,0 @@ -using DotVVM.Tracing.ApplicationInsights.AspNetCore; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore -{ - public class Startup - { - public IConfigurationRoot Configuration { get; set; } - - public Startup(IHostingEnvironment env) - { - - var builder = new ConfigurationBuilder() - .SetBasePath(env.ContentRootPath) - .AddJsonFile("appsettings.json"); - - if (env.IsDevelopment()) - { - builder.AddApplicationInsightsSettings(developerMode: true); - } - - Configuration = builder.Build(); - } - - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 - public void ConfigureServices(IServiceCollection services) - { - services.AddDataProtection(); - services.AddAuthorization(); - services.AddWebEncoders(); - ConfigureDotvvmServices(services); - services.AddApplicationInsightsTelemetry(Configuration); - } - - public static void ConfigureDotvvmServices(IServiceCollection services) - { - services.AddDotVVM(options => - { - options - .AddDefaultTempStorages("Temp") - .AddApplicationInsightsTracing(); - }); - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) - { - loggerFactory.AddConsole(); - - // use DotVVM - var dotvvmConfiguration = app.UseDotVVM(env.ContentRootPath); - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/DefaultViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/DefaultViewModel.cs deleted file mode 100644 index 1634930f1e..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/DefaultViewModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels -{ - public class DefaultViewModel : DotvvmViewModelBase - { - - public string Title { get; set; } - - - public DefaultViewModel() - { - Title = "Hello from DotVVM!"; - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CommandExceptionViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CommandExceptionViewModel.cs deleted file mode 100644 index 49117b99ca..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CommandExceptionViewModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test -{ - public class CommandExceptionViewModel : DotvvmViewModelBase - { - public void TestCommand() - { - throw new ArgumentException("Throwing exception in button command"); - } - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CorrectCommandViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CorrectCommandViewModel.cs deleted file mode 100644 index 37bc777fa5..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CorrectCommandViewModel.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; -using DotVVM.Framework.Hosting; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test -{ - public class CorrectCommandViewModel : DotvvmViewModelBase - { - public void Submit() - { - } - public void Redirect() - { - Context.RedirectToRoute("default"); - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CorrectViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CorrectViewModel.cs deleted file mode 100644 index 4db955c491..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/CorrectViewModel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test -{ - public class CorrectViewModel : DotvvmViewModelBase - { - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/InitExceptionViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/InitExceptionViewModel.cs deleted file mode 100644 index 1e6e442ebc..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/ViewModels/Test/InitExceptionViewModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test -{ - public class InitExceptionViewModel : DotvvmViewModelBase - { - public override Task Init() - { - throw new ArgumentException("Throwing exception in init phase of the request"); - } - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/commandException.dothtml b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/commandException.dothtml deleted file mode 100644 index e4500ba278..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/commandException.dothtml +++ /dev/null @@ -1,16 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test.CommandExceptionViewModel, DotVVM.Samples.ApplicationInsights.AspNetCore - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/correct.dothtml b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/correct.dothtml deleted file mode 100644 index b42e18a664..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/correct.dothtml +++ /dev/null @@ -1,15 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test.CorrectViewModel, DotVVM.Samples.ApplicationInsights.AspNetCore - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/correctCommand.dothtml b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/correctCommand.dothtml deleted file mode 100644 index 96f979ac9c..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/correctCommand.dothtml +++ /dev/null @@ -1,17 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test.CorrectCommandViewModel, DotVVM.Samples.ApplicationInsights.AspNetCore - - - - - - - - - - -
- -
- - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/initException.dothtml b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/initException.dothtml deleted file mode 100644 index 799b20b49d..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/Test/initException.dothtml +++ /dev/null @@ -1,16 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.Test.InitExceptionViewModel, DotVVM.Samples.ApplicationInsights.AspNetCore - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/default.dothtml b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/default.dothtml deleted file mode 100644 index 99ee422c87..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Views/default.dothtml +++ /dev/null @@ -1,21 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.AspNetCore.ViewModels.DefaultViewModel, DotVVM.Samples.ApplicationInsights.AspNetCore - - - - - - - - - - - - -
- -
- -
- - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Web.config b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Web.config deleted file mode 100644 index b70ce7e432..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/Web.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/appsettings.json b/src/DotVVM.Samples.ApplicationInsights.AspNetCore/appsettings.json deleted file mode 100644 index 7f8e57a058..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.AspNetCore/appsettings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ApplicationInsights": { - "InstrumentationKey": "a03d74c6-1d9e-4a8e-b77a-9da312846cf2" - } -} \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/ApplicationInsights.config b/src/DotVVM.Samples.ApplicationInsights.Owin/ApplicationInsights.config deleted file mode 100644 index 04020e055f..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/ApplicationInsights.config +++ /dev/null @@ -1,102 +0,0 @@ - - - a03d74c6-1d9e-4a8e-b77a-9da312846cf2 - - - - - - - - - - search|spider|crawl|Bot|Monitor|AlwaysOn - - - - - - - - - - - - - - core.windows.net - core.chinacloudapi.cn - core.cloudapi.de - core.usgovcloudapi.net - - - - - - - - - - - - - System.Web.Handlers.TransferRequestHandler - Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler - System.Web.StaticFileHandler - System.Web.Handlers.AssemblyResourceLoader - System.Web.Optimization.BundleHandler - System.Web.Script.Services.ScriptHandlerFactory - System.Web.Handlers.TraceHandler - System.Web.Services.Discovery.DiscoveryRequestHandler - System.Web.HttpDebugHandler - - - - - - - - - - - 5 - Event - - - 5 - Event - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/DotVVM.Samples.ApplicationInsights.Owin.csproj b/src/DotVVM.Samples.ApplicationInsights.Owin/DotVVM.Samples.ApplicationInsights.Owin.csproj deleted file mode 100644 index 3b76a9d8d6..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/DotVVM.Samples.ApplicationInsights.Owin.csproj +++ /dev/null @@ -1,219 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {85617AC0-D0A5-40B8-8C81-4B13877E7837} - {94EE71E2-EE2A-480B-8704-AF46D2E58D94};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - DotVVM.Samples.ApplicationInsingts.Owin - DotVVM.Samples.ApplicationInsingts.Owin - v4.6.1 - true - - - - - - - /subscriptions/1f41fa3c-37d6-4b89-b5dc-913463de0d9a/resourcegroups/DotVVMWeb/providers/microsoft.insights/components/DotvvmTrackingPoints - /subscriptions/1f41fa3c-37d6-4b89-b5dc-913463de0d9a/resourceGroups/DotVVMWeb/providers/microsoft.insights/components/DotvvmTrackingPoints - - - - true - full - false - bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\ - TRACE - prompt - 4 - - - - ..\packages\ApplicationInsights.OwinExtensions.0.4.1\lib\net45\ApplicationInsights.OwinExtensions.dll - - - ..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.4.0\lib\net45\Microsoft.AI.Agent.Intercept.dll - - - ..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.4.0\lib\net45\Microsoft.AI.DependencyCollector.dll - - - ..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.4.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll - - - ..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll - - - ..\packages\Microsoft.ApplicationInsights.Web.2.4.0\lib\net45\Microsoft.AI.Web.dll - - - ..\packages\Microsoft.ApplicationInsights.WindowsServer.2.4.0\lib\net45\Microsoft.AI.WindowsServer.dll - - - ..\packages\Microsoft.ApplicationInsights.2.4.0\lib\net46\Microsoft.ApplicationInsights.dll - - - ..\packages\Microsoft.AspNet.TelemetryCorrelation.1.0.0\lib\net45\Microsoft.AspNet.TelemetryCorrelation.dll - - - ..\packages\Microsoft.CodeAnalysis.Common.1.0.0\lib\net45\Microsoft.CodeAnalysis.dll - - - ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0\lib\net45\Microsoft.CodeAnalysis.CSharp.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.1.0.0\lib\netstandard1.1\Microsoft.Extensions.DependencyInjection.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.1.0.0\lib\netstandard1.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll - - - ..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll - - - ..\packages\Microsoft.Owin.FileSystems.3.0.1\lib\net45\Microsoft.Owin.FileSystems.dll - - - ..\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll - - - ..\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll - - - ..\packages\Microsoft.Owin.StaticFiles.3.0.1\lib\net45\Microsoft.Owin.StaticFiles.dll - - - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\Owin.1.0\lib\net40\Owin.dll - - - - ..\packages\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - - - - - ..\packages\System.Diagnostics.DiagnosticSource.4.4.0\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - ..\packages\System.Reflection.Metadata.1.0.21\lib\portable-net45+win8\System.Reflection.Metadata.dll - - - - - - - - - - - - - - - - - - - - - - - - Designer - - - - - - - - - PreserveNewest - - - Web.config - - - Web.config - - - - - {45fa2f43-d92b-4a9b-9b93-9ab519ad0127} - DotVVM.Core - - - {f578ac17-9bbf-40fb-b0ee-9059cd08865b} - DotVVM.Framework.Hosting.Owin - - - {8bb2217d-0f2d-49d1-97bc-3654ed321f3b} - DotVVM.Framework - - - {E25432DB-B173-4ED4-96A5-E60DF440DE49} - DotVVM.Tracing.ApplicationInsights.Owin - - - - - - - - - - - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - - - - True - True - 0 - / - http://localhost:60387/ - False - False - - - False - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/DotvvmStartup.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/DotvvmStartup.cs deleted file mode 100644 index 77034b594f..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/DotvvmStartup.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Web.Hosting; -using Microsoft.Owin; -using Microsoft.Owin.FileSystems; -using Microsoft.Owin.StaticFiles; -using Owin; -using DotVVM.Framework; -using DotVVM.Framework.Configuration; -using DotVVM.Framework.Routing; - -namespace DotVVM.Samples.ApplicationInsights.Owin -{ - public class DotvvmStartup : IDotvvmStartup - { - // For more information about this class, visit https://dotvvm.com/docs/tutorials/basics-project-structure - public void Configure(DotvvmConfiguration config, string applicationPath) - { - ConfigureRoutes(config, applicationPath); - ConfigureControls(config, applicationPath); - ConfigureResources(config, applicationPath); - } - - private void ConfigureRoutes(DotvvmConfiguration config, string applicationPath) - { - config.RouteTable.Add("Default", "", "Views/default.dothtml"); - - config.RouteTable.Add("InitException", "Test/InitException", "Views/Test/initException.dothtml"); - config.RouteTable.Add("CommandException", "Test/CommandException", "Views/Test/commandException.dothtml"); - config.RouteTable.Add("Correct", "Test/Correct", "Views/Test/correct.dothtml"); - config.RouteTable.Add("CorrectCommand", "Test/CorrectCommand", "Views/Test/correctCommand.dothtml"); - // Uncomment the following line to auto-register all dothtml files in the Views folder - // config.RouteTable.AutoDiscoverRoutes(new DefaultRouteStrategy(config)); - } - - private void ConfigureControls(DotvvmConfiguration config, string applicationPath) - { - // register code-only controls and markup controls - } - - private void ConfigureResources(DotvvmConfiguration config, string applicationPath) - { - // register custom resources and adjust paths to the built-in resources - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Properties/AssemblyInfo.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/Properties/AssemblyInfo.cs deleted file mode 100644 index bd8b2474c5..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DotVVM.samples.ApplicationInsights")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DotVVM.samples.ApplicationInsights")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f271f1b5-9dc1-41d5-a54d-420d962ebd98")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Startup.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/Startup.cs deleted file mode 100644 index f91599bd57..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Startup.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.Web.Hosting; -using ApplicationInsights.OwinExtensions; -using Microsoft.Owin; -using Owin; -using Microsoft.Extensions.DependencyInjection; -using DotVVM.Tracing.ApplicationInsights.Owin; - -[assembly: OwinStartup(typeof(DotVVM.Samples.ApplicationInsights.Owin.Startup))] -namespace DotVVM.Samples.ApplicationInsights.Owin -{ - public class Startup - { - public void Configuration(IAppBuilder app) - { - app.UseApplicationInsights(); - - var applicationPhysicalPath = HostingEnvironment.ApplicationPhysicalPath; - - // use DotVVM - var dotvvmConfiguration = app.UseDotVVM(applicationPhysicalPath, options: options => { - options - .AddDefaultTempStorages("temp") - .AddApplicationInsightsTracing(); - }, debug: IsDebug()); - - - } - - public bool IsDebug() - { -#if !DEBUG - return false; -#endif - return true; - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/DefaultViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/DefaultViewModel.cs deleted file mode 100644 index 82156d0213..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/DefaultViewModel.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.Owin.ViewModels -{ - public class DefaultViewModel : DotvvmViewModelBase - { - public string InitRouteName { get; set; } - public string CommandRouteName { get; set; } - - - public DefaultViewModel() - { - InitRouteName = "InitException"; - CommandRouteName = "CommandException"; - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CommandExceptionViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CommandExceptionViewModel.cs deleted file mode 100644 index 6c835a9c77..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CommandExceptionViewModel.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test -{ - public class CommandExceptionViewModel : DotvvmViewModelBase - { - public void TestCommand() - { - throw new ArgumentException("Throwing exception in button command"); - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CorrectCommandViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CorrectCommandViewModel.cs deleted file mode 100644 index 537029d052..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CorrectCommandViewModel.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; -using DotVVM.Framework.Hosting; - -namespace DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test -{ - public class CorrectCommandViewModel : DotvvmViewModelBase - { - public void Submit() - { - } - - public void Redirect() - { - Context.RedirectToRoute("default"); - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CorrectViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CorrectViewModel.cs deleted file mode 100644 index 8bf33c7ace..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/CorrectViewModel.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test -{ - public class CorrectViewModel : DotvvmViewModelBase - { - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/InitExceptionViewModel.cs b/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/InitExceptionViewModel.cs deleted file mode 100644 index 6b377ce982..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/ViewModels/Test/InitExceptionViewModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test -{ - public class InitExceptionViewModel : DotvvmViewModelBase - { - public override Task Init() - { - throw new ArgumentException("Throwing exception in init phase of the request"); - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/commandException.dothtml b/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/commandException.dothtml deleted file mode 100644 index fa3df7dcd4..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/commandException.dothtml +++ /dev/null @@ -1,16 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test.CommandExceptionViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/correct.dothtml b/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/correct.dothtml deleted file mode 100644 index a89804fd2e..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/correct.dothtml +++ /dev/null @@ -1,15 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test.CorrectViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/correctCommand.dothtml b/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/correctCommand.dothtml deleted file mode 100644 index a07dae3304..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/correctCommand.dothtml +++ /dev/null @@ -1,19 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test.CorrectCommandViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - -
- -
- - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/initException.dothtml b/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/initException.dothtml deleted file mode 100644 index 495c1210e1..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/Test/initException.dothtml +++ /dev/null @@ -1,16 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.Owin.ViewModels.Test.InitExceptionViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/default.dothtml b/src/DotVVM.Samples.ApplicationInsights.Owin/Views/default.dothtml deleted file mode 100644 index 6bda9e5c86..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Views/default.dothtml +++ /dev/null @@ -1,21 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsights.Owin.ViewModels.DefaultViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - -
- -
- -
- - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Web.Debug.config b/src/DotVVM.Samples.ApplicationInsights.Owin/Web.Debug.config deleted file mode 100644 index 2e302f9f95..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Web.Debug.config +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Web.Release.config b/src/DotVVM.Samples.ApplicationInsights.Owin/Web.Release.config deleted file mode 100644 index c35844462b..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Web.Release.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/Web.config b/src/DotVVM.Samples.ApplicationInsights.Owin/Web.config deleted file mode 100644 index 230e4835b6..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/Web.config +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsights.Owin/packages.config b/src/DotVVM.Samples.ApplicationInsights.Owin/packages.config deleted file mode 100644 index cc4c12f73a..0000000000 --- a/src/DotVVM.Samples.ApplicationInsights.Owin/packages.config +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/ApplicationInsights.config b/src/DotVVM.Samples.ApplicationInsingts.Owin/ApplicationInsights.config deleted file mode 100644 index cf53e172d7..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/ApplicationInsights.config +++ /dev/null @@ -1,105 +0,0 @@ - - - a03d74c6-1d9e-4a8e-b77a-9da312846cf2 - - - - - - - - - - search|spider|crawl|Bot|Monitor|AlwaysOn - - - - - - - - - - - - - - core.windows.net - core.chinacloudapi.cn - core.cloudapi.de - core.usgovcloudapi.net - - - - - - - - - - - - - - - System.Web.Handlers.TransferRequestHandler - Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler - System.Web.StaticFileHandler - System.Web.Handlers.AssemblyResourceLoader - System.Web.Optimization.BundleHandler - System.Web.Script.Services.ScriptHandlerFactory - System.Web.Handlers.TraceHandler - System.Web.Services.Discovery.DiscoveryRequestHandler - System.Web.HttpDebugHandler - - - - - - - - - - - 5 - Event - - - 5 - Event - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/DotVVM.Samples.ApplicationInsingts.Owin.csproj b/src/DotVVM.Samples.ApplicationInsingts.Owin/DotVVM.Samples.ApplicationInsingts.Owin.csproj deleted file mode 100644 index 7311948109..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/DotVVM.Samples.ApplicationInsingts.Owin.csproj +++ /dev/null @@ -1,212 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {85617AC0-D0A5-40B8-8C81-4B13877E7837} - {94EE71E2-EE2A-480B-8704-AF46D2E58D94};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - DotVVM.Samples.ApplicationInsingts.Owin - DotVVM.Samples.ApplicationInsingts.Owin - v4.6.1 - true - - - - - - - /subscriptions/1f41fa3c-37d6-4b89-b5dc-913463de0d9a/resourcegroups/DotVVMWeb/providers/microsoft.insights/components/DotvvmTrackingPoints - /subscriptions/1f41fa3c-37d6-4b89-b5dc-913463de0d9a/resourceGroups/DotVVMWeb/providers/microsoft.insights/components/DotvvmTrackingPoints - - - true - full - false - bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\ - TRACE - prompt - 4 - - - - ..\packages\ApplicationInsights.OwinExtensions.0.4.1\lib\net45\ApplicationInsights.OwinExtensions.dll - - - ..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.4.0\lib\net45\Microsoft.AI.Agent.Intercept.dll - - - ..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.4.0\lib\net45\Microsoft.AI.DependencyCollector.dll - - - ..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.4.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll - - - ..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.4.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll - - - ..\packages\Microsoft.ApplicationInsights.Web.2.4.0\lib\net45\Microsoft.AI.Web.dll - - - ..\packages\Microsoft.ApplicationInsights.WindowsServer.2.4.0\lib\net45\Microsoft.AI.WindowsServer.dll - - - ..\packages\Microsoft.ApplicationInsights.2.4.0\lib\net46\Microsoft.ApplicationInsights.dll - - - ..\packages\Microsoft.AspNet.TelemetryCorrelation.1.0.0\lib\net45\Microsoft.AspNet.TelemetryCorrelation.dll - - - ..\packages\Microsoft.CodeAnalysis.Common.1.0.0\lib\net45\Microsoft.CodeAnalysis.dll - - - ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0\lib\net45\Microsoft.CodeAnalysis.CSharp.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.1.0.0\lib\netstandard1.1\Microsoft.Extensions.DependencyInjection.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.1.0.0\lib\netstandard1.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll - - - ..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll - - - ..\packages\Microsoft.Owin.FileSystems.3.0.1\lib\net45\Microsoft.Owin.FileSystems.dll - - - ..\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll - - - ..\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll - - - ..\packages\Microsoft.Owin.StaticFiles.3.0.1\lib\net45\Microsoft.Owin.StaticFiles.dll - - - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\Owin.1.0\lib\net40\Owin.dll - - - - ..\packages\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - - - - - ..\packages\System.Diagnostics.DiagnosticSource.4.4.0\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - ..\packages\System.Reflection.Metadata.1.0.21\lib\portable-net45+win8\System.Reflection.Metadata.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PreserveNewest - - - Web.config - - - Web.config - - - - - {45fa2f43-d92b-4a9b-9b93-9ab519ad0127} - DotVVM.Core - - - {f578ac17-9bbf-40fb-b0ee-9059cd08865b} - DotVVM.Framework.Hosting.Owin - - - {8bb2217d-0f2d-49d1-97bc-3654ed321f3b} - DotVVM.Framework - - - {e25432db-b173-4ed4-96a5-e60df440de49} - DotVVM.Tracing.ApplicationInsights.Owin - - - - - - - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - - - - True - True - 0 - / - http://localhost:55214/ - False - False - - - False - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/DotvvmStartup.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/DotvvmStartup.cs deleted file mode 100644 index 733d975144..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/DotvvmStartup.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Web.Hosting; -using Microsoft.Owin; -using Microsoft.Owin.FileSystems; -using Microsoft.Owin.StaticFiles; -using Owin; -using DotVVM.Framework; -using DotVVM.Framework.Configuration; -using DotVVM.Framework.Routing; - -namespace DotVVM.Samples.ApplicationInsingts.Owin -{ - public class DotvvmStartup : IDotvvmStartup - { - // For more information about this class, visit https://dotvvm.com/docs/tutorials/basics-project-structure - public void Configure(DotvvmConfiguration config, string applicationPath) - { - ConfigureRoutes(config, applicationPath); - ConfigureControls(config, applicationPath); - ConfigureResources(config, applicationPath); - } - - private void ConfigureRoutes(DotvvmConfiguration config, string applicationPath) - { - config.RouteTable.Add("Default", "", "Views/default.dothtml"); - - config.RouteTable.Add("InitException", "Test/InitException", "Views/Test/initException.dothtml"); - config.RouteTable.Add("CommandException", "Test/CommandException", "Views/Test/commandException.dothtml"); - config.RouteTable.Add("Correct", "Test/Correct", "Views/Test/correct.dothtml"); - config.RouteTable.Add("CorrectCommand", "Test/CorrectCommand", "Views/Test/correctCommand.dothtml"); - // Uncomment the following line to auto-register all dothtml files in the Views folder - // config.RouteTable.AutoDiscoverRoutes(new DefaultRouteStrategy(config)); - } - - private void ConfigureControls(DotvvmConfiguration config, string applicationPath) - { - // register code-only controls and markup controls - } - - private void ConfigureResources(DotvvmConfiguration config, string applicationPath) - { - // register custom resources and adjust paths to the built-in resources - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Properties/AssemblyInfo.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/Properties/AssemblyInfo.cs deleted file mode 100644 index 277fd96274..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DotVVM.samples.ApplicationInsingts")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DotVVM.samples.ApplicationInsingts")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f271f1b5-9dc1-41d5-a54d-420d962ebd98")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Startup.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/Startup.cs deleted file mode 100644 index c23fe2942f..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Startup.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Web.Hosting; -using ApplicationInsights.OwinExtensions; -using Microsoft.Owin; -using Owin; -using Microsoft.Extensions.DependencyInjection; -using DotVVM.Tracing.ApplicationInsights.Owin; - -[assembly: OwinStartup(typeof(DotVVM.Samples.ApplicationInsingts.Owin.Startup))] -namespace DotVVM.Samples.ApplicationInsingts.Owin -{ - public class Startup - { - public void Configuration(IAppBuilder app) - { - app.UseApplicationInsights(); - - var applicationPhysicalPath = HostingEnvironment.ApplicationPhysicalPath; - - // use DotVVM - var dotvvmConfiguration = app.UseDotVVM(applicationPhysicalPath, options: options => - { - options - .AddDefaultTempStorages("temp") - .AddApplicationInsightsTracing(); - }); -#if !DEBUG - dotvvmConfiguration.Debug = false; -#endif - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/DefaultViewModel.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/DefaultViewModel.cs deleted file mode 100644 index 9d42df6f2f..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/DefaultViewModel.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsingts.Owin.ViewModels -{ - public class DefaultViewModel : DotvvmViewModelBase - { - public string InitRouteName { get; set; } - public string CommandRouteName { get; set; } - - - public DefaultViewModel() - { - InitRouteName = "InitException"; - CommandRouteName = "CommandException"; - } - } -} diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CommandExceptionViewModel.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CommandExceptionViewModel.cs deleted file mode 100644 index babfb17752..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CommandExceptionViewModel.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test -{ - public class CommandExceptionViewModel : DotvvmViewModelBase - { - public void TestCommand() - { - throw new ArgumentException("Throwing exception in button command"); - } - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CorrectCommandViewModel.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CorrectCommandViewModel.cs deleted file mode 100644 index 39790c7718..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CorrectCommandViewModel.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; -using DotVVM.Framework.Hosting; - -namespace DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test -{ - public class CorrectCommandViewModel : DotvvmViewModelBase - { - public void Submit() - { - } - - public void Redirect() - { - Context.RedirectToRoute("default"); - } - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CorrectViewModel.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CorrectViewModel.cs deleted file mode 100644 index d6263d4a06..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/CorrectViewModel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test -{ - public class CorrectViewModel : DotvvmViewModelBase - { - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/InitExceptionViewModel.cs b/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/InitExceptionViewModel.cs deleted file mode 100644 index ceca70c618..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/ViewModels/Test/InitExceptionViewModel.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test -{ - public class InitExceptionViewModel : DotvvmViewModelBase - { - public override Task Init() - { - throw new ArgumentException("Throwing exception in init phase of the request"); - } - } -} - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/commandException.dothtml b/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/commandException.dothtml deleted file mode 100644 index 86012942b3..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/commandException.dothtml +++ /dev/null @@ -1,16 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test.CommandExceptionViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/correct.dothtml b/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/correct.dothtml deleted file mode 100644 index cfe38f755a..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/correct.dothtml +++ /dev/null @@ -1,15 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test.CorrectViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/correctCommand.dothtml b/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/correctCommand.dothtml deleted file mode 100644 index cdf4f7bcbd..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/correctCommand.dothtml +++ /dev/null @@ -1,19 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test.CorrectCommandViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - -
- -
- - - - - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/initException.dothtml b/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/initException.dothtml deleted file mode 100644 index 7527d25507..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/Test/initException.dothtml +++ /dev/null @@ -1,16 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.Test.InitExceptionViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/default.dothtml b/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/default.dothtml deleted file mode 100644 index 4fcf6c437b..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Views/default.dothtml +++ /dev/null @@ -1,20 +0,0 @@ -@viewModel DotVVM.Samples.ApplicationInsingts.Owin.ViewModels.DefaultViewModel, DotVVM.Samples.ApplicationInsingts.Owin - - - - - - - - - - - -
- -
- -
- - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.Debug.config b/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.Debug.config deleted file mode 100644 index 2e302f9f95..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.Debug.config +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.Release.config b/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.Release.config deleted file mode 100644 index c35844462b..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.Release.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.config b/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.config deleted file mode 100644 index 230e4835b6..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/Web.config +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.ApplicationInsingts.Owin/packages.config b/src/DotVVM.Samples.ApplicationInsingts.Owin/packages.config deleted file mode 100644 index 6c616df201..0000000000 --- a/src/DotVVM.Samples.ApplicationInsingts.Owin/packages.config +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/DotVVM.Samples.MiniProfiler.AspNetCore.csproj b/src/DotVVM.Samples.MiniProfiler.AspNetCore/DotVVM.Samples.MiniProfiler.AspNetCore.csproj deleted file mode 100644 index 8fd2917a12..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/DotVVM.Samples.MiniProfiler.AspNetCore.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - netcoreapp2.0 - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/DotvvmStartup.cs b/src/DotVVM.Samples.MiniProfiler.AspNetCore/DotvvmStartup.cs deleted file mode 100644 index aec4525113..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/DotvvmStartup.cs +++ /dev/null @@ -1,33 +0,0 @@ -using DotVVM.Framework.Configuration; - -namespace DotVVM.Samples.MiniProfiler.AspNetCore -{ - public class DotvvmStartup : IDotvvmStartup - { - // For more information about this class, visit https://dotvvm.com/docs/tutorials/basics-project-structure - public void Configure(DotvvmConfiguration config, string applicationPath) - { - ConfigureRoutes(config, applicationPath); - ConfigureControls(config, applicationPath); - ConfigureResources(config, applicationPath); - } - - private void ConfigureRoutes(DotvvmConfiguration config, string applicationPath) - { - config.RouteTable.Add("Default", "", "Views/default.dothtml"); - - // Uncomment the following line to auto-register all dothtml files in the Views folder - // config.RouteTable.AutoDiscoverRoutes(new DefaultRouteStrategy(config)); - } - - private void ConfigureControls(DotvvmConfiguration config, string applicationPath) - { - // register code-only controls and markup controls - } - - private void ConfigureResources(DotvvmConfiguration config, string applicationPath) - { - // register custom resources and adjust paths to the built-in resources - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Program.cs b/src/DotVVM.Samples.MiniProfiler.AspNetCore/Program.cs deleted file mode 100644 index 87cd13ac6e..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; - -namespace DotVVM.Samples.MiniProfiler.AspNetCore -{ - public class Program - { - public static void Main(string[] args) - { - var host = new WebHostBuilder() - .UseKestrel() - .UseContentRoot(Directory.GetCurrentDirectory()) - .UseIISIntegration() - .UseStartup() - .Build(); - - host.Run(); - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Properties/launchSettings.json b/src/DotVVM.Samples.MiniProfiler.AspNetCore/Properties/launchSettings.json deleted file mode 100644 index 7a4e5c001b..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Properties/launchSettings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:53168/", - "sslPort": 0 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "DotVVM.Samples.MiniProfiler.AspNetCore": { - "commandName": "Project" - } - } -} \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Startup.cs b/src/DotVVM.Samples.MiniProfiler.AspNetCore/Startup.cs deleted file mode 100644 index 1e2b33b1c9..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Startup.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Caching.Memory; -using DotVVM.Tracing.MiniProfiler.AspNetCore; -using StackExchange.Profiling; - -namespace DotVVM.Samples.MiniProfiler.AspNetCore -{ - public class Startup - { - // This method gets called by the runtime. Use this method to add services to the container. - // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 - public void ConfigureServices(IServiceCollection services) - { - services.AddDataProtection(); - services.AddAuthorization(); - services.AddWebEncoders(); - - services.AddDotVVM(options => - { - options - .AddDefaultTempStorages("Temp") - .AddMiniProfilerEventTracing(); - }); - - services.AddMemoryCache(); - - services.AddMiniProfiler(options => - { - options.RouteBasePath = "/profiler"; - }).AddEntityFramework(); - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IMemoryCache cache) - { - loggerFactory.AddConsole(); - - app.UseMiniProfiler(); - - // use DotVVM - var dotvvmConfiguration = app.UseDotVVM(env.ContentRootPath); - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/ViewModels/DefaultViewModel.cs b/src/DotVVM.Samples.MiniProfiler.AspNetCore/ViewModels/DefaultViewModel.cs deleted file mode 100644 index f37a937653..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/ViewModels/DefaultViewModel.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.MiniProfiler.AspNetCore.ViewModels -{ - public class DefaultViewModel : DotvvmViewModelBase - { - public string Title { get; set; } - - public DefaultViewModel() - { - Title = "Hello from DotVVM!"; - } - - public override Task Init() - { - Thread.Sleep(50); - return base.Init(); - } - - public override Task Load() - { - Thread.Sleep(100); - return base.Load(); - } - - public override Task PreRender() - { - Thread.Sleep(200); - return base.PreRender(); - } - - public void Command() - { - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Views/default.dothtml b/src/DotVVM.Samples.MiniProfiler.AspNetCore/Views/default.dothtml deleted file mode 100644 index 2c26289332..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Views/default.dothtml +++ /dev/null @@ -1,20 +0,0 @@ -@viewModel DotVVM.Samples.MiniProfiler.AspNetCore.ViewModels.DefaultViewModel, DotVVM.Samples.MiniProfiler.AspNetCore - - - - - - - - - - -

{{value: Title}}

- - MiniProfiler dataset - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Web.config b/src/DotVVM.Samples.MiniProfiler.AspNetCore/Web.config deleted file mode 100644 index b70ce7e432..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.AspNetCore/Web.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/DotVVM.Samples.MiniProfiler.Owin.csproj b/src/DotVVM.Samples.MiniProfiler.Owin/DotVVM.Samples.MiniProfiler.Owin.csproj deleted file mode 100644 index 60482b0506..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/DotVVM.Samples.MiniProfiler.Owin.csproj +++ /dev/null @@ -1,174 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {24B04C26-27FB-423A-813D-662B5176F836} - {94EE71E2-EE2A-480B-8704-AF46D2E58D94};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - DotVVM.Samples.MiniProfiler.Owin - DotVVM.Samples.MiniProfiler.Owin - v4.6.1 - true - - - - - - - - - true - full - false - bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\ - TRACE - prompt - 4 - - - - ..\packages\Microsoft.CodeAnalysis.Common.1.0.0\lib\net45\Microsoft.CodeAnalysis.dll - - - ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0\lib\net45\Microsoft.CodeAnalysis.CSharp.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.1.0.0\lib\netstandard1.1\Microsoft.Extensions.DependencyInjection.dll - - - ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.1.0.0\lib\netstandard1.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll - - - ..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll - - - ..\packages\Microsoft.Owin.FileSystems.3.0.1\lib\net45\Microsoft.Owin.FileSystems.dll - - - ..\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll - - - ..\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll - - - ..\packages\Microsoft.Owin.StaticFiles.3.0.1\lib\net45\Microsoft.Owin.StaticFiles.dll - - - ..\packages\MiniProfiler.3.2.0.157\lib\net40\MiniProfiler.dll - - - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\Owin.1.0\lib\net40\Owin.dll - - - - ..\packages\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - True - - - - - ..\packages\System.Reflection.Metadata.1.0.21\lib\portable-net45+win8\System.Reflection.Metadata.dll - - - - - - - - - - - - - - - - - - - - - - - Web.config - - - Web.config - - - - - {45fa2f43-d92b-4a9b-9b93-9ab519ad0127} - DotVVM.Core - - - {f578ac17-9bbf-40fb-b0ee-9059cd08865b} - DotVVM.Framework.Hosting.Owin - - - {8bb2217d-0f2d-49d1-97bc-3654ed321f3b} - DotVVM.Framework - - - {4e5f1d3c-2c80-4a2d-bbe2-0877093619a3} - DotVVM.Tracing.MiniProfiler.Owin - - - - - - - - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - - - - True - True - 0 - / - http://localhost:57611/ - False - False - - - False - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/DotvvmStartup.cs b/src/DotVVM.Samples.MiniProfiler.Owin/DotvvmStartup.cs deleted file mode 100644 index e3ae7ff9f3..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/DotvvmStartup.cs +++ /dev/null @@ -1,33 +0,0 @@ -using DotVVM.Framework.Configuration; - -namespace DotVVM.Samples.MiniProfiler.Owin -{ - public class DotvvmStartup : IDotvvmStartup - { - // For more information about this class, visit https://dotvvm.com/docs/tutorials/basics-project-structure - public void Configure(DotvvmConfiguration config, string applicationPath) - { - ConfigureRoutes(config, applicationPath); - ConfigureControls(config, applicationPath); - ConfigureResources(config, applicationPath); - } - - private void ConfigureRoutes(DotvvmConfiguration config, string applicationPath) - { - config.RouteTable.Add("Default", "", "Views/default.dothtml"); - - // Uncomment the following line to auto-register all dothtml files in the Views folder - // config.RouteTable.AutoDiscoverRoutes(new DefaultRouteStrategy(config)); - } - - private void ConfigureControls(DotvvmConfiguration config, string applicationPath) - { - // register code-only controls and markup controls - } - - private void ConfigureResources(DotvvmConfiguration config, string applicationPath) - { - // register custom resources and adjust paths to the built-in resources - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/Properties/AssemblyInfo.cs b/src/DotVVM.Samples.MiniProfiler.Owin/Properties/AssemblyInfo.cs deleted file mode 100644 index 706db69440..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DotVVM.Samples.MiniProfiler.Owin")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DotVVM.Samples.MiniProfiler.Owin")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("030a614c-d26f-4f3e-8784-821037a5dd10")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/Startup.cs b/src/DotVVM.Samples.MiniProfiler.Owin/Startup.cs deleted file mode 100644 index 11f6276077..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/Startup.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Web.Hosting; -using Microsoft.Owin; -using Owin; -using Microsoft.Extensions.DependencyInjection; -using DotVVM.Tracing.MiniProfiler.Owin; -using StackExchange.Profiling; - -[assembly: OwinStartup(typeof(DotVVM.Samples.MiniProfiler.Owin.Startup))] -namespace DotVVM.Samples.MiniProfiler.Owin -{ - public class Startup - { - public void Configuration(IAppBuilder app) - { - var applicationPhysicalPath = HostingEnvironment.ApplicationPhysicalPath; - - - //StackExchange.Profiling.WebRequestProfilerProvider.Setup("~/profiler", - //// ResultsAuthorize (optional - open to all by default): - //// because profiler results can contain sensitive data (e.g. sql queries with parameter values displayed), we - //// can define a function that will authorize clients to see the json or full page results. - //// we use it on https://stackoverflow.com to check that the request cookies belong to a valid developer. - //request => request.IsLocal, - //// ResultsListAuthorize (optional - open to all by default) - //// the list of all sessions in the store is restricted by default, you must return true to allow it - //request => request.IsLocal - //); - StackExchange.Profiling.MiniProfiler.Settings.Results_List_Authorize = (r) => true; - - // use DotVVM - var dotvvmConfiguration = app.UseDotVVM(applicationPhysicalPath, options: options => - { - options - .AddDefaultTempStorages("temp") - .AddMiniProfilerEventTracing(); - }); -#if !DEBUG - dotvvmConfiguration.Debug = false; -#endif - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/ViewModels/DefaultViewModel.cs b/src/DotVVM.Samples.MiniProfiler.Owin/ViewModels/DefaultViewModel.cs deleted file mode 100644 index 5b262f945f..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/ViewModels/DefaultViewModel.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Threading; -using System.Threading.Tasks; -using DotVVM.Framework.ViewModel; - -namespace DotVVM.Samples.MiniProfiler.Owin.ViewModels -{ - public class DefaultViewModel : DotvvmViewModelBase - { - - public string Title { get; set; } - - public DefaultViewModel() - { - Title = "Hello from DotVVM!"; - } - - public override Task Init() - { - Thread.Sleep(50); - return base.Init(); - } - - public override Task Load() - { - Thread.Sleep(100); - return base.Load(); - } - - public override Task PreRender() - { - Thread.Sleep(200); - return base.PreRender(); - } - - public void Command() - { - } - } -} diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/Views/default.dothtml b/src/DotVVM.Samples.MiniProfiler.Owin/Views/default.dothtml deleted file mode 100644 index eb7428c55b..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/Views/default.dothtml +++ /dev/null @@ -1,20 +0,0 @@ -@viewModel DotVVM.Samples.MiniProfiler.Owin.ViewModels.DefaultViewModel, DotVVM.Samples.MiniProfiler.Owin - - - - - - - - - - -

{{value: Title}}

- - MiniProfiler dataset - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/Web.Debug.config b/src/DotVVM.Samples.MiniProfiler.Owin/Web.Debug.config deleted file mode 100644 index 2e302f9f95..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/Web.Debug.config +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/Web.Release.config b/src/DotVVM.Samples.MiniProfiler.Owin/Web.Release.config deleted file mode 100644 index c35844462b..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/Web.Release.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/Web.config b/src/DotVVM.Samples.MiniProfiler.Owin/Web.config deleted file mode 100644 index 2184804597..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/Web.config +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Samples.MiniProfiler.Owin/packages.config b/src/DotVVM.Samples.MiniProfiler.Owin/packages.config deleted file mode 100644 index 43c00ea3e4..0000000000 --- a/src/DotVVM.Samples.MiniProfiler.Owin/packages.config +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/ApplicationInsightsJavaScript.cs b/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/ApplicationInsightsJavaScript.cs deleted file mode 100644 index 39de354ace..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/ApplicationInsightsJavaScript.cs +++ /dev/null @@ -1,31 +0,0 @@ -using DotVVM.Framework.Controls; -using DotVVM.Framework.Hosting; -using Microsoft.ApplicationInsights.AspNetCore; -using Microsoft.Extensions.DependencyInjection; - -namespace DotVVM.Tracing.ApplicationInsights.AspNetCore -{ - /// - /// This class helps to inject Application Insights JavaScript snippet into dothtml. - /// - public class ApplicationInsightsJavascript : DotvvmControl - { - protected override void RenderControl(IHtmlWriter writer, IDotvvmRequestContext context) - { - var doNotTrack = false; - if (context.HttpContext.Request.Headers.TryGetValue("DNT", out var doNotTrackHeaderValue)) - { - doNotTrack = string.Equals(doNotTrackHeaderValue, "1"); - } - - if (!doNotTrack) - { - var javascriptSnippet = context.Services.GetRequiredService(); - - writer.WriteUnencodedText(javascriptSnippet.FullScript); - } - - base.RenderControl(writer, context); - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/DotVVM.Tracing.ApplicationInsights.AspNetCore.csproj b/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/DotVVM.Tracing.ApplicationInsights.AspNetCore.csproj deleted file mode 100644 index 80954be72a..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/DotVVM.Tracing.ApplicationInsights.AspNetCore.csproj +++ /dev/null @@ -1,31 +0,0 @@ - - - - DotVVM.Tracing.ApplicationInsights.AspNetCore - 2.0.0-pre08 - netstandard2.0 - $(NoWarn);CS1591 - true - dotvvmwizard.snk - true - true - DotVVM.Tracing.ApplicationInsights.AspNetCore - 2.0.0-pre08 - RIGANTI - Application Insights Tracing module for ASP.NET Core DotVVM - false - dotvvm;asp.net;mvvm;dotnetcore;dnx - https://dotvvm.com/Content/images/icons/icon-blue-64x64.png - https://github.com/riganti/dotvvm/blob/master/LICENSE - true - - - - - - - - - - - diff --git a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/TracingBuilderExtensions.cs b/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/TracingBuilderExtensions.cs deleted file mode 100644 index 1105f16e70..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/TracingBuilderExtensions.cs +++ /dev/null @@ -1,34 +0,0 @@ -using DotVVM.Framework.Configuration; -using Microsoft.ApplicationInsights.AspNetCore; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; -using Microsoft.Extensions.Options; - -namespace DotVVM.Tracing.ApplicationInsights.AspNetCore -{ - public static class TracingBuilderExtensions - { - /// - /// Registers ApplicationInsightsTracer - /// - /// - /// - public static IDotvvmOptions AddApplicationInsightsTracing(this IDotvvmOptions options) - { - options.AddApplicationInsightsTracingInternal(); - - options.Services.TryAddSingleton(); - options.Services.AddTransient, ApplicationInsightSetup>(); - - return options; - } - } - - internal class ApplicationInsightSetup : IConfigureOptions - { - public void Configure(DotvvmConfiguration config) - { - config.Markup.AddCodeControls("dot", typeof(ApplicationInsightsJavascript)); - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/dotvvmwizard.snk b/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/dotvvmwizard.snk deleted file mode 100644 index 34430b3c78..0000000000 Binary files a/src/DotVVM.Tracing.ApplicationInsights.AspNetCore/dotvvmwizard.snk and /dev/null differ diff --git a/src/DotVVM.Tracing.ApplicationInsights.Owin/ApplicationInsightsJavascript.cs b/src/DotVVM.Tracing.ApplicationInsights.Owin/ApplicationInsightsJavascript.cs deleted file mode 100644 index 011de727e3..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.Owin/ApplicationInsightsJavascript.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System.Globalization; -using System.Security.Principal; -using System.Text.Encodings.Web; -using DotVVM.Framework.Binding; -using DotVVM.Framework.Controls; -using DotVVM.Framework.Hosting; -using Microsoft.ApplicationInsights.Extensibility; - -namespace DotVVM.Tracing.ApplicationInsights.Owin -{ - /// - /// This class helps to inject Application Insights JavaScript snippet into dothtml. - /// - public class ApplicationInsightsJavascript : DotvvmControl - { - /// JavaScript snippet. - private static readonly string Snippet = Resources.JavaScriptSnippet; - - /// JavaScript authenticated user tracking snippet. - private static readonly string AuthSnippet = Resources.JavaScriptAuthSnippet; - - /// Configuration instance. - private TelemetryConfiguration telemetryConfiguration; - - /// JavaScript encoder. - private JavaScriptEncoder encoder; - - /// - /// Enables tracking of authenticated user tracking by their usernames. - /// See https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#setauthenticatedusercontext - /// - [MarkupOptions(AllowBinding = false)] - public bool EnableAuthSnippet - { - get { return (bool)GetValue(EnableAuthSnippetProperty); } - set { SetValue(EnableAuthSnippetProperty, value); } - } - public static readonly DotvvmProperty EnableAuthSnippetProperty - = DotvvmProperty.Register(c => c.EnableAuthSnippet, false); - - /// - /// Initializes a new instance of the ApplicationInsightsJavascript class. - /// - public ApplicationInsightsJavascript() - { - telemetryConfiguration = TelemetryConfiguration.Active; - encoder = JavaScriptEncoder.Default; - } - - protected override void RenderControl(IHtmlWriter writer, IDotvvmRequestContext context) - { - var doNotTrack = false; - if (context.HttpContext.Request.Headers.TryGetValue("DNT", out var doNotTrackHeaderValue)) - { - doNotTrack = string.Equals(doNotTrackHeaderValue, "1"); - } - - if (!doNotTrack) - { - writer.WriteUnencodedText(RenderSnippet(context.HttpContext)); - } - - base.RenderControl(writer, context); - } - - private string RenderSnippet(IHttpContext httpContext) - { - if (!telemetryConfiguration.DisableTelemetry && !string.IsNullOrEmpty(telemetryConfiguration.InstrumentationKey)) - { - string additionalJS = string.Empty; - IIdentity identity = httpContext.User?.Identity; - if (EnableAuthSnippet && - identity != null && - identity.IsAuthenticated) - { - string escapedUserName = encoder.Encode(identity.Name); - additionalJS = string.Format(CultureInfo.InvariantCulture, AuthSnippet, escapedUserName); - } - return string.Format(CultureInfo.InvariantCulture, Snippet, telemetryConfiguration.InstrumentationKey, additionalJS); - } - else - { - return string.Empty; - } - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights.Owin/DotVVM.Tracing.ApplicationInsights.Owin.csproj b/src/DotVVM.Tracing.ApplicationInsights.Owin/DotVVM.Tracing.ApplicationInsights.Owin.csproj deleted file mode 100644 index dd2e8af2a3..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.Owin/DotVVM.Tracing.ApplicationInsights.Owin.csproj +++ /dev/null @@ -1,44 +0,0 @@ - - - - DotVVM.Tracing.ApplicationInsights.Owin - 2.0.0-pre08 - net451 - $(NoWarn);CS1591 - true - dotvvmwizard.snk - true - true - DotVVM.Tracing.ApplicationInsights.Owin - 2.0.0-pre08 - RIGANTI - Application Insights Tracing module for OWIN and DotVVM - false - dotvvm;asp.net;mvvm;owin - https://dotvvm.com/Content/images/icons/icon-blue-64x64.png - https://github.com/riganti/dotvvm/blob/master/LICENSE - true - - - - - - - - - - - - - True - True - Resources.resx - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - diff --git a/src/DotVVM.Tracing.ApplicationInsights.Owin/Resources.Designer.cs b/src/DotVVM.Tracing.ApplicationInsights.Owin/Resources.Designer.cs deleted file mode 100644 index 8ad4431d23..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.Owin/Resources.Designer.cs +++ /dev/null @@ -1,84 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace DotVVM.Tracing.ApplicationInsights.Owin { - using System; - using System.Reflection; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DotVVM.Tracing.ApplicationInsights.Owin.Resources", typeof(Resources).GetTypeInfo().Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to appInsights.setAuthenticatedUserContext("{0}");. - /// - internal static string JavaScriptAuthSnippet { - get { - return ResourceManager.GetString("JavaScriptAuthSnippet", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to <script type="text/javascript"> - /// var appInsights=window.appInsights||function(config){{ - /// function i(config){{t[config]=function(){{var i=arguments;t.queue.push(function(){{t[config].apply(t,i)}})}}}}var t={{config:config}},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{ [rest of string was truncated]";. - /// - internal static string JavaScriptSnippet { - get { - return ResourceManager.GetString("JavaScriptSnippet", resourceCulture); - } - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights.Owin/Resources.resx b/src/DotVVM.Tracing.ApplicationInsights.Owin/Resources.resx deleted file mode 100644 index 6c4579f0af..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.Owin/Resources.resx +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - appInsights.setAuthenticatedUserContext("{0}"); - - - <script type="text/javascript"> - var appInsights=window.appInsights||function(config){{ - function i(config){{t[config]=function(){{var i=arguments;t.queue.push(function(){{t[config].apply(t,i)}})}}}}var t={{config:config}},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{{t.cookie=u.cookie}}catch(p){{}}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),config.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(config,i,u,e,o){{var s=f&&f(config,i,u,e,o);return s!==!0&&t["_"+r](config,i,u,e,o),s}}),t - }}({{ - instrumentationKey: '{0}' - }}); - - window.appInsights=appInsights; - appInsights.trackPageView(); - {1} - </script> - - - \ No newline at end of file diff --git a/src/DotVVM.Tracing.ApplicationInsights.Owin/TracingBuilderExtensions.cs b/src/DotVVM.Tracing.ApplicationInsights.Owin/TracingBuilderExtensions.cs deleted file mode 100644 index 2ae24248c2..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights.Owin/TracingBuilderExtensions.cs +++ /dev/null @@ -1,30 +0,0 @@ -using DotVVM.Framework.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; - -namespace DotVVM.Tracing.ApplicationInsights.Owin -{ - public static class TracingBuilderExtensions - { - /// - /// Registers ApplicationInsightsTracer - /// - /// - /// - public static IDotvvmOptions AddApplicationInsightsTracing(this IDotvvmOptions options) - { - options.AddApplicationInsightsTracingInternal(); - options.Services.AddTransient, ApplicationInsightSetup>(); - - return options; - } - } - - internal class ApplicationInsightSetup : IConfigureOptions - { - public void Configure(DotvvmConfiguration config) - { - config.Markup.AddCodeControls("dot", typeof(ApplicationInsightsJavascript)); - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights.Owin/dotvvmwizard.snk b/src/DotVVM.Tracing.ApplicationInsights.Owin/dotvvmwizard.snk deleted file mode 100644 index 34430b3c78..0000000000 Binary files a/src/DotVVM.Tracing.ApplicationInsights.Owin/dotvvmwizard.snk and /dev/null differ diff --git a/src/DotVVM.Tracing.ApplicationInsights/ApplicationInsightsBulkTracer.cs b/src/DotVVM.Tracing.ApplicationInsights/ApplicationInsightsBulkTracer.cs deleted file mode 100644 index 469988dae8..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights/ApplicationInsightsBulkTracer.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using DotVVM.Framework.Hosting; -using DotVVM.Framework.Runtime.Tracing; -using DotVVM.Framework.Utils; -using Microsoft.ApplicationInsights; -using System.Diagnostics; - -namespace DotVVM.Tracing.ApplicationInsights -{ - public class ApplicationInsightsBulkTracer : IRequestTracer - { - private readonly TelemetryClient telemetryClient; - private readonly Stopwatch stopwatch = Stopwatch.StartNew(); - - private List events = new List(); - - public ApplicationInsightsBulkTracer(TelemetryClient telemetryClient) - { - this.telemetryClient = telemetryClient; - } - - public Task EndRequest(IDotvvmRequestContext context) - { - foreach (var @event in events) - { - telemetryClient.TrackMetric(@event.Name, @event.TimeStamp); - } - - return TaskUtils.GetCompletedTask(); - } - - public Task EndRequest(IDotvvmRequestContext context, Exception exception) - { - telemetryClient.TrackException(exception); - - return EndRequest(context); - } - - public Task TraceEvent(string eventName, IDotvvmRequestContext context) - { - var newEvent = new Event - { - Name = eventName, - TimeStamp = stopwatch.ElapsedMilliseconds - }; - - events.Add(newEvent); - - return TaskUtils.GetCompletedTask(); - } - - internal struct Event - { - public string Name { get; set; } - public long TimeStamp { get; set; } - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights/ApplicationInsightsTracer.cs b/src/DotVVM.Tracing.ApplicationInsights/ApplicationInsightsTracer.cs deleted file mode 100644 index 094bd39c3a..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights/ApplicationInsightsTracer.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Threading.Tasks; -using DotVVM.Framework.Hosting; -using DotVVM.Framework.Runtime.Tracing; -using DotVVM.Framework.Utils; -using Microsoft.ApplicationInsights; -using System.Diagnostics; - -namespace DotVVM.Tracing.ApplicationInsights -{ - public class ApplicationInsightsTracer : IRequestTracer - { - private readonly TelemetryClient telemetryClient; - - private Stopwatch stopwatch = Stopwatch.StartNew(); - - public ApplicationInsightsTracer(TelemetryClient telemetryClient) - { - this.telemetryClient = telemetryClient; - } - - public Task TraceEvent(string eventName, IDotvvmRequestContext context) - { - telemetryClient.TrackMetric(eventName, stopwatch.ElapsedMilliseconds); - stopwatch.Restart(); - - return TaskUtils.GetCompletedTask(); - } - - public Task EndRequest(IDotvvmRequestContext context) - { - return TaskUtils.GetCompletedTask(); - } - - public Task EndRequest(IDotvvmRequestContext context, Exception exception) - { - telemetryClient.TrackException(exception); - - return TaskUtils.GetCompletedTask(); - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights/DotVVM.Tracing.ApplicationInsights.csproj b/src/DotVVM.Tracing.ApplicationInsights/DotVVM.Tracing.ApplicationInsights.csproj deleted file mode 100644 index e896ce7616..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights/DotVVM.Tracing.ApplicationInsights.csproj +++ /dev/null @@ -1,43 +0,0 @@ - - - DotVVM.Tracing.ApplicationInsights - 2.0.0-pre08 - netstandard2.0;net451 - $(NoWarn);CS1591 - true - dotvvmwizard.snk - true - true - DotVVM.Tracing.ApplicationInsights - 2.0.0-pre08 - RIGANTI - Application Insights Tracing module for DotVVM - false - dotvvm;asp.net;mvvm;owin;dotnetcore;dnx - https://dotvvm.com/Content/images/icons/icon-blue-64x64.png - https://github.com/riganti/dotvvm/blob/master/LICENSE - false - false - false - false - false - false - false - false - true - - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Tracing.ApplicationInsights/Properties/AssemblyInfo.cs b/src/DotVVM.Tracing.ApplicationInsights/Properties/AssemblyInfo.cs deleted file mode 100644 index 6f45061c80..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DotVVM.Tracing.ApplicationInsights")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DotVVM.Tracing.ApplicationInsights")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -[assembly: InternalsVisibleTo("DotVVM.Tracing.ApplicationInsights.Owin, PublicKey=002400000480000094000000060200000024000052534131000400000100010007c544d7dbb49a258f8f7509b74f488534c1872c417b2fba85a66b1fba2465caafbaec56663cab0f072cd801f9e22753a85dc55247d4ace012a5eceac50d84c3b9044b9a37ac8baa5eb24dec644ad9fafcc869ad93b6603ffd5321124362cf0ab3684b89db1ed2aca4f175f6fbfc770bdc076396b36017c6dce5a4385c7b67b7")] -[assembly: InternalsVisibleTo("DotVVM.Tracing.ApplicationInsights.AspNetCore, PublicKey=002400000480000094000000060200000024000052534131000400000100010007c544d7dbb49a258f8f7509b74f488534c1872c417b2fba85a66b1fba2465caafbaec56663cab0f072cd801f9e22753a85dc55247d4ace012a5eceac50d84c3b9044b9a37ac8baa5eb24dec644ad9fafcc869ad93b6603ffd5321124362cf0ab3684b89db1ed2aca4f175f6fbfc770bdc076396b36017c6dce5a4385c7b67b7")] \ No newline at end of file diff --git a/src/DotVVM.Tracing.ApplicationInsights/RequestTelemetryFilter.cs b/src/DotVVM.Tracing.ApplicationInsights/RequestTelemetryFilter.cs deleted file mode 100644 index 3cd079d9d2..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights/RequestTelemetryFilter.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Microsoft.ApplicationInsights.Channel; -using Microsoft.ApplicationInsights.DataContracts; -using Microsoft.ApplicationInsights.Extensibility; - -namespace DotVVM.Tracing.ApplicationInsights -{ - public class RequestTelemetryFilter : ITelemetryProcessor - { - private ITelemetryProcessor Next { get; set; } - - public RequestTelemetryFilter(ITelemetryProcessor next) - { - this.Next = next; - } - - public void Process(ITelemetry item) - { - if (!CheckIfSend(item)) { return; } - - this.Next.Process(item); - } - - private bool CheckIfSend(ITelemetry item) - { - var request = item as RequestTelemetry; - if (request == null) - { - return true; - } - if (request.Url.AbsolutePath.StartsWith("/dotvvmResource") || request.ResponseCode.Equals("404") || !request.Properties.ContainsKey("httpMethod")) - { - return false; - } - - return true; - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights/TracingBuilderExtensions.cs b/src/DotVVM.Tracing.ApplicationInsights/TracingBuilderExtensions.cs deleted file mode 100644 index 8615987850..0000000000 --- a/src/DotVVM.Tracing.ApplicationInsights/TracingBuilderExtensions.cs +++ /dev/null @@ -1,28 +0,0 @@ -using DotVVM.Framework.Runtime.Tracing; -using Microsoft.ApplicationInsights; -using Microsoft.ApplicationInsights.Extensibility; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.DependencyInjection.Extensions; - -namespace DotVVM.Tracing.ApplicationInsights -{ - public static class TracingBuilderExtensions - { - /// - /// Registers ApplicationInsightsTracer - /// - /// - /// - internal static IDotvvmOptions AddApplicationInsightsTracingInternal(this IDotvvmOptions options) - { - var builder = TelemetryConfiguration.Active.TelemetryProcessorChainBuilder; - builder.Use((next) => new RequestTelemetryFilter(next)); - builder.Build(); - - options.Services.TryAddSingleton(); - options.Services.AddTransient(); - - return options; - } - } -} diff --git a/src/DotVVM.Tracing.ApplicationInsights/dotvvmwizard.snk b/src/DotVVM.Tracing.ApplicationInsights/dotvvmwizard.snk deleted file mode 100644 index 34430b3c78..0000000000 Binary files a/src/DotVVM.Tracing.ApplicationInsights/dotvvmwizard.snk and /dev/null differ diff --git a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/DotVVM.Tracing.MiniProfiler.AspNetCore.csproj b/src/DotVVM.Tracing.MiniProfiler.AspNetCore/DotVVM.Tracing.MiniProfiler.AspNetCore.csproj deleted file mode 100644 index 2ccd7a934d..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/DotVVM.Tracing.MiniProfiler.AspNetCore.csproj +++ /dev/null @@ -1,32 +0,0 @@ - - - - DotVVM.Tracing.MiniProfiler.AspNetCore - 2.0.0-pre08 - netstandard2.0 - $(NoWarn);CS1591 - true - dotvvmwizard.snk - true - true - DotVVM.Tracing.MiniProfiler.AspNetCore - 2.0.0-pre08 - RIGANTI - MiniProfiler Tracing module for ASP.NET Core and DotVVM - false - dotvvm;asp.net;mvvm;owin - https://dotvvm.com/Content/images/icons/icon-blue-64x64.png - https://github.com/riganti/dotvvm/blob/master/LICENSE - true - - - - - - - - - - - - diff --git a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerActionFilter.cs b/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerActionFilter.cs deleted file mode 100644 index f173aca086..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerActionFilter.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System.Threading.Tasks; -using DotVVM.Framework.Hosting; -using DotVVM.Framework.Runtime.Filters; -using DotVVM.Framework.Binding.Properties; -using DotVVM.Framework.Binding; -using StackExchange.Profiling; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Options; - -namespace DotVVM.Tracing.MiniProfiler.AspNetCore -{ - public class MiniProfilerActionFilter : ActionFilterAttribute - { - private readonly IOptions minipProfilerOptions; - private readonly PathString resultsLink; - - public MiniProfilerActionFilter(IOptions minipProfilerOptions) - { - this.minipProfilerOptions = minipProfilerOptions; - this.resultsLink = minipProfilerOptions.Value.RouteBasePath.Add(new PathString("/results-index")); - } - - protected override Task OnPageLoadedAsync(IDotvvmRequestContext context) - { - // Naming for PostBack occurs in method OnCommandExecutingAsync - // We don't want to override it with less information - if (!context.IsPostBack) - { - AddMiniProfilerName(context, context.HttpContext.Request.Url.AbsoluteUri); - } - - return base.OnPageLoadedAsync(context); - } - - protected override Task OnCommandExecutingAsync(IDotvvmRequestContext context, ActionInfo actionInfo) - { - var commandCode = actionInfo.Binding - ?.GetProperty(Framework.Binding.Expressions.ErrorHandlingMode.ReturnNull)?.Code; - - AddMiniProfilerName(context, context.HttpContext.Request.Url.AbsoluteUri, - $"(PostBack {commandCode})"); - - return base.OnCommandExecutingAsync(context, actionInfo); - } - - private void AddMiniProfilerName(IDotvvmRequestContext context, params string[] nameParts) - { - var currentMiniProfiler = StackExchange.Profiling.MiniProfiler.Current; - - if (currentMiniProfiler != null) - { - currentMiniProfiler.AddCustomLink("results", resultsLink); - currentMiniProfiler.Name = string.Join(" ", nameParts); - } - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerBuilderExtensions.cs b/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerBuilderExtensions.cs deleted file mode 100644 index 5f560f443f..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerBuilderExtensions.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using DotVVM.Framework.Configuration; -using DotVVM.Framework.Runtime.Tracing; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; -using StackExchange.Profiling; - -namespace DotVVM.Tracing.MiniProfiler.AspNetCore -{ - public static class MiniProfilerBuilderExtensions - { - /// - /// Registers MiniProfiler tracer and MiniProfilerWidget - /// - /// - /// - public static IDotvvmOptions AddMiniProfilerEventTracing(this IDotvvmOptions options) - { - options.Services.AddTransient(); - - options.Services.Configure((MiniProfilerOptions opt) => - { - opt.IgnoredPaths.Add("/dotvvmResource/"); - }); - - options.Services.Configure((DotvvmConfiguration conf) => - { - conf.Markup.AddCodeControls("dot", typeof(MiniProfilerWidget)); - conf.Runtime.GlobalFilters.Add( - new MiniProfilerActionFilter(conf.ServiceLocator.GetService>())); - }); - - return options; - } - } - - - -} diff --git a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerTracer.cs b/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerTracer.cs deleted file mode 100644 index ffbf6b764f..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerTracer.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System.Threading.Tasks; -using StackExchange.Profiling; -using DotVVM.Framework.Runtime.Tracing; -using DotVVM.Framework.Hosting; -using DotVVM.Framework.Utils; -using System; - -namespace DotVVM.Tracing.MiniProfiler.AspNetCore -{ - public class MiniProfilerTracer : IRequestTracer - { - private const string endRequestEventName = "RequestEnded"; - private Timing currentTiming; - - public Task EndRequest(IDotvvmRequestContext context) - { - SetEventNameStopCurrentTiming(endRequestEventName); - - return TaskUtils.GetCompletedTask(); - } - - public Task EndRequest(IDotvvmRequestContext context, Exception exception) - { - SetEventNameStopCurrentTiming(endRequestEventName); - - return TaskUtils.GetCompletedTask(); - } - - public Task TraceEvent(string eventName, IDotvvmRequestContext context) - { - SetEventNameStopCurrentTiming(eventName); - - currentTiming = StackExchange.Profiling.MiniProfiler.Current.Step(string.Empty); - return TaskUtils.GetCompletedTask(); - } - - private void SetEventNameStopCurrentTiming(string eventName) - { - if (currentTiming != null) - { - currentTiming.Name = eventName; - currentTiming.Stop(); - } - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerWidget.cs b/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerWidget.cs deleted file mode 100644 index 7f71b09617..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/MiniProfilerWidget.cs +++ /dev/null @@ -1,115 +0,0 @@ -using DotVVM.Framework.Binding; -using DotVVM.Framework.Controls; -using DotVVM.Framework.Hosting; -using StackExchange.Profiling; - -namespace DotVVM.Tracing.MiniProfiler.AspNetCore -{ - public class MiniProfilerWidget : DotvvmControl - { - /// - /// The UI position to render the profiler in (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public RenderPosition? Position - { - get { return (RenderPosition?)GetValue(PositionProperty); } - set { SetValue(PositionProperty, value); } - } - public static readonly DotvvmProperty PositionProperty - = DotvvmProperty.Register(c => c.Position, null); - - /// - /// Whether to show trivial timings column initially or not (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? ShowTrivial - { - get { return (bool?)GetValue(ShowTrivialProperty); } - set { SetValue(ShowTrivialProperty, value); } - } - public static readonly DotvvmProperty ShowTrivialProperty - = DotvvmProperty.Register(c => c.ShowTrivial, null); - - /// - /// Whether to show time with children column initially or not (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? ShowTimeWithChildren - { - get { return (bool?)GetValue(ShowTimeWithChildrenProperty); } - set { SetValue(ShowTimeWithChildrenProperty, value); } - } - public static readonly DotvvmProperty ShowTimeWithChildrenProperty - = DotvvmProperty.Register(c => c.ShowTimeWithChildren, null); - - /// - /// The maximum number of profilers to show (before the oldest is removed - defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public int? MaxTraces - { - get { return (int?)GetValue(MaxTracesProperty); } - set { SetValue(MaxTracesProperty, value); } - } - public static readonly DotvvmProperty MaxTracesProperty - = DotvvmProperty.Register(c => c.MaxTraces, null); - - /// - /// Whether to show the controls (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? ShowControls - { - get { return (bool?)GetValue(ShowControlsProperty); } - set { SetValue(ShowControlsProperty, value); } - } - public static readonly DotvvmProperty ShowControlsProperty - = DotvvmProperty.Register(c => c.ShowControls, null); - - /// - /// Whether to start hidden (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? StartHidden - { - get { return (bool?)GetValue(StartHiddenProperty); } - set { SetValue(StartHiddenProperty, value); } - } - public static readonly DotvvmProperty StartHiddenProperty - = DotvvmProperty.Register(c => c.StartHidden, null); - - protected override void OnPreRender(IDotvvmRequestContext context) - { - context.ResourceManager.AddStartupScript("DotVVM-MiniProfiler-Integration", - @"dotvvm.events.afterPostback.subscribe( - function(arg) { - if(arg.xhr && arg.xhr.getResponseHeader) { - var jsonIds = arg.xhr.getResponseHeader('X-MiniProfiler-Ids'); - if (jsonIds) { - var ids = JSON.parse(jsonIds); - MiniProfiler.fetchResults(ids); - } - } - })", "dotvvm"); - - base.OnPreRender(context); - } - - protected override void RenderControl(IHtmlWriter writer, IDotvvmRequestContext context) - { - var html = StackExchange.Profiling.MiniProfiler.Current.RenderIncludes( - context.GetAspNetCoreContext(), - position: Position, - showTrivial: ShowTrivial, - showTimeWithChildren: ShowTimeWithChildren, - maxTracesToShow: MaxTraces, - showControls: ShowControls, - startHidden: StartHidden); - - writer.WriteUnencodedText(html.ToString()); - - base.RenderControl(writer, context); - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/dotvvmwizard.snk b/src/DotVVM.Tracing.MiniProfiler.AspNetCore/dotvvmwizard.snk deleted file mode 100644 index 34430b3c78..0000000000 Binary files a/src/DotVVM.Tracing.MiniProfiler.AspNetCore/dotvvmwizard.snk and /dev/null differ diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/DotVVM.Tracing.MiniProfiler.Owin.csproj b/src/DotVVM.Tracing.MiniProfiler.Owin/DotVVM.Tracing.MiniProfiler.Owin.csproj deleted file mode 100644 index 67021d766c..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.Owin/DotVVM.Tracing.MiniProfiler.Owin.csproj +++ /dev/null @@ -1,36 +0,0 @@ - - - - DotVVM.Tracing.MiniProfiler.Owin - 2.0.0-pre08 - net451 - $(NoWarn);CS1591 - true - dotvvmwizard.snk - true - true - DotVVM.Tracing.MiniProfiler.Owin - 2.0.0-pre08 - RIGANTI - MiniProfiler Tracing module for OWIN and DotVVM - false - dotvvm;asp.net;mvvm;owin - https://dotvvm.com/Content/images/icons/icon-blue-64x64.png - https://github.com/riganti/dotvvm/blob/master/LICENSE - true - - - - - - - - - - - - - - - - diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/DotVVMProfilerProvider.cs b/src/DotVVM.Tracing.MiniProfiler.Owin/DotVVMProfilerProvider.cs deleted file mode 100644 index 50212568f5..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.Owin/DotVVMProfilerProvider.cs +++ /dev/null @@ -1,42 +0,0 @@ -using StackExchange.Profiling; - -namespace DotVVM.Tracing.MiniProfiler.Owin -{ - public class DotVVMProfilerProvider : IProfilerProvider - { - private IProfilerProvider profileProvider; - - public DotVVMProfilerProvider(IProfilerProvider profileProvider) - { - this.profileProvider = profileProvider; - } - - public StackExchange.Profiling.MiniProfiler GetCurrentProfiler() - { - return profileProvider.GetCurrentProfiler(); - } - - public StackExchange.Profiling.MiniProfiler Start(ProfileLevel level, string sessionName = null) - { - return profileProvider.Start(level, sessionName); - } - - public void Stop(bool discardResults) - { - if (!discardResults) - { - discardResults = EnsureName(); - } - - profileProvider.Stop(discardResults); - } - - private bool EnsureName() - { - var currentMiniProfiler = GetCurrentProfiler(); - - // Exclude all dotvvm Resources - others have some name - return string.IsNullOrEmpty(currentMiniProfiler?.Name); - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerActionFilter.cs b/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerActionFilter.cs deleted file mode 100644 index 08ecbeb3cc..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerActionFilter.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Threading.Tasks; -using DotVVM.Framework.Hosting; -using DotVVM.Framework.Runtime.Filters; -using DotVVM.Framework.Binding.Properties; -using DotVVM.Framework.Binding; -using StackExchange.Profiling; -using Microsoft.Owin; - - -namespace DotVVM.Tracing.MiniProfiler.Owin -{ - public class MiniProfilerActionFilter : ActionFilterAttribute - { - private readonly PathString resultsLink; - - public MiniProfilerActionFilter() - { - var basePath = new PathString( - StackExchange.Profiling.MiniProfiler.Settings.RouteBasePath.Replace("~/", "/")); - - resultsLink = basePath.Add(new PathString("/results-index")); - } - - protected override Task OnPageLoadedAsync(IDotvvmRequestContext context) - { - // Naming for PostBack occurs in method OnCommandExecutingAsync - // We don't want to override it with less information - if (!context.IsPostBack) - { - AddMiniProfilerName(context, context.HttpContext.Request.Url.AbsoluteUri); - } - - return base.OnPageLoadedAsync(context); - } - - protected override Task OnCommandExecutingAsync(IDotvvmRequestContext context, ActionInfo actionInfo) - { - var commandCode = actionInfo.Binding - ?.GetProperty(Framework.Binding.Expressions.ErrorHandlingMode.ReturnNull)?.Code; - - AddMiniProfilerName(context, context.HttpContext.Request.Url.AbsoluteUri, - $"(PostBack {commandCode})"); - - return base.OnCommandExecutingAsync(context, actionInfo); - } - - private void AddMiniProfilerName(IDotvvmRequestContext context, params string[] nameParts) - { - var currentMiniProfiler = StackExchange.Profiling.MiniProfiler.Current; - - if (currentMiniProfiler != null) - { - currentMiniProfiler.AddCustomLink("results", resultsLink.ToString()); - currentMiniProfiler.Name = string.Join(" ", nameParts); - } - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerBuilderExtensions.cs b/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerBuilderExtensions.cs deleted file mode 100644 index 7168a0bffd..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerBuilderExtensions.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using DotVVM.Framework.Configuration; -using DotVVM.Framework.Runtime.Tracing; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; -using StackExchange.Profiling; - -namespace DotVVM.Tracing.MiniProfiler.Owin -{ - public static class MiniProfilerBuilderExtensions - { - /// - /// Registers MiniProfiler tracer and MiniProfilerWidget - /// - /// - /// - public static IDotvvmOptions AddMiniProfilerEventTracing(this IDotvvmOptions options) - { - options.Services.AddTransient(); - options.Services.AddTransient, MiniProfilerSetup>(); - - return options; - } - } - - internal class MiniProfilerSetup : IConfigureOptions - { - public void Configure(DotvvmConfiguration config) - { - config.Markup.AddCodeControls("dot", typeof(MiniProfilerWidget)); - config.Runtime.GlobalFilters.Add(new MiniProfilerActionFilter()); - - var currentProfiler = StackExchange.Profiling.MiniProfiler.Settings.ProfilerProvider - ?? new WebRequestProfilerProvider(); - - StackExchange.Profiling.MiniProfiler.Settings.ProfilerProvider = new DotVVMProfilerProvider(currentProfiler); - } - } - -} diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerTracer.cs b/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerTracer.cs deleted file mode 100644 index c5daba74b7..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerTracer.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System.Threading.Tasks; -using DotVVM.Framework.Runtime.Tracing; -using DotVVM.Framework.Hosting; -using DotVVM.Framework.Utils; -using System; -using StackExchange.Profiling; - -namespace DotVVM.Tracing.MiniProfiler.Owin -{ - public class MiniProfilerTracer : IRequestTracer - { - private const string endRequestEventName = "RequestEnded"; - private Timing currentTiming; - - public Task EndRequest(IDotvvmRequestContext context) - { - SetEventNameStopCurrentTiming(endRequestEventName); - StackExchange.Profiling.MiniProfiler.Stop(); - - return TaskUtils.GetCompletedTask(); - } - - public Task EndRequest(IDotvvmRequestContext context, Exception exception) - { - SetEventNameStopCurrentTiming(endRequestEventName); - StackExchange.Profiling.MiniProfiler.Stop(); - - return TaskUtils.GetCompletedTask(); - } - - public Task TraceEvent(string eventName, IDotvvmRequestContext context) - { - if (StackExchange.Profiling.MiniProfiler.Current == null) - { - StackExchange.Profiling.MiniProfiler.Start(); - } - - SetEventNameStopCurrentTiming(eventName); - - currentTiming = (Timing)StackExchange.Profiling.MiniProfiler.Current.Step(string.Empty); - return TaskUtils.GetCompletedTask(); - } - - private void SetEventNameStopCurrentTiming(string eventName) - { - if (currentTiming != null) - { - currentTiming.Name = eventName; - currentTiming.Stop(); - } - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerWidget.cs b/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerWidget.cs deleted file mode 100644 index d0ab5a127e..0000000000 --- a/src/DotVVM.Tracing.MiniProfiler.Owin/MiniProfilerWidget.cs +++ /dev/null @@ -1,114 +0,0 @@ -using DotVVM.Framework.Binding; -using DotVVM.Framework.Controls; -using DotVVM.Framework.Hosting; -using StackExchange.Profiling; - -namespace DotVVM.Tracing.MiniProfiler.Owin -{ - public class MiniProfilerWidget : DotvvmControl - { - /// - /// The UI position to render the profiler in (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public RenderPosition? Position - { - get { return (RenderPosition?)GetValue(PositionProperty); } - set { SetValue(PositionProperty, value); } - } - public static readonly DotvvmProperty PositionProperty - = DotvvmProperty.Register(c => c.Position, null); - - /// - /// Whether to show trivial timings column initially or not (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? ShowTrivial - { - get { return (bool?)GetValue(ShowTrivialProperty); } - set { SetValue(ShowTrivialProperty, value); } - } - public static readonly DotvvmProperty ShowTrivialProperty - = DotvvmProperty.Register(c => c.ShowTrivial, null); - - /// - /// Whether to show time with children column initially or not (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? ShowTimeWithChildren - { - get { return (bool?)GetValue(ShowTimeWithChildrenProperty); } - set { SetValue(ShowTimeWithChildrenProperty, value); } - } - public static readonly DotvvmProperty ShowTimeWithChildrenProperty - = DotvvmProperty.Register(c => c.ShowTimeWithChildren, null); - - /// - /// The maximum number of profilers to show (before the oldest is removed - defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public int? MaxTraces - { - get { return (int?)GetValue(MaxTracesProperty); } - set { SetValue(MaxTracesProperty, value); } - } - public static readonly DotvvmProperty MaxTracesProperty - = DotvvmProperty.Register(c => c.MaxTraces, null); - - /// - /// Whether to show the controls (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? ShowControls - { - get { return (bool?)GetValue(ShowControlsProperty); } - set { SetValue(ShowControlsProperty, value); } - } - public static readonly DotvvmProperty ShowControlsProperty - = DotvvmProperty.Register(c => c.ShowControls, null); - - /// - /// Whether to start hidden (defaults to ). - /// - [MarkupOptions(AllowBinding = false)] - public bool? StartHidden - { - get { return (bool?)GetValue(StartHiddenProperty); } - set { SetValue(StartHiddenProperty, value); } - } - public static readonly DotvvmProperty StartHiddenProperty - = DotvvmProperty.Register(c => c.StartHidden, null); - - protected override void OnPreRender(IDotvvmRequestContext context) - { - context.ResourceManager.AddStartupScript("DotVVM-MiniProfiler-Integration", - @"dotvvm.events.afterPostback.subscribe( - function(arg) { - if(arg.xhr && arg.xhr.getResponseHeader) { - var jsonIds = arg.xhr.getResponseHeader('X-MiniProfiler-Ids'); - if (jsonIds) { - var ids = JSON.parse(jsonIds); - MiniProfiler.fetchResults(ids); - } - } - })", "dotvvm"); - - base.OnPreRender(context); - } - - protected override void RenderControl(IHtmlWriter writer, IDotvvmRequestContext context) - { - var html = StackExchange.Profiling.MiniProfiler.RenderIncludes( - position: Position, - showTrivial: ShowTrivial, - showTimeWithChildren: ShowTimeWithChildren, - maxTracesToShow: MaxTraces, - showControls: ShowControls, - startHidden: StartHidden); - - writer.WriteUnencodedText(html.ToString()); - - base.RenderControl(writer, context); - } - } -} diff --git a/src/DotVVM.Tracing.MiniProfiler.Owin/dotvvmwizard.snk b/src/DotVVM.Tracing.MiniProfiler.Owin/dotvvmwizard.snk deleted file mode 100644 index 34430b3c78..0000000000 Binary files a/src/DotVVM.Tracing.MiniProfiler.Owin/dotvvmwizard.snk and /dev/null differ diff --git a/src/DotVVM.sln b/src/DotVVM.sln index 4623207f0e..09f52a3b90 100644 --- a/src/DotVVM.sln +++ b/src/DotVVM.sln @@ -55,24 +55,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Framework.Tests.Comm EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{85FD5610-F03A-4BB7-806E-5EE790042331}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Samples.ApplicationInsights.AspNetCore", "DotVVM.Samples.ApplicationInsights.AspNetCore\DotVVM.Samples.ApplicationInsights.AspNetCore.csproj", "{AD27EAF9-54C0-44A4-9128-EFDC63E547FB}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Samples.ApplicationInsights.Owin", "DotVVM.Samples.ApplicationInsights.Owin\DotVVM.Samples.ApplicationInsights.Owin.csproj", "{85617AC0-D0A5-40B8-8C81-4B13877E7837}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Tracing.ApplicationInsights", "DotVVM.Tracing.ApplicationInsights\DotVVM.Tracing.ApplicationInsights.csproj", "{5367A0F4-B8FE-426A-8390-BBCE98FFC221}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Tracing.MiniProfiler.AspNetCore", "DotVVM.Tracing.MiniProfiler.AspNetCore\DotVVM.Tracing.MiniProfiler.AspNetCore.csproj", "{2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Samples.MiniProfiler.AspNetCore", "DotVVM.Samples.MiniProfiler.AspNetCore\DotVVM.Samples.MiniProfiler.AspNetCore.csproj", "{DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Tracing.MiniProfiler.Owin", "DotVVM.Tracing.MiniProfiler.Owin\DotVVM.Tracing.MiniProfiler.Owin.csproj", "{4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Samples.MiniProfiler.Owin", "DotVVM.Samples.MiniProfiler.Owin\DotVVM.Samples.MiniProfiler.Owin.csproj", "{24B04C26-27FB-423A-813D-662B5176F836}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Tracing.ApplicationInsights.AspNetCore", "DotVVM.Tracing.ApplicationInsights.AspNetCore\DotVVM.Tracing.ApplicationInsights.AspNetCore.csproj", "{4D712088-BA42-404B-9A1D-15032A2B3513}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Tracing.ApplicationInsights.Owin", "DotVVM.Tracing.ApplicationInsights.Owin\DotVVM.Tracing.ApplicationInsights.Owin.csproj", "{E25432DB-B173-4ED4-96A5-E60DF440DE49}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EmbeddedResourceControls", "EmbeddedResourceControls\EmbeddedResourceControls.csproj", "{98CCF245-78EB-48B3-8F07-4A5FA33EB100}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Compiler", "DotVVM.Compiler\DotVVM.Compiler.csproj", "{8DDED351-D2FF-426C-BD12-5B5B67D04F48}" @@ -87,17 +69,17 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Samples.BasicSamples EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Swagger", "Swagger", "{BA93154A-93F1-4302-A994-824693AE7C46}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Framework.Api.Swashbuckle.AspNetCore", "DotVVM.Framework.Api.Swashbuckle.AspNetCore\DotVVM.Framework.Api.Swashbuckle.AspNetCore.csproj", "{C64B2831-5DB2-4E4A-B3ED-58FEE8790A02}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Framework.Api.Swashbuckle.AspNetCore", "DotVVM.Framework.Api.Swashbuckle.AspNetCore\DotVVM.Framework.Api.Swashbuckle.AspNetCore.csproj", "{C64B2831-5DB2-4E4A-B3ED-58FEE8790A02}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Framework.Api.Swashbuckle.Owin", "DotVVM.Framework.Api.Swashbuckle.Owin\DotVVM.Framework.Api.Swashbuckle.Owin.csproj", "{54AECFE5-AF60-425E-A022-8233D276D3C6}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Samples.BasicSamples.Api.Owin", "DotVVM.Samples.BasicSamples.Api.Owin\DotVVM.Samples.BasicSamples.Api.Owin.csproj", "{5B5B07E7-BC20-4168-BE55-CF9414575D47}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Samples.BasicSamples.Api.Common", "DotVVM.Samples.BasicSamples.Api.Common\DotVVM.Samples.BasicSamples.Api.Common.csproj", "{E6072462-B15A-4C3E-B3DC-61859DAFB1AF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Samples.BasicSamples.Api.Common", "DotVVM.Samples.BasicSamples.Api.Common\DotVVM.Samples.BasicSamples.Api.Common.csproj", "{E6072462-B15A-4C3E-B3DC-61859DAFB1AF}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Framework.Api.Swashbuckle.Owin.Tests", "DotVVM.Framework.Api.Swashbuckle.Owin.Tests\DotVVM.Framework.Api.Swashbuckle.Owin.Tests.csproj", "{CDAA2A06-2070-4F85-BD35-8C910013FB77}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests", "DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests\DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests.csproj", "{7E3DCB6E-CEE8-4760-B19A-E23250DB7CC1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests", "DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests\DotVVM.Framework.Api.Swashbuckle.AspNetCore.Tests.csproj", "{7E3DCB6E-CEE8-4760-B19A-E23250DB7CC1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -309,114 +291,6 @@ Global {336EC89B-A12B-4519-B66A-0A0C2F6BBA41}.Release|x64.Build.0 = Release|Any CPU {336EC89B-A12B-4519-B66A-0A0C2F6BBA41}.Release|x86.ActiveCfg = Release|Any CPU {336EC89B-A12B-4519-B66A-0A0C2F6BBA41}.Release|x86.Build.0 = Release|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Debug|x64.ActiveCfg = Debug|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Debug|x64.Build.0 = Debug|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Debug|x86.ActiveCfg = Debug|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Debug|x86.Build.0 = Debug|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Release|Any CPU.Build.0 = Release|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Release|x64.ActiveCfg = Release|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Release|x64.Build.0 = Release|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Release|x86.ActiveCfg = Release|Any CPU - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB}.Release|x86.Build.0 = Release|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Debug|Any CPU.Build.0 = Debug|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Debug|x64.ActiveCfg = Debug|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Debug|x64.Build.0 = Debug|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Debug|x86.ActiveCfg = Debug|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Debug|x86.Build.0 = Debug|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Release|Any CPU.ActiveCfg = Release|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Release|Any CPU.Build.0 = Release|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Release|x64.ActiveCfg = Release|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Release|x64.Build.0 = Release|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Release|x86.ActiveCfg = Release|Any CPU - {85617AC0-D0A5-40B8-8C81-4B13877E7837}.Release|x86.Build.0 = Release|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Debug|x64.ActiveCfg = Debug|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Debug|x64.Build.0 = Debug|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Debug|x86.ActiveCfg = Debug|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Debug|x86.Build.0 = Debug|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Release|Any CPU.Build.0 = Release|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Release|x64.ActiveCfg = Release|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Release|x64.Build.0 = Release|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Release|x86.ActiveCfg = Release|Any CPU - {5367A0F4-B8FE-426A-8390-BBCE98FFC221}.Release|x86.Build.0 = Release|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Debug|x64.ActiveCfg = Debug|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Debug|x64.Build.0 = Debug|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Debug|x86.ActiveCfg = Debug|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Debug|x86.Build.0 = Debug|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Release|Any CPU.Build.0 = Release|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Release|x64.ActiveCfg = Release|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Release|x64.Build.0 = Release|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Release|x86.ActiveCfg = Release|Any CPU - {2AC2855D-A5E5-441F-B9CE-E37AD1AF445C}.Release|x86.Build.0 = Release|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Debug|x64.ActiveCfg = Debug|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Debug|x64.Build.0 = Debug|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Debug|x86.ActiveCfg = Debug|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Debug|x86.Build.0 = Debug|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Release|Any CPU.Build.0 = Release|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Release|x64.ActiveCfg = Release|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Release|x64.Build.0 = Release|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Release|x86.ActiveCfg = Release|Any CPU - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F}.Release|x86.Build.0 = Release|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Debug|x64.ActiveCfg = Debug|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Debug|x64.Build.0 = Debug|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Debug|x86.ActiveCfg = Debug|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Debug|x86.Build.0 = Debug|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Release|Any CPU.Build.0 = Release|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Release|x64.ActiveCfg = Release|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Release|x64.Build.0 = Release|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Release|x86.ActiveCfg = Release|Any CPU - {4E5F1D3C-2C80-4A2D-BBE2-0877093619A3}.Release|x86.Build.0 = Release|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Debug|Any CPU.Build.0 = Debug|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Debug|x64.ActiveCfg = Debug|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Debug|x64.Build.0 = Debug|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Debug|x86.ActiveCfg = Debug|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Debug|x86.Build.0 = Debug|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Release|Any CPU.ActiveCfg = Release|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Release|Any CPU.Build.0 = Release|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Release|x64.ActiveCfg = Release|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Release|x64.Build.0 = Release|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Release|x86.ActiveCfg = Release|Any CPU - {24B04C26-27FB-423A-813D-662B5176F836}.Release|x86.Build.0 = Release|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Debug|x64.ActiveCfg = Debug|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Debug|x64.Build.0 = Debug|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Debug|x86.ActiveCfg = Debug|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Debug|x86.Build.0 = Debug|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Release|Any CPU.Build.0 = Release|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Release|x64.ActiveCfg = Release|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Release|x64.Build.0 = Release|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Release|x86.ActiveCfg = Release|Any CPU - {4D712088-BA42-404B-9A1D-15032A2B3513}.Release|x86.Build.0 = Release|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Debug|x64.ActiveCfg = Debug|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Debug|x64.Build.0 = Debug|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Debug|x86.ActiveCfg = Debug|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Debug|x86.Build.0 = Debug|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Release|Any CPU.Build.0 = Release|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Release|x64.ActiveCfg = Release|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Release|x64.Build.0 = Release|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Release|x86.ActiveCfg = Release|Any CPU - {E25432DB-B173-4ED4-96A5-E60DF440DE49}.Release|x86.Build.0 = Release|Any CPU {98CCF245-78EB-48B3-8F07-4A5FA33EB100}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {98CCF245-78EB-48B3-8F07-4A5FA33EB100}.Debug|Any CPU.Build.0 = Debug|Any CPU {98CCF245-78EB-48B3-8F07-4A5FA33EB100}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -578,10 +452,6 @@ Global {7FEC151D-6B54-4B6B-921E-590B9E11D650} = {B760209E-57D7-4AEF-A726-69F73BBE52C0} {0F9076E3-72DE-4D1D-83DE-5A828B71DB58} = {469DD245-D8BF-4927-92C2-827FDDC3B138} {336EC89B-A12B-4519-B66A-0A0C2F6BBA41} = {B760209E-57D7-4AEF-A726-69F73BBE52C0} - {AD27EAF9-54C0-44A4-9128-EFDC63E547FB} = {13011738-A4B3-47B0-9E50-C0323EB19F76} - {85617AC0-D0A5-40B8-8C81-4B13877E7837} = {13011738-A4B3-47B0-9E50-C0323EB19F76} - {DE66FE2B-1CD5-4050-9A15-3AE1E88A621F} = {13011738-A4B3-47B0-9E50-C0323EB19F76} - {24B04C26-27FB-423A-813D-662B5176F836} = {13011738-A4B3-47B0-9E50-C0323EB19F76} {98CCF245-78EB-48B3-8F07-4A5FA33EB100} = {13011738-A4B3-47B0-9E50-C0323EB19F76} {0E656576-9BF6-442B-8714-775276396B6B} = {B760209E-57D7-4AEF-A726-69F73BBE52C0} {126C5346-0437-48B0-A8B7-8BE46F963C6D} = {B760209E-57D7-4AEF-A726-69F73BBE52C0}