Skip to content

Instantly share code, notes, and snippets.

@revocengiz
Created January 7, 2019 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revocengiz/d4f1e85a579188e0fb87a399b1e0ac7e to your computer and use it in GitHub Desktop.
Save revocengiz/d4f1e85a579188e0fb87a399b1e0ac7e to your computer and use it in GitHub Desktop.
using System.IO;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
namespace WebApplication1
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseUrls("http://localhost:5055")
.UseStartup<Startup>();
public class Startup
{
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.Run(async (context) =>
{
// Herhangi bir şey dönmeyecek kodunu buraya ekle
await context.Response.WriteAsync("İşlem tamamlandı.");
});
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment