Skip to content

Instantly share code, notes, and snippets.

@alistair
Last active November 24, 2015 00:30
Show Gist options
  • Save alistair/73bbd908b6464066e93d to your computer and use it in GitHub Desktop.
Save alistair/73bbd908b6464066e93d to your computer and use it in GitHub Desktop.
POST /addtoproject HTTP/1.1
Accept-Encoding: identity
Content-Length: 1798
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "33", "buffer": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNet.Builder;\r\nusing Microsoft.AspNet.Hosting;\r\nusing Microsoft.Extensions.Configuration;\r\nusing Microsoft.Ext
ensions.DependencyInjection;\r\nusing Microsoft.Extensions.Logging;\r\n\r\nnamespace account\r\n{\r\n public class Startup\r\n {\r\n public Startup(IHostingEnvironment env)\r\n {\r\n // Set up configuration sources.\r\n var build
er = new ConfigurationBuilder()\r\n .AddJsonFile(\"appsettings.json\")\r\n .AddEnvironmentVariables();\r\n Configuration = builder.Build();\r\n }\r\n\r\n public IConfigurationRoot Configuration { get; set; }\r\n\r\n
// This method gets called by the runtime. Use this method to add services to the container.\r\n public void ConfigureServices(IServiceCollection services)\r\n {\r\n // Add framework services.\r\n services.AddMvc();\r\n }
\r\n\r\n // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r\n public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\r\n {\r\n loggerFactory.A
ddConsole(Configuration.GetSection(\"Logging\"));\r\n loggerFactory.AddDebug();\r\n\r\n app.UseStaticFiles();\r\n\r\n app.UseMvc();\r\n }\r\n\r\n // Entry point for the application.\r\n public static void Main(string[
] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);\r\n }\r\n}", "line": "39", "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs"}
POST /autocomplete HTTP/1.1
Accept-Encoding: identity
Content-Length: 1892
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "17", "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs", "buffer": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNet.Builder;\r\nusing Microsoft.AspNet.Hosting;\r\nusing Microsoft.Extensions.Configuration;\r\nusing Microsoft.Extensions.DependencyInjection;\r\nusing Microsoft.Extensions.Logging;\r\n\r\nnamespace account\r\n{\r\n public class Startup\r\n {\r\n public Startup(IHostingEnvironment env)\r\n {\r\n // Set up configuration sources.\r\n var builder = new ConfigurationBuilder()\r\n .AddJsonFile(\"appsettings.json\")\r\n .AddEnvironmentVariables();\r\n Configuration = builder.Build();\r\n }\r\n\r\n public IConfigurationRoot Configuration { get; set; }\r\n\r\n // This method gets called by the runtime. Use this method to add services to the container.\r\n public void ConfigureServices(IServiceCollection services)\r\n {\r\n /
/ Add framework services.\r\n services.AddMvc();\r\n }\r\n\r\n // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r\n public void Configure(IApplicationBuilder app, IHostingEnvironment env, I
LoggerFactory loggerFactory)\r\n {\r\n loggerFactory.AddConsole(Configuration.GetSection(\"Logging\"));\r\n loggerFactory.AddDebug();\r\n\r\n app.UseStaticFiles();\r\n\r\n app.UseMvc();\r\n app.\r\n }\r
\n\r\n // Entry point for the application.\r\n public static void Main(string[] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);\r\n }\r\n}", "WantDocumentationForEveryCompletionResult": false, "line": "42", "wordToComplete": ""}
HTTP/1.1 200 OK
Connection: close
[
{
"CompletionText":"ApplicationServices",
"Description":null,
"DisplayText":"ApplicationServices",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Build",
"Description":null,
"DisplayText":"Build()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Equals",
"Description":null,
"DisplayText":"Equals(object obj)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"GetHashCode",
"Description":null,
"DisplayText":"GetHashCode()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"GetType",
"Description":null,
"DisplayText":"GetType()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Map",
"Description":null,
"DisplayText":"Map(PathString pathMatch, Action<IApplicationBuilder> configuration)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"MapWhen",
"Description":null,
"DisplayText":"MapWhen(Func<HttpContext, bool> predicate, Action<IApplicationBuilder> configuration)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"New",
"Description":null,
"DisplayText":"New()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Properties",
"Description":null,
"DisplayText":"Properties",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Run",
"Description":null,
"DisplayText":"Run(RequestDelegate handler)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"ServerFeatures",
"Description":null,
"DisplayText":"ServerFeatures",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"ToString",
"Description":null,
"DisplayText":"ToString()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Use",
"Description":null,
"DisplayText":"Use(Func<RequestDelegate, RequestDelegate> middleware)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"Use",
"Description":null,
"DisplayText":"Use(Func<HttpContext, Func<Task>, Task> middleware)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseCors",
"Description":null,
"DisplayText":"UseCors(string policyName)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseCors",
"Description":null,
"DisplayText":"UseCors(Action<CorsPolicyBuilder> configurePolicy)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseDefaultFiles",
"Description":null,
"DisplayText":"UseDefaultFiles()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseDefaultFiles",
"Description":null,
"DisplayText":"UseDefaultFiles(string requestPath)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseDefaultFiles",
"Description":null,
"DisplayText":"UseDefaultFiles(DefaultFilesOptions options)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseDirectoryBrowser",
"Description":null,
"DisplayText":"UseDirectoryBrowser()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseDirectoryBrowser",
"Description":null,
"DisplayText":"UseDirectoryBrowser(string requestPath)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseDirectoryBrowser",
"Description":null,
"DisplayText":"UseDirectoryBrowser(DirectoryBrowserOptions options)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseFileServer",
"Description":null,
"DisplayText":"UseFileServer()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseFileServer",
"Description":null,
"DisplayText":"UseFileServer(bool enableDirectoryBrowsing)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseFileServer",
"Description":null,
"DisplayText":"UseFileServer(string requestPath)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseFileServer",
"Description":null,
"DisplayText":"UseFileServer(FileServerOptions options)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseMiddleware",
"Description":null,
"DisplayText":"UseMiddleware<TMiddleware>(params object[] args)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseMiddleware",
"Description":null,
"DisplayText":"UseMiddleware(Type middleware, params object[] args)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseMvc",
"Description":null,
"DisplayText":"UseMvc()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseMvc",
"Description":null,
"DisplayText":"UseMvc(Action<IRouteBuilder> configureRoutes)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseMvcWithDefaultRoute",
"Description":null,
"DisplayText":"UseMvcWithDefaultRoute()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseRequestLocalization",
"Description":null,
"DisplayText":"UseRequestLocalization(RequestCulture defaultRequestCulture)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseRequestLocalization",
"Description":null,
"DisplayText":"UseRequestLocalization(RequestLocalizationOptions options, RequestCulture defaultRequestCulture)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseRouter",
"Description":null,
"DisplayText":"UseRouter(IRouter router)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseStaticFiles",
"Description":null,
"DisplayText":"UseStaticFiles()",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseStaticFiles",
"Description":null,
"DisplayText":"UseStaticFiles(string requestPath)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
},
{
"CompletionText":"UseStaticFiles",
"Description":null,
"DisplayText":"UseStaticFiles(StaticFileOptions options)",
"RequiredNamespaceImport":null,
"MethodHeader":null,
"ReturnType":null,
"Snippet":null,
"Kind":null
}
]
POST /checkalivestatus HTTP/1.1
Accept-Encoding: identity
Content-Length: 1861
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "1", "buffer": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNet.Builder;\r\nusing Microsoft.AspNet.Hosting;\r\nusing Microsoft.Extensions.Configuration;\r\nusing Microsoft.Extensions.DependencyInjection;\r\nusing Microsoft.Extensions.Logging;\r\n\r\nnamespace account\r\n{\r\n public class Startup\r\n {\r\n public Startup(IHostingEnvironment env)\r\n {\r\n // Set up configuration sources.\r\n var builder = new ConfigurationBuilder()\r\n .AddJsonFile(\"appsettings.json\")\r\n .AddEnvironmentVariables();\r\n Configuration = builder.Build();\r\n }\r\n\r\n public IConfigurationRoot Configuration { get; set; }\r\n\r\n // This method gets called by the runtime. Use this method to add services to the container.\r\n public void ConfigureServices(IServiceCollection services)\r\n {\r\n // Add framework services.\r\n services.AddMvc();\r\n \r\n }\r\n\r\n // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r\n public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\r\n {\r\n loggerFactory.AddConsole(Configuration.GetSection(\"Logging\"));\r\n loggerFactory.AddDebug();\r\n\r\n app.UseIISPlatformHandler();\r\n\r\n app.UseStaticFiles();\r\n\r\n app.UseMvc();\r\n }\r\n\r\n // Entry point for the application.\r\n public static void Main(string[] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);\r\n }\r\n}", "line": "25", "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs"}
POST /codecheck HTTP/1.1
Accept-Encoding: identity
Content-Length: 1798
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "33", "buffer": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNet.Builder;\r\nusing Microsoft.AspNet.Hosting;\r\nusing Microsoft.Extensions.Configuration;\r\nusing Microsoft.Ext
ensions.DependencyInjection;\r\nusing Microsoft.Extensions.Logging;\r\n\r\nnamespace account\r\n{\r\n public class Startup\r\n {\r\n public Startup(IHostingEnvironment env)\r\n {\r\n // Set up configuration sources.\r\n var build
er = new ConfigurationBuilder()\r\n .AddJsonFile(\"appsettings.json\")\r\n .AddEnvironmentVariables();\r\n Configuration = builder.Build();\r\n }\r\n\r\n public IConfigurationRoot Configuration { get; set; }\r\n\r\n
// This method gets called by the runtime. Use this method to add services to the container.\r\n public void ConfigureServices(IServiceCollection services)\r\n {\r\n // Add framework services.\r\n services.AddMvc();\r\n }
\r\n\r\n // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r\n public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\r\n {\r\n loggerFactory.A
ddConsole(Configuration.GetSection(\"Logging\"));\r\n loggerFactory.AddDebug();\r\n\r\n app.UseStaticFiles();\r\n\r\n app.UseMvc();\r\n }\r\n\r\n // Entry point for the application.\r\n public static void Main(string[
] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);\r\n }\r\n}", "line": "39", "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs"}
HTTP/1.1 200 OK
Connection: close
{"QuickFixes":[{"LogLevel":"Hidden","FileName":"/home/alistair/projects/vnext.poc/src/account/Startup.cs","Line":2,"Column":1,"EndLine":2,"EndColumn":34,"Text":"Unnecessary using directive.","Projects":["account+dnx451","account+dnxcore50"]},{"LogLevel":"Hidden",
"FileName":"/home/alistair/projects/vnext.poc/src/account/Startup.cs","Line":4,"Column":1,"EndLine":4,"EndColumn":30,"Text":"Unnecessary using directive.","Projects":["account+dnx451","account+dnxcore50"]},{"LogLevel":"Hidden","FileName":"/home/alistair/projects/vnext.po
c/src/account/Startup.cs","Line":1,"Column":1,"EndLine":1,"EndColumn":14,"Text":"Unnecessary using directive.","Projects":["account+dnx451","account+dnxcore50"]},{"LogLevel":"Hidden","FileName":"/home/alistair/projects/vnext.poc/src/account/Startup.cs","Line":3,"Column":
1,"EndLine":3,"EndColumn":19,"Text":"Unnecessary using directive.","Projects":["account+dnx451","account+dnxcore50"]}]}
POST /getcodeactions HTTP/1.1
Accept-Encoding: identity
Content-Length: 1798
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "25", "buffer": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNet.Builder;\r\nusing Microsoft.AspNet.Hosting;\r\nusing Microsoft.Extensions.Configuration;\r\nusing Microsoft.Extensions.DependencyInjection;\r\nusing Microsoft.Extensions.Logging;\r\n\r\nnamespace account\r\n{\r\n public class Startup\r\n {\r\n public Startup(IHostingEnvironment env)\r\n {\r\n // Set up configuration sources.\r\n var builder = new ConfigurationBuilder()\r\n .AddJsonFile(\"appsettings.json\")\r\n .AddEnvironmentVariables();\r\n Configuration = builder.Build();\r\n }\r\n\r\n public IConfigurationRoot Configuration { get; set; }\r\n\r\n // This method gets called by the runtime. Use this method to add services to the container.\r\n public void ConfigureServices(IServiceCollection services)\r\n {\r\n // Add framework services.\r\n services.AddMvc();\r\n }\r\n\r\n // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r\n public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\r\n {\r\n loggerFactory.AddConsole(Configuration.GetSection(\"Logging\"));\r\n loggerFactory.AddDebug();\r\n\r\n app.UseStaticFiles();\r\n\r\n app.UseMvc();\r\n }\r\n\r\n // Entry point for the application.\r\n public static void Main(string[] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);\r\n }\r\n}", "line": "41", "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs"}
HTTP/1.1 200 OK
Connection: close
{"CodeActions":["Declare local variable","Extract Method"]}
POST /runcodeaction HTTP/1.1
Accept-Encoding: identity
Content-Length: 1815
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "13", "buffer": "using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace account
{
public class Startup
{
public Startup(IHostingEnvironment env)
{
// Set up configuration sources.
var build
er = new ConfigurationBuilder()
.AddJsonFile(\"appsettings.json\")
.AddEnvironmentVariables();
Configuration = builder.Build();
}
public IConfigurationRoot Configuration { get; set; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddMvc();
}
// 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(Configuration.GetSection(\"Logging\"));
loggerFactory.AddDebug();
app.UseStaticFiles();
app.UseMvc();
}
// Entry point for the application.
public static void Main(string[] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);
}
}", "line": "30", "codeaction": 1, "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs"}
HTTP/1.1 200 OK
Connection: close
{"Text":"using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace account
{
public class Startup
{
public Startup(IHostingEnvironment env)
{
// Set up configuration sources.
var builder = new ConfigurationBuilder()
.AddJsonFile(\"appsettings.json\")
.AddEnvironmentVariables();
Configuration = builder.Build();
}
public IConfigurationRoot Configuration { get; set; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
MvcServiceCollectionExtensions.AddMvc(services);
}
// 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(Configuration.GetSection(\"Logging\"));
loggerFactory.AddDebug();
app.UseStaticFiles();
app.UseMvc();
}
// Entry point for the application.
public static void Main(string[] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);
}
}","Changes":null}
POST /typelookup HTTP/1.1
Accept-Encoding: identity
Content-Length: 1831
Host: localhost:2000
Content-Type: application/json
Connection: close
User-Agent: Python-urllib/2.7
{"column": "33", "buffer": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNet.Builder;\r\nusing Microsoft.AspNet.Hosting;\r\nusing Microsoft.Extensions.Configuration;\r\nusing Microsoft.Ext
ensions.DependencyInjection;\r\nusing Microsoft.Extensions.Logging;\r\n\r\nnamespace account\r\n{\r\n public class Startup\r\n {\r\n public Startup(IHostingEnvironment env)\r\n {\r\n // Set up configuration sources.\r\n var build
er = new ConfigurationBuilder()\r\n .AddJsonFile(\"appsettings.json\")\r\n .AddEnvironmentVariables();\r\n Configuration = builder.Build();\r\n }\r\n\r\n public IConfigurationRoot Configuration { get; set; }\r\n\r\n
// This method gets called by the runtime. Use this method to add services to the container.\r\n public void ConfigureServices(IServiceCollection services)\r\n {\r\n // Add framework services.\r\n services.AddMvc();\r\n }
\r\n\r\n // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\r\n public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\r\n {\r\n loggerFactory.AddConsole(Configuration.GetSection(\"Logging\"));\r\n loggerFactory.AddDebug();\r\n\r\n app.UseStaticFiles();\r\n\r\n app.UseMvc();\r\n }\r\n\r\n // Entry point for the application.\r\n public static void Main(string[] args) => Microsoft.AspNet.Hosting.WebApplication.Run<Startup>(args);\r\n }\r\n}", "line": "39", "includeDocumentation": "False", "filename": "/home/alistair/projects/vnext.poc/src/account/Startup.cs"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment