repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using AWS.Deploy.Orchestration.Utilities;
namespace AWS.Deploy... | 38 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Collections.Generic;
using System.IO;
using AWS.Deploy.Common.IO;
using System.Linq;
namespace AWS.Deploy.Orchestration.UnitTests
{
public class TestDirectoryManager : IDirectory... | 56 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using AWS.Deploy.Common.IO;
namespace AWS.Deploy.Orc... | 65 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Threading.Tasks;
using AWS.Deploy.Common.IO;
using AWS.Deploy.Orchestration.CDK;
using AWS.Deploy.Orchestration.Utilities;
using Xunit;
namespace AWS.Deploy.Orchestration.UnitTests.C... | 86 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Threading.Tasks;
using AWS.Deploy.Orchestration.CDK;
using AWS.Deploy.Orchestration.Utilities;
using Moq;
using Xunit;
namespace AWS.Deploy.Orchestration.UnitTests.CDK
{
public c... | 98 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Threading.Tasks;
using AWS.Deploy.Common.IO;
using AWS.Deploy.Orchestration.CDK;
using AWS.Deploy.Orchestration.Data;
using AWS.Deploy.Orchestration.Utilities;
using Moq;
using Xunit;... | 161 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System.IO;
using System.Linq;
using AWS.Deploy.Orchestration.CDK;
using Xunit;
namespace AWS.Deploy.Orchestration.UnitTests.CDK
{
public class CDKVersionDetectorTests
{
private readonly I... | 45 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.IO;
using System.Threading.Tasks;
using AWS.Deploy.CLI;
using AWS.Deploy.CLI.Common.UnitTests.IO;
using AWS.Deploy.Orchestration.CDK;
using Moq;
using Xunit;
namespace AWS.Deploy.Orc... | 94 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
// SPDX-License-Identifier: Apache-2.0
using System;
using System.IO;
using System.Reflection;
namespace AWS.Deploy.Orchestration.UnitTests.Utilities
{
internal static class SystemIOUtilities
{
public static string ResolvePath(str... | 25 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System.Collections.Generic;
namespace AWS.Deploy.Orchestration.UnitTests.Utilities
{
public class TestToolOrchestratorInteractiveService : IOrchestratorInteractiveService
{
public IList<s... | 21 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using AWS.Deploy.ServerMode.Client.Utilities;
using Xunit;
namespace AWS.Deploy.ServerMode.Client.UnitTests
{
public class CappedStringBuilderTests
{
private readonly CappedString... | 42 |
aws-dotnet-deploy | aws | C# | using System;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
using Moq;
using Moq.Protected;
using Xunit;
namespace AWS.Deploy.ServerMode.Client.UnitTests
{
public class ServerModeSessionTests
{
private readonly ServerModeSession _se... | 254 |
aws-dotnet-deploy | aws | C# | using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Blaz... | 26 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using System.Threading.Tasks;
namespace ConsoleAppService
{
internal class Program
{
private static async Task Main(string[] args)
{
while (true)
{... | 21 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
namespace ConsoleAppTask
{
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| 16 |
aws-dotnet-deploy | aws | C# | using ContosoUniversityBackendService.Data;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ContosoUniversityBackendService
{
public class ContosoService : BackgroundService
... | 37 |
aws-dotnet-deploy | aws | C# | using ContosoUniversityBackendService.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
namespace ContosoUniversityBackendService
{
class Progr... | 70 |
aws-dotnet-deploy | aws | C# | using ContosoUniversityBackendService.Data;
using ContosoUniversityBackendService.Models;
using System;
using System.Linq;
namespace ContosoUniversityBackendService.Data
{
public static class DbInitializer
{
public static void Initialize(SchoolContext context)
{
context.Database.... | 69 |
aws-dotnet-deploy | aws | C# | using Microsoft.EntityFrameworkCore;
using ContosoUniversityBackendService.Models;
namespace ContosoUniversityBackendService.Data
{
public class SchoolContext : DbContext
{
public SchoolContext(DbContextOptions<SchoolContext> options)
: base(options)
{
}
public D... | 24 |
aws-dotnet-deploy | aws | C# | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace ContosoUniversityBackendService.Models
{
public class Course
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int CourseID { get; set; }
public string Title { get; set; }
... | 15 |
aws-dotnet-deploy | aws | C# | namespace ContosoUniversityBackendService.Models
{
public enum Grade
{
A, B, C, D, F
}
public class Enrollment
{
public int EnrollmentID { get; set; }
public int CourseID { get; set; }
public int StudentID { get; set; }
public Grade? Grade { get; set; }
... | 18 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
namespace ContosoUniversityBackendService.Models
{
public class Student
{
public int ID { get; set; }
public string LastName { get; set; }
public string FirstMidName { get; set; }
public DateTime EnrollmentDate { get; set; }
... | 15 |
aws-dotnet-deploy | aws | C# | using System;
using System.ComponentModel.DataAnnotations;
namespace ContosoUniversityBackendService.Models.SchoolViewModels
{
public class EnrollmentDateGroup
{
[DataType(DataType.Date)]
public DateTime? EnrollmentDate { get; set; }
public int StudentCount { get; set; }
}
} | 13 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace ContosoUniversity
{
public class PaginatedList<T> : List<T>
{
public int PageIndex { get; private set; }
public int TotalPages { get; private set; }... | 48 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
namespace ContosoUniversity
{
public class Program
{
public static void Main(string[] args)
{
... | 48 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace ContosoUniversity
{
public class Startup... | 58 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
namespac... | 67 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace ContosoUniversity
{
public class Startup... | 58 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using ContosoUniversity.Models;
using System;
using System.Linq;
namespace ContosoUniversity.Data
{
public static class DbInitializer
{
public static void Initialize(SchoolContext context)
{
context.Database.EnsureCreated();
// Look for ... | 69 |
aws-dotnet-deploy | aws | C# | using Microsoft.EntityFrameworkCore;
using ContosoUniversity.Models;
namespace ContosoUniversity.Data
{
public class SchoolContext : DbContext
{
public SchoolContext(DbContextOptions<SchoolContext> options)
: base(options)
{
}
public DbSet<Student> Students { get... | 24 |
aws-dotnet-deploy | aws | C# | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace ContosoUniversity.Models
{
public class Course
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int CourseID { get; set; }
public string Title { get; set; }
public int Cr... | 15 |
aws-dotnet-deploy | aws | C# | namespace ContosoUniversity.Models
{
public enum Grade
{
A, B, C, D, F
}
public class Enrollment
{
public int EnrollmentID { get; set; }
public int CourseID { get; set; }
public int StudentID { get; set; }
public Grade? Grade { get; set; }
public ... | 18 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
namespace ContosoUniversity.Models
{
public class Student
{
public int ID { get; set; }
public string LastName { get; set; }
public string FirstMidName { get; set; }
public DateTime EnrollmentDate { get; set; }
public I... | 15 |
aws-dotnet-deploy | aws | C# | using System;
using System.ComponentModel.DataAnnotations;
namespace ContosoUniversity.Models.SchoolViewModels
{
public class EnrollmentDateGroup
{
[DataType(DataType.Date)]
public DateTime? EnrollmentDate { get; set; }
public int StudentCount { get; set; }
}
} | 13 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Models.SchoolViewModels;
using ContosoUniversity.Data;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ContosoUniversity.Models;
namespace ContosoUniversity.Pages
{
publi... | 37 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace ContosoUniversity.Pages
{
[ResponseCache(Duration = 0, Location = Respo... | 33 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace ContosoUniversity.Pages
{
public class IndexModel : PageModel
{
private readonly I... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace ContosoUniversity.Pages
{
public class PrivacyModel : PageModel
{
private readonly... | 25 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System;
using System.Threading.Tasks;
namespace ContosoUniversity.Pages.Students
{
public class CreateModel : PageModel
{
private readonly ContosoUniversity.Data.SchoolContext _context;
... | 50 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Models;
using ContosoUniversity.ViewModels;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System;
using System.Threading.Tasks;
namespace ContosoUniversity.Pages.Students
{
public class CreateVMModel : PageModel
{
private readonly ContosoUni... | 48 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using System.Threading.Tasks;
namespace ContosoUniversity.Pages.Students
{
#region snippet_All
public class DeleteModel : PageModel
{
private readonly C... | 76 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using ContosoUniversity.Data;
using ContosoUniversity.Models;
namespace ContosoUniversity.Pages.Students
{
... | 45 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using ContosoUniversity.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Threading.Tasks;
namespace ContosoUniversity.Pages.Students
{
public class EditModel : PageModel
{
private readonly SchoolContext _context;
p... | 59 |
aws-dotnet-deploy | aws | C# | using ContosoUniversity.Data;
using ContosoUniversity.Models;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ContosoUniversity.Pages.Students
{
public class IndexModel : Pa... | 73 |
aws-dotnet-deploy | aws | C# | using System;
namespace ContosoUniversity.ViewModels
{
#region snippet
public class StudentVM
{
public int ID { get; set; }
public string LastName { get; set; }
public string FirstMidName { get; set; }
public DateTime EnrollmentDate { get; set; }
}
#endregion
}
| 15 |
aws-dotnet-deploy | aws | C# | using System;
namespace ConsoleSdkType
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| 13 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace WebAppDifferentAssemblyName
{
public class Program
{
... | 27 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exten... | 57 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppDifferentAssemblyName.Pages
{
[ResponseCache(Duration = 0, Locati... | 32 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppDifferentAssemblyName.Pages
{
public class IndexModel : PageModel
{
private rea... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppDifferentAssemblyName.Pages
{
public class PrivacyModel : PageModel
{
private r... | 25 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace WebAppDifferentTargetFramework
{
public class Pro... | 25 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
usin... | 58 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WebAppDifferentTargetFramework.Pages
{
public class AboutModel : PageModel
{
public string Message { get; set; }
public void OnGet()
{
... | 19 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WebAppDifferentTargetFramework.Pages
{
public class ContactModel : PageModel
{
public string Message { get; set; }
public void OnGet()
{... | 19 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WebAppDifferentTargetFramework.Pages
{
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, ... | 24 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WebAppDifferentTargetFramework.Pages
{
public class IndexModel : PageModel
{
public void OnGet()
{
}
... | 18 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WebAppDifferentTargetFramework.Pages
{
public class PrivacyModel : PageModel
{
public void OnGet()
{
}
... | 16 |
aws-dotnet-deploy | aws | C# | var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Test .NET 7");
app.Run();
| 7 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace WebAppNoSolution
{
public class Program
{
publ... | 27 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exten... | 57 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppNoSolution.Pages
{
[ResponseCache(Duration = 0, Location = Respon... | 32 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppNoSolution.Pages
{
public class IndexModel : PageModel
{
private readonly ILogg... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppNoSolution.Pages
{
public class PrivacyModel : PageModel
{
private readonly ILo... | 25 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using WebAppProjectDependenciesLibrary;
namespace WebAppProjectDependenc... | 29 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exten... | 57 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppProjectDependencies.Pages
{
[ResponseCache(Duration = 0, Location... | 32 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppProjectDependencies.Pages
{
public class IndexModel : PageModel
{
private reado... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppProjectDependencies.Pages
{
public class PrivacyModel : PageModel
{
private rea... | 25 |
aws-dotnet-deploy | aws | C# | using System;
namespace WebAppProjectDependenciesLibrary
{
public class Class1
{
}
}
| 9 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using WebAppProjectDependenciesLibrary;
namespace WebAppProjectDependenc... | 29 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exten... | 57 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppProjectDependencies.Pages
{
[ResponseCache(Duration = 0, Location... | 32 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppProjectDependencies.Pages
{
public class IndexModel : PageModel
{
private reado... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppProjectDependencies.Pages
{
public class PrivacyModel : PageModel
{
private rea... | 25 |
aws-dotnet-deploy | aws | C# | using System;
namespace WebAppProjectDependenciesLibrary
{
public class Class1
{
}
}
| 9 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionParentLevel
{
public class Program
{... | 27 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exten... | 57 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionParentLevel.Pages
{
[ResponseCache(Duration = 0, Loca... | 32 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionParentLevel.Pages
{
public class IndexModel : PageModel
{
private r... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionParentLevel.Pages
{
public class PrivacyModel : PageModel
{
private... | 25 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionSameLevel
{
public class Program
{
... | 27 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exten... | 57 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionSameLevel.Pages
{
[ResponseCache(Duration = 0, Locati... | 32 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionSameLevel.Pages
{
public class IndexModel : PageModel
{
private rea... | 26 |
aws-dotnet-deploy | aws | C# | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithSolutionSameLevel.Pages
{
public class PrivacyModel : PageModel
{
private r... | 25 |
aws-dotnet-deploy | aws | C# | using WorkerServiceExample;
IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices(services =>
{
services.AddHostedService<Worker>();
})
.Build();
await host.RunAsync();
| 11 |
aws-dotnet-deploy | aws | C# | namespace WorkerServiceExample
{
public class Worker : BackgroundService
{
private readonly ILogger<Worker> _logger;
public Worker(ILogger<Worker> logger)
{
_logger = logger;
}
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
... | 21 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
namespace MessageProcessingApp
{
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| 16 |
aws-dotnet-deploy | aws | C# | var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.UseHttpsRedirection();
app.MapGet("/", () =>
{
return "Hello";
});
app.Run();
| 13 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace WebAppNoDockerFile
{
public class Program
{
public static void Main(string[] args)
{
Create... | 21 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace W... | 52 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppNoDockerFile.Pages
{
[ResponseCache(Duration = 0, Lo... | 31 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppNoDockerFile.Pages
{
public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> _l... | 24 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppNoDockerFile.Pages
{
public class PrivacyModel : PageModel
{
private readonly ILogger<PrivacyModel... | 23 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
namespace WebAppWithDockerFile
{
public class Program
{
public static void Main(string[] args)
{
Crea... | 24 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace W... | 57 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace WebAppWithDockerFile.Controllers
{
[ApiController]
[Route("[controller]")]
public class EnvVarController ... | 41 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using System.Diagnostics;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithDockerFile.Pages
{
[ResponseCache(Duration = 0, ... | 31 |
aws-dotnet-deploy | aws | C# | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace WebAppWithDockerFile.Pages
{
public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> ... | 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.