max_stars_repo_path stringlengths 3 255 | max_stars_repo_name stringlengths 5 116 | max_stars_count int64 0 107k | id stringlengths 1 7 | content stringlengths 63 1.05M |
|---|---|---|---|---|
src/Hora.Core/Queues/MemoryQueue.cs | vnwonah/Hora | 1 | 7040343 | <reponame>vnwonah/Hora<gh_stars>1-10
using Hora.Core.Enums;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Hora.Core.Queues
{
public class MemoryQueue
{
private bool _queueProcessing;
private static List<Job> _memoryJobQueue = new List<Job>();
intern... |
src/Mocklis.Core.Tests/Core/EventMockSetNextStepTests.cs | eredmo/mocklis | 7 | 7040344 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="EventMockSetNextStepTests.cs">
// SPDX-License-Identifier: MIT
// Copyright © 2019-2020 <NAME> and contributors. All rights reserved.
// </copyright>
// -----------------------... |
AccountModule/Constants/Emails.cs | Aim-Educational/FarmMaster | 0 | 7040345 | <reponame>Aim-Educational/FarmMaster
using EmailSender;
using Microsoft.AspNetCore.Hosting;
using System;
using System.IO;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
namespace AccountModule.Constants
{
public class Emails
{
public const string ConfirmPassword = "<PASSWORD>";
}
... |
Source/SLaB.Offline/SerializableHttpWebResponse.cs | OpenSilver/OpenSilver.SLaB | 0 | 7040346 | #region Using Directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Windows.Markup;
using SLaB.Utilities;
using SLaB.Utilities.Xaml.Serializer;
using System.Threading;
#endregion
namespac... |
samples/DataIsolationSample/Views/Home/Index.cshtml | Cpcrook/Finbuckle.MultiTenant | 0 | 7040347 | @model IEnumerable<ToDoItem>
@{
ViewData["Title"] = "Data Isolation Sample";
}
@if(Context.GetTenantContext() != null)
{
<p class="mt-4">Tenant Id: @Context.GetTenantContext().Id</p>
<p class="my-4">Connection String: @Context.GetTenantContext().ConnectionString</p>
<table class="table">
... |
SoulsFormats/Formats/FLVER/VertexColor.cs | NamelessHoodie/FLVERSerializer | 128 | 7040348 | using System;
namespace SoulsFormats
{
public static partial class FLVER
{
/// <summary>
/// A vertex color with ARGB components, typically from 0 to 1.
/// Used instead of System.Drawing.Color because some FLVERs use float colors with negative or >1 values.
/// </summary>
... |
NLightning/Cryptography/Secp256K1.cs | dmsch/NLightning | 16 | 7040349 | using System;
using System.Linq;
using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Security;
namespace NLightning.Cryptography
{
public class Secp256K1
{... |
iSEE C# Courses/iSEEQuiz/iSEEQuiz/Program.cs | Epentibi/iSEE | 0 | 7040350 | <reponame>Epentibi/iSEE
using System;
using System.Collections.Generic;
using System.Linq;
namespace iSEEQuiz
{
class Program
{
public static Dictionary<string, bool> questions = new Dictionary<string, bool>();
static int questionIndex;
static int correctAnswers;
... |
Insight.Database/Structure/Guardian.cs | uonun/Insight.Database | 1 | 7040351 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#pragma warning disable 0649
namespace Insight.Database.Structure
{
/// <summary>
/// Helps a child object find its parent.
/// It knows the parent's ID by getting it from the rec... |
source/R5T.D0090.X001/Code/Extensions/IHasConfigureServicesExtensions.cs | SafetyCone/R5T.D0090 | 0 | 7040352 | using System;
using Microsoft.Extensions.DependencyInjection;
using R5T.T0072;
using R5T.D0090;
namespace System
{
public static class IHasConfigureServicesExtensions
{
public static TServicesBuilder UseProgramAsAService<TProgramAsAService, TServicesBuilder>(this TServicesBuilder servicesBuilder)
... |
CoreAnimation/LayerManager.cs | wcavell/CoreAnimation | 0 | 7040353 | <reponame>wcavell/CoreAnimation
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.System.Threading;
namespace Cor... |
C5/Interfaces/IIndexed.cs | NightOwl888/C5 | 708 | 7040354 | <reponame>NightOwl888/C5
using System;
using System.Collections.Generic;
namespace C5
{
/// <summary>
/// A sequenced collection, where indices of items in the order are maintained
/// </summary>
public interface IIndexed<T> : ISequenced<T>, IReadOnlyList<T>
{
/// <summary>
/// Gets... |
Matthid.WiX.NuGetExtensions/NuGetWixExtension.cs | matthid/wix-nuget-extension | 0 | 7040356 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Tools.WindowsInstallerXml;
[assembly: AssemblyDefaultWixExtension(typeof(Matthid.WiX.NuGetExtensions.NuGetWixExtension))]
namespace Matthid.WiX.NuGetExtensions
{
public class NuGetW... |
Runtime/Model/Metrics/MetricsSubmissionQueue.cs | vlussenburg/backtrace-unity | 83 | 7040357 | using Backtrace.Unity.Common;
using Backtrace.Unity.Json;
using Backtrace.Unity.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Backtrace.Unity.Model.Metrics
{
internal abstract class MetricsSubmissionQueue<T> where T : EventAggregationBase
{
/... |
LittleFishers/Assets/Scripts/Fishing/FishPool/FishPool.cs | tunderix/LittleFishers | 1 | 7040358 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class FishPool : MonoBehaviour
{
[SerializeField]
private FishPoolObject fishPoolObject;
[SerializeField]
private List<FishSize> possibleFishSizes;
[SerializeField]
private int recommendedMinim... |
src/ScyllaNet/ISchemaParser.cs | ScyllaNet/ScyllaNet | 14 | 7040359 | // Copyright (c) 2014-2020 DataStax Inc.
// Copyright (c) 2020, <NAME> (ralmsdevelper)
// Licensed under the Apache License, Version 2.0. See LICENCE in the project root for license information.
using System.Collections.Generic;
using System.Threading.Tasks;
using Scylla.Net.Tasks;
namespace Scylla.Net
{
interna... |
src/NoiseLab.PolyGen.Core/Domain/Relationship.cs | sergey-kolodiy/PolyGen | 18 | 7040360 | <reponame>sergey-kolodiy/PolyGen
using System.Collections.Generic;
using System.Linq;
namespace NoiseLab.PolyGen.Core.Domain
{
internal sealed class Relationship
{
public Relationship(string name, bool onDeleteCascade, bool onDeleteSetNull, Entity primaryKeyEntity, Entity foreignKeyEntity, IReadOnlyCo... |
solution/NearForums.Tests/AssemblyInitialize.cs | axence/nearforums | 0 | 7040361 | <reponame>axence/nearforums<filename>solution/NearForums.Tests/AssemblyInitialize.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NearForums.Configuration;
using NearForums.Configuration.Settings;
using NearForums... |
SimpleIdentityServer/tests/SimpleIdentityServer.Core.UnitTests/WebSite/Authenticate/AuthenticateActionsFixture.cs | appkins/SimpleIdentityServer | 71 | 7040362 | <reponame>appkins/SimpleIdentityServer
#region copyright
// Copyright 2015 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENS... |
src/Persistance/Repository.cs | douglasramos/plannoy | 1 | 7040363 | <filename>src/Persistance/Repository.cs<gh_stars>1-10
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Plannoy.Domain;
using Plannoy.Domain.RepositoryInterfaces;
namespace Plannoy.Persistance
{
public abstract class Repository<TEntity> : ... |
Scripts/Items/Minor Artifacts/ML/WildfireBow.cs | greeduomacro/vivre-uo | 0 | 7040364 | <reponame>greeduomacro/vivre-uo
using System;
using Server;
namespace Server.Items
{
public class WildfireBow : ElvenCompositeLongbow
{
public override int LabelNumber{ get{ return 1075044; } } // Wildfire Bow
public override int InitMinHits{ get{ return 255; } }
public override int InitMaxHits{ get{ return 2... |
Website/Areas/ExampleSite/Views/Subcontent/RelatedLinks.cshtml | verndale/zodiac-sitecore9-example | 1 | 7040365 | <gh_stars>1-10
@inherits Constellation.Foundation.Mvc.EditorCompatibleView<Website.Areas.ExampleSite.Models.Subcontent.RelatedLinksModel>
<div>
<h4>
@Model.Heading
</h4>
@if (this.IsEditing && Model.Links.Count == 0)
{
<p>No Related Links selected. Use the Edit button to add some!</p>
}
else
{
... |
source/Raml.Parser/Expressions/QueryString.cs | raml-org/raml-dotnet-parser-2 | 16 | 7040366 | <reponame>raml-org/raml-dotnet-parser-2
using System.Collections.Generic;
namespace Raml.Parser.Expressions
{
public class QueryString
{
public QueryString()
{
Examples = new Dictionary<string, string>();
Type = new string[0];
}
public IDict... |
StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp9/ReadabilityRules/SA1129CSharp9UnitTests.cs | wdolek/StyleCopAnalyzers | 2,228 | 7040367 | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.CSharp9.ReadabilityRules
{
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis... |
samples/unobtrusive/Core_6/Server/CommandSender.cs | A-Franklin/docs.particular.net | 0 | 7040368 | using System;
using System.Threading.Tasks;
using Events;
using NServiceBus;
class CommandSender
{
public static async Task Start(IEndpointInstance endpointInstance)
{
Console.WriteLine("Press 'E' to publish an event");
Console.WriteLine("Press any other key to exit");
wh... |
snippets/csharp/language-reference/keywords/await/await1.cs | ericmutta/samples | 1 | 7040369 | <reponame>ericmutta/samples
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
public class Example
{
public static void Main()
{
string[] args = Environment.GetCommandLineArgs();
if (args.Length > 1)
GetPageSizeAsync(args[1]).Wait();
else
... |
Sifon/Forms/Updates/CheckUpdatesPresenter.cs | ampach/Sifon | 10 | 7040370 | <gh_stars>1-10
using System;
using Sifon.Abstractions.Providers;
using Sifon.ApiClient.Providers;
using Sifon.Code.Factories;
using Sifon.Code.Logger;
using Sifon.Code.Model;
using Sifon.Code.Statics;
namespace Sifon.Forms.Updates
{
internal class CheckUpdatesPresenter
{
private readonly ICheckUpdates... |
src/xamarin-client/Adaptive.ReactiveTrader.Client.Android/Configuration/ConfigurationProvider.cs | rwleo/ReactiveTraderCloud | 2 | 7040371 | using Adaptive.ReactiveTrader.Client.Configuration;
namespace Adaptive.ReactiveTrader.Client.Android.Configuration
{
internal sealed class ConfigurationProvider : IConfigurationProvider
{
public string[] Servers => new[] { "ws://web-demo.adaptivecluster.com:80/ws" };
}
}
|
Bnaya.CSharp.AsyncExtensions/BnayaTaskExtensions.cs | weknow-network/Bnaya.CSharp.AsyncExtensions | 2 | 7040372 | <filename>Bnaya.CSharp.AsyncExtensions/BnayaTaskExtensions.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace System.Threading.Tasks
... |
Assets/Scripts/AchtungArea.cs | MaksymPylypenko/Curve-Fever-mobile | 0 | 7040373 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class AchtungArea : MonoBehaviour
{
public int numPlayers = 4;
public float spawnRange = 4.0f;
float wallRange;
float wallWidth = 0.3f;
public Walls walls;
public Snake snakePrefab;
public List<Color> ... |
samples/BoltOn.Samples.Application/Handlers/StudentCreatedEventHandler.cs | BoltOnSuite/BoltOn | 13 | 7040374 | using System;
using System.Threading;
using System.Threading.Tasks;
using BoltOn.Cqrs;
using BoltOn.Data;
using BoltOn.Requestor.Pipeline;
using BoltOn.Samples.Application.Entities;
namespace BoltOn.Samples.Application.Handlers
{
public class StudentCreatedEvent : BaseDomainEvent<Student>, IDomainEvent
{
public ... |
Tyr/Builds/Protoss/MacroPvP.cs | kblood/TyrSc2 | 0 | 7040375 | using SC2APIProtocol;
using System;
using System.Collections.Generic;
using Tyr.Agents;
using Tyr.Builds.BuildLists;
using Tyr.Managers;
using Tyr.MapAnalysis;
using Tyr.Micro;
using Tyr.Tasks;
using Tyr.Util;
namespace Tyr.Builds.Protoss
{
public class MacroPvP : Build
{
private Point2D OverrideDefen... |
website/SDNUOJ.Configuration/DateManager.cs | eggry/sdnuoj | 27 | 7040376 | using System;
using System.Collections.Generic;
namespace SDNUOJ.Configuration
{
/// <summary>
/// 日期管理器
/// </summary>
public static class DateManager
{
#region 字段
private static List<Int32> _years = null;
private static List<Int32> _months = null;
pri... |
Connectors/src/AspDotNetCore/SqlServerEFCore/Models/SampleData.cs | programlenttdata/Steeltoe.NTTData.Samples | 0 | 7040377 | using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Linq;
namespace SqlServerEFCore
{
public class SampleData
{
internal static void InitializeMyContext1(IServiceProvider serviceProvider)
{
if (serviceProvider == null)
... |
src/CommonHelpers/Common/Singleton.cs | LanceMcCarthy/CommonHelpers | 22 | 7040378 | using System;
namespace CommonHelpers.Common
{
/// <summary>
/// Example: Singleton<MyMenuItem>.Instance.IconPath
/// </summary>
/// <typeparam name="T">The Type of the singleton</typeparam>
public static class Singleton<T> where T : new()
{
private static readonly Lazy<T> instance = ... |
chapter02/sample.microservice.webapi2/Controllers/SaluteWorldController.cs | dabedin/Practical-Microservices-with-Dapr-and-.NET-Second-Edition | 1 | 7040379 | <filename>chapter02/sample.microservice.webapi2/Controllers/SaluteWorldController.cs
using Microsoft.AspNetCore.Mvc;
namespace sample.microservice.webapi.Controllers
{
[ApiController]
public class SaluteWorldController : ControllerBase
{
[HttpGet("salute")]
public ActionResult<string> Get()... |
src/Core2D.Core/ViewModels/Editor/Tools/Selection/ImageSelection.cs | juliuming/my-core2d | 604 | 7040380 | #nullable enable
using System;
using Core2D.Model;
using Core2D.ViewModels.Containers;
using Core2D.ViewModels.Shapes;
using Core2D.ViewModels.Style;
namespace Core2D.ViewModels.Editor.Tools.Selection;
public class ImageSelection
{
private readonly IServiceProvider? _serviceProvider;
private readonly LayerCo... |
src/Mvc/test/WebSites/ApiExplorerWebSite/Models/CustomerCommentsDTO.cs | belav/aspnetcore | 0 | 7040381 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Mvc;
namespace ApiExplorerWebSite
{
public class CustomerCommentsDTO
{
[FromQuery]
public string Shi... |
HotelSharp/Factura.cs | Kennethowl/Hotel-System | 0 | 7040382 | using System;
using System.Collections.Generic;
public class Factura
{
public int ID { get; set; }
public DateTime Fecha { get; set; }
public Reservador Reservador { get; set; }
public Cliente Cliente { get; set; }
public Habitacion Habitacion { get; set; }
public string NuevoCodigo { get; set;... |
RealWorldApp/RealWorldApp/RealWorldApp/Pages/OrderDetailPage.xaml.cs | codewithasfend/Furniture-App | 1 | 7040383 | using RealWorldApp.Models;
using RealWorldApp.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace RealWorldApp.Pages
{
[XamlCompilation(XamlComp... |
UniFTP.Server/FtpUserGroup.cs | maikebing/UniFTP | 8 | 7040384 | <filename>UniFTP.Server/FtpUserGroup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UniFTP.Server.Virtual;
namespace UniFTP.Server
{
[Serializable]
public enum AuthType
{
None = 1,
Password = 2,
MD5 = 4,
SSL = 8,... |
msbuild/custom-task-code-generation/MSBuildConsoleExample/MSBuildConsoleExample/MySetting.generated.cs | ayhrgr/dotnet_samples | 0 | 7040385 | <filename>msbuild/custom-task-code-generation/MSBuildConsoleExample/MSBuildConsoleExample/MySetting.generated.cs
using System;
namespace MSBuildConsoleExample {
public class MySetting {
public readonly static string Greeting = "Hello World!";
}
} |
TesteEasyTables/TesteEasyTables/App.xaml.cs | pictos/TesteEasyTable | 0 | 7040386 | using Microsoft.WindowsAzure.MobileServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace TesteEasyTables
{
public partial class App : Application
{
// public static MobileServiceClient MobileService = new MobileServiceClient("htt... |
StrandedWastes/StrategiSpil/Classes/Interfaces/IAnimateable.cs | TopperTheKnight/StrategiSpil | 0 | 7040387 | <gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StrategiSpil
{
interface IAnimateable
{
void CreateAnimations();
void OnAnimationDone(string animationName);
}
}
|
src/BaGet.Core/Metadata/DatabasePackageMetadataService.cs | a-carvallo/BaGet | 0 | 7040388 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using BaGet.Core.Entities;
using BaGet.Core.Mirror;
using BaGet.Protocol;
using NuGet.Versioning;
namespace BaGet.Core.Metadata
{
/// <inheritdoc />
public class DatabasePackageMetadataServi... |
src/Raven.Server/Monitoring/Snmp/Objects/Database/5.2.X/2/DatabaseStorageDiskRemainingSpace.cs | ryanheath/ravendb | 1 | 7040389 | <gh_stars>1-10
using System.IO;
using Lextm.SharpSnmpLib;
using Raven.Server.Documents;
using Raven.Server.Utils;
using Sparrow;
namespace Raven.Server.Monitoring.Snmp.Objects.Database
{
public class DatabaseStorageDiskRemainingSpace : DatabaseScalarObjectBase<Gauge32>
{
private static readon... |
ModernHistoryClient/ModernClient/ModernHistory/Exceptions/ApiErrorException.cs | FanHuaRan/ModernHistory | 0 | 7040390 | using ModernHistory.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModernHistory.Exceptions
{
/// <summary>
/// API错误异常
/// </summary>
public class ApiErrorException : Exception
{
public ApiErrorModel ApiEr... |
src/GameLogic/PlugIns/IObjectRemovedFromMapPlugIn.cs | ADMTec/OpenMU | 1 | 7040391 | <reponame>ADMTec/OpenMU
// <copyright file="IObjectRemovedFromMapPlugIn.cs" company="MUnique">
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// </copyright>
namespace MUnique.OpenMU.GameLogic.PlugIns;
using System.Runtime.InteropServices;
using MUnique.OpenMU.P... |
GloboTicket/GloboTicket.Services.EventCatalog/Startup.cs | markheath/globoticket | 3 | 7040392 | using System;
using AutoMapper;
using GloboTicket.Services.EventCatalog.DbContexts;
using GloboTicket.Services.EventCatalog.Repositories;
using GloboTicket.Services.EventCatalog.Swagger;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.E... |
src/ASPNET/WebApi/PagingByLinkHeader/Paging/PagingLinkBuilder.cs | huhubun/SampleComplete | 0 | 7040393 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web.Http.Routing;
namespace PagingByLinkHeader.Paging
{
public class PagingLinkBuilder<T>
{
private const string LINK_TEMPLATE = "<{0}>; rel=\"{1}\"";
private UrlHelper _urlHelper;
pr... |
CourseManagement/CourseManagement.Library/Data/Entities/Instructor.cs | MizaN13/CourseManagement | 0 | 7040394 | <filename>CourseManagement/CourseManagement.Library/Data/Entities/Instructor.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace CourseManagement.Library.Data.Entities
{
public class Instructor : EntityBase<Guid>
{
public string Name {get; set;}
public string Design... |
src/EditorFeatures/Core/Implementation/Outlining/OutliningTaggerProvider.TagProducer.cs | akoeplinger/roslyn | 8 | 7040395 | <reponame>akoeplinger/roslyn
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Mi... |
src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Telemetry/SourceTelemetry.cs | huangqinjin/NuGet.Client | 1 | 7040396 | <gh_stars>1-10
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using NuGet.Common;
using NuGet.Configuration;
using NuGet.VisualStudio.Telemetry;
names... |
src/TrueLayer/SigningKey.cs | TrueLayer/truelayer-dotnet | 0 | 7040397 | <filename>src/TrueLayer/SigningKey.cs
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace TrueLayer
{
/// <summary>
/// ES512 signing key used to sign API requests
/// </summary>
public class SigningKey
{
private readonly Lazy<ECDsa> _key;
... |
Src/StoneFruit.Containers.Microsoft.Tests/Integration/EnvironmentTests.cs | Whiteknight/StoneFruit | 0 | 7040398 | <filename>Src/StoneFruit.Containers.Microsoft.Tests/Integration/EnvironmentTests.cs<gh_stars>0
using System;
using FluentAssertions;
using NUnit.Framework;
using StoneFruit.Execution;
using TestUtilities;
using Microsoft.Extensions.DependencyInjection;
namespace StoneFruit.Containers.Microsoft.Tests.Integration
{
... |
TransitCity/Time/WeekTimeSpan.cs | gartenriese2/TransitCity | 0 | 7040399 | using System;
namespace Time
{
public class WeekTimeSpan
{
public WeekTimeSpan(WeekTimePoint begin, WeekTimePoint end)
{
Begin = begin;
End = end;
}
public WeekTimePoint Begin { get; }
public WeekTimePoint End { get; }
public override ... |
src/Apps/DesktopApp/MatchGamesDialog.xaml.cs | orbital7/orbital7.mygames | 1 | 7040400 | <gh_stars>1-10
using Orbital7.Extensions;
using Orbital7.Extensions.WPF;
using Orbital7.MyGames;
using Orbital7.MyGames.Scraping;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows;
namespace DesktopApp
{
/// <summary>
/// Interactio... |
src/BlazorServer/Repository/Implement/RolesRepository.cs | dotnet9/BlazorDemo | 2 | 7040401 | <filename>src/BlazorServer/Repository/Implement/RolesRepository.cs
using BlazorServer.Models;
using BlazorServer.ViewModels;
using Microsoft.AspNetCore.Identity;
namespace BlazorServer.Repository.Implement;
public class RolesRepository : IRolesRepository
{
private readonly RoleManager<IdentityRole> _roleManager;
p... |
src/RabbitRPC/ServiceHost/ServiceDescriptor.cs | noelex/RabbitRPC | 2 | 7040402 | <reponame>noelex/RabbitRPC
using RabbitRPC.ServiceHost.Filters;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
namespace RabbitRPC.ServiceHost
{
public class ServiceDescriptor
{
internal ServiceDescriptor(InterfaceMappi... |
Assets/ScriptableObjects/Projectiles/ProjectileSOTargeted.cs | aaronpwinter/ICS167-Group-9 | 2 | 7040403 | <reponame>aaronpwinter/ICS167-Group-9<gh_stars>1-10
//<NAME>
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "New Targeted Projectile", menuName = "ScriptableObjects/Projectile/Targeted")]
public class ProjectileSOTargeted : ProjectileSOBase
{
public over... |
src/framework/MiCake.AspNetCore.Start/MiCakeAspNetCoreStart_ServiceCollectionExtension.cs | wrsxinlang/MiCake | 0 | 7040404 | using MiCake.AspNetCore;
using MiCake.Audit;
using MiCake.Core;
using MiCake.Core.Modularity;
using MiCake.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace MiCake
{
public static class MiCakeAspNetCoreStart_ServiceCollectionExtension
{
/// <summary>
... |
BrokenApp/App.xaml.cs | d-haxton/BrokenApp | 0 | 7040405 | <reponame>d-haxton/BrokenApp<filename>BrokenApp/App.xaml.cs
using System.Data.SQLite;
using System.Windows;
namespace BrokenApp
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private void App_OnStartup(object sender, StartupEventA... |
demoproject/03_demonetfx48/DatabaseLog.cs | kkamegawa/vscommunityjsample | 0 | 7040406 | <reponame>kkamegawa/vscommunityjsample
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはテンプレートから生成されました。
//
// このファイルを手動で変更すると、アプリケーションで予期しない動作が発生する可能性があります。
// このファイルに対する手動の変更は、コードが再生成されると上書きされます。
// </auto-generated>
//--------------------------... |
CoderPatros.AuthenticatedHttpClient.AzureAppServiceManagedIdentity/AzureAppServiceManagedIdentityAuthenticatedHttpClient.cs | patros/Patros.AuthenticatedHttpClient | 0 | 7040407 | using System.Net.Http;
namespace CoderPatros.AuthenticatedHttpClient
{
public static class AzureAppServiceManagedIdentityAuthenticatedHttpClient
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:DisposeObjectsBeforeLosingScope")]
public static HttpClient GetCl... |
scafflapp.core/services/ScaffoldService.cs | scox451/scafflapp | 0 | 7040408 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Rhetos.Utilities;
using scafflapp.core.models;
namespace scafflapp.core.services
{
public class ScaffoldService
{
private static TemplateService _templateService;
private static TokensDictionay _tokensDict... |
Eto.Parse/Parsers/SequenceParser.cs | Craig-J/Eto.Parse | 2 | 7040409 | <reponame>Craig-J/Eto.Parse
using System;
using System.Collections.Generic;
using System.Linq;
namespace Eto.Parse.Parsers
{
public class SequenceParser : ListParser, ISeparatedParser
{
Parser separator;
public Parser Separator { get; set; }
protected SequenceParser(SequenceParser other, ParserCloneArgs chain... |
sources/Dot.AdventureGame/Verbs/ReadAction.cs | lastunicorn/Dot | 0 | 7040410 | <reponame>lastunicorn/Dot<filename>sources/Dot.AdventureGame/Verbs/ReadAction.cs
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using DustInTheWind.Dot.AdventureGame.ActionModel;
using DustInTheWind.Dot.Domain.AudioTextModel;
namespace DustInTheWind.Dot.AdventureGame.... |
Questdb.Net/Interfaces/IQuestDBClient.cs | MalikRizwanBashir/QuestDB.Net | 16 | 7040411 | <filename>Questdb.Net/Interfaces/IQuestDBClient.cs
using Questdb.Net.Write;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Questdb.Net
{
public interface IQuestDBClient
{
/// <summary>
/// Get the Query client.
... |
Xpand/Xpand.ExpressApp/Xpand.ExpressApp/SystemModule/LookUpListSearchAlwaysEnableController.cs | ebptwllc/eXpand | 131 | 7040412 | using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Model;
using Xpand.Persistent.Base.General.Model;
namespace Xpand.ExpressApp.SystemModule {
public enum LookUpListSearch {
Default,
AlwaysEnable
}
public interface IM... |
sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringClient.cs | frank-pang-msft/azure-sdk-for-net | 3,268 | 7040413 | <reponame>frank-pang-msft/azure-sdk-for-net
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Analytics.Synapse.Monitoring.Models;
using Az... |
src/Presenters/FrmLoginPresenter.cs | CoderAllan/SqlServerSearcher | 8 | 7040414 | namespace SQLServerSearcher.Presenters
{
using System;
using System.Data.SqlClient;
using Model;
using Model.EventArgs;
using Views;
public class FrmLoginPresenter
{
private readonly IFrmLogin _view;
public FrmLoginPresenter(IFrmLogin view)
{
... |
Assets/Example/Scripts/Settings/MainSceneSettings.cs | chikinov/vcontainer-mvp | 0 | 7040415 | using System;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace Example
{
[Serializable]
public class MainSceneSettings
{
[field: SerializeField]
public AssetReferenceGameObject RootViewRef { get; private set; }
[field: SerializeField]
public AssetReferenceG... |
src/Hyperledger.Aries/Features/IssueCredential/Models/CredentialPreviewAttributeConverter.cs | lissi-id/aries-framework-dotnet | 67 | 7040416 | using System;
using Hyperledger.Aries.Utils;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Hyperledger.Aries.Features.IssueCredential
{
internal class CredentialPreviewAttributeConverter : JsonConverter<CredentialPreviewAttribute>
{
public override void WriteJson(JsonWriter writer, Cred... |
StacksAndQueues -Exercise/KeyRevolver/Program.cs | elipopovadev/CSharp-Advanced | 0 | 7040417 | using System;
using System.Collections.Generic;
using System.Linq;
namespace KeyRevolver
{
class Program
{
static void Main(string[] args)
{
int priceForOneBullet = int.Parse(Console.ReadLine());
int numberBulletInOneBarrel = int.Parse(Console.ReadLine());
v... |
CodePortify/TextViewMarginProvider.cs | ceztko/CodePortify | 3 | 7040419 | <reponame>ceztko/CodePortify
// Copyright (c) 2009-2012 <NAME>
// Copyright (c) 2013 <NAME>
// This file is subject to to the MS-PL license
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text.Editor;
using Mic... |
Views/Rooms/Treasure.cs | Oggmonster/to-the-moon | 0 | 7040420 | using System;
namespace to_the_moon
{
public class Treasure
{
private static string title = @"
_______ ______ _______ _______ _______ __ __ ______ _______
| || _ | | || _ || || | | || _ | | |
|_ _|| | || | ___|| |_| || _____|| | | || ... |
MarketAction.Server/Services/MarketsService.cs | xLOWer/MarketAction.Server | 0 | 7040421 | <filename>MarketAction.Server/Services/MarketsService.cs<gh_stars>0
using System;
using System.Collections.Generic;
using System.Linq;
using EntityFrameworkCore.DomianModel;
using EntityFrameworkCore.DomianModel.Model;
using MarketAction.Server.Controllers;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFramewor... |
Fosol.Schedule.Entities/User.cs | FosolSolutions/fosol.schedule | 1 | 7040422 | <filename>Fosol.Schedule.Entities/User.cs
using Fosol.Core.Data.ValueObjects;
using System;
using System.Collections.Generic;
namespace Fosol.Schedule.Entities
{
/// <summary>
/// User class, provides a way to manage user information in the datasource.
/// </summary>
public class User : BaseEntity
... |
JSFrameworkGenerator/Models/SuffixFrequency.cs | waf/js-framework-generator | 3 | 7040424 | <reponame>waf/js-framework-generator
using System;
using System.Collections.Generic;
using System.Text;
namespace StandaloneApp.JSFrameworkGenerator.Models
{
/// <summary>
/// A pair of string suffix and the frequency of the suffix in some set of tokens.
/// </summary>
struct SuffixFrequency
{
... |
src/Integration/src/Abstractions/IIntegrationServices.cs | SteeltoeOSS/steeltoe | 295 | 7040425 | <reponame>SteeltoeOSS/steeltoe
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using Steeltoe.Common.Converter;
using Steeltoe.Common.Expression.Internal;
us... |
Hawk.ETL/Plugins/Generators/DbGE.cs | haptear/Hawk | 0 | 7040426 | <gh_stars>0
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Windows.Controls.WpfPropertyGrid.Attributes;
using System.Windows.Controls.WpfPropertyGrid.Controls;
using Hawk.Core.Connectors;
using Hawk.Core.Connectors.Vitural;
using Hawk.Core.Utils;
using Hawk.Core.... |
ImGui.SdlCs/ImGuiNET/Generated/ImGuiStyleMod.gen.cs | YTomTJ/ImGui.SdlCs | 1 | 7040427 | using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
namespace ImGuiNET
{
public unsafe partial struct ImGuiStyleMod
{
public ImGuiStyleVar VarIdx;
public UnionValue Backup;
}
public unsafe partial struct ImGuiStyleModPtr
{
public Im... |
Android/SquarePicasso/samples/PicassoSample/SampleGridViewActivity.cs | SaViGnAnO/XamarinComponents | 1 | 7040428 | <filename>Android/SquarePicasso/samples/PicassoSample/SampleGridViewActivity.cs
using Android.App;
using Android.OS;
using Android.Widget;
using Square.Picasso;
namespace PicassoSample
{
[Activity(Label = "@string/app_name", MainLauncher = true, Theme = "@style/Theme.AppCompat")]
public class SampleGridViewA... |
SimulatorConsole/Caching/CachePools.cs | natesuver/SimulatorConsole | 0 | 7040429 | <gh_stars>0
namespace SimulatorConsole.Caching
{
public sealed class CachePools
{
private static SqlitePool sqlitePool = null;
private static SqlServerPool sqlServerPool = null;
private static readonly object padlock = new object();
CachePools()
{
}
... |
Homeworks/C# 2/04. Numeral Systems - Homework/06. Binary to hexadecimal/06. Binary to hexadecimal.cs | KrasimirStoyanov/Telerik-Academy | 0 | 7040430 | <gh_stars>0
using System;
class BinaryToHexadecimal
{
static void Main()
{
//• Write a program to convert binary numbers to hexadecimal numbers (directly).
}
}
|
DebugDotNet/Win32/Diver/OldDiverTool.cs | ShadowKnightMK4/DebugDotNet | 0 | 7040431 | <filename>DebugDotNet/Win32/Diver/OldDiverTool.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using DebugDotNet.Win32.Enums;
using DebugDotNet.Win32.Structs;
using DebugDotNet.Win32.Tools;
using DebugDotNet.Win32.Diver;
using System.Runtime.InteropServices;
using System... |
TraceReader.Dlt/DltTraceReaderTest/Dlt/Verbose/FloatArgDecoderTest.cs | jcurl/RJCP.DLL.Log | 1 | 7040433 | <gh_stars>1-10
namespace RJCP.Diagnostics.Log.Dlt.Verbose
{
using Args;
using NUnit.Framework;
[TestFixture(DecoderType.Line, Endianness.Little)]
[TestFixture(DecoderType.Packet, Endianness.Little)]
[TestFixture(DecoderType.Specialized, Endianness.Little)]
[TestFixture(DecoderType.Line, Endian... |
plugins/Microsoft.DocAsCode.Build.UniversalReference/BuildOutputs/ApiLinkInfoBuildOutput.cs | 928PJY/docfx | 1 | 7040434 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Build.UniversalReference
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using YamlDotNet.Serial... |
editor source/SPNATI Character Editor/Analyzers/IDataAnalyzer.cs | laytonc32/spnati | 0 | 7040435 | using System;
namespace SPNATI_Character_Editor.Analyzers
{
public interface IDataAnalyzer
{
/// <summary>
/// Unique key
/// </summary>
string Key { get; }
/// <summary>
/// Unique key of parent property, if any
/// </summary>
string ParentKey { get; }
/// <summary>
/// Display name as it appea... |
DashbordModule/src/Naruto.Id4.Dashboard/Controllers/ClientController.cs | zhanghaiboshiwo/Naruto.Id4.Dashboard | 0 | 7040436 | using Microsoft.AspNetCore.Mvc;
using Naruto.Id4.Dashboard.Model;
using Naruto.Id4.Dashboard.Services;
using Naruto.Id4.Dashboard.Storage;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Naruto.Id4.Dashboard.Core
{
[ApiController]
/// <summary>
//... |
BlueThinnerClient/BlueThinnerClient/App.xaml.cs | BlueThinner/BlueThinner-Client | 1 | 7040437 | <filename>BlueThinnerClient/BlueThinnerClient/App.xaml.cs<gh_stars>1-10
global using System.Windows.Threading;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Blue... |
Sources/Samples/WpfHexEditor.Sample.Winform/MainForm.cs | sparksustc/WpfHexEditorControl | 608 | 7040438 | using System;
using System.IO;
using System.Windows.Forms;
using System.Windows.Media;
using WpfHexaEditor.Core;
namespace WpfHexEditor.Winform.Sample
{
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
hexEditor.PreloadByteInEditorMode ... |
0132-PalindromePartitioningII.cs | beingj/LeetCode | 0 | 7040439 | using System;
using Xunit;
using Util;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace PalindromePartitioningII
{
public class Solution
{
public int MinCut(string s)
{
// copy from: https://leetcode.com/problems/palindrome-partitioning-ii/discuss/42... |
ObjectsComparer/ObjectsComparer/IComparer.cs | rafysanchez/ObjectsComparer | 237 | 7040440 | <gh_stars>100-1000
using System;
using System.Collections.Generic;
namespace ObjectsComparer
{
/// <summary>
/// Defines methods to compare complex objects.
/// </summary>
public interface IComparer : IBaseComparer
{
/// <summary>
/// Compares objects.
/// </summary>
... |
src/Services/BloodDonation.Services.Data/DTO/GetDonorByIdDto.cs | ViktorNikoloov/ASP.NET-Core-Project-Blood-Donation-System | 0 | 7040441 | <gh_stars>0
namespace BloodDonation.Services.Data.DTO
{
using System;
using BloodDonation.Data.Models;
using BloodDonation.Data.Models.Enums;
using BloodDonation.Services.Mapping;
public class GetDonorByIdDto : IMapFrom<Donor>
{
public string UserId { get; set; }
public strin... |
src/core/Jx.Cms.Plugin/Cache/SystemPluginCache.cs | j4587698/Jx.Cms | 0 | 7040443 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Jx.Cms.Plugin.Plugin;
namespace Jx.Cms.Plugin.Cache;
public class SystemPluginCache : IPluginCache
{
private static IEnumerable<Type> _systemTypes;
public static void UpdateType()
{
_systemTypes = A... |
Assets/LEGO/Scripts/Gameplay/GroundHazard.cs | TermiSenpai/MicroLego | 0 | 7040444 | <reponame>TermiSenpai/MicroLego
using Unity.LEGO.Game;
using UnityEngine;
namespace Unity.LEGO.Gameplay
{
public class GroundHazard : MonoBehaviour
{
void OnTriggerEnter(Collider other)
{
if(other.gameObject.CompareTag("Player"))
{
GameOverEv... |
CodeArtEng.Tcp.Tests/TcpAppServerSamplePlugin.cs | Code-Artist/CodeArtEng.Tcp | 9 | 7040445 | <gh_stars>1-10
using System;
using System.Collections.Generic;
namespace CodeArtEng.Tcp.Tests
{
public class TcpAppServerSamplePlugin : ITcpAppServerPlugin, IDisposable
{
private readonly TcpAppServerPlugin TcpAppPlugin;
private bool disposedValue;
public string PluginName { get; priv... |
Helpers/UniRx/UniRxAsyncHelper.cs | aliagamon/MVVM.Extention | 0 | 7040446 | <filename>Helpers/UniRx/UniRxAsyncHelper.cs<gh_stars>0
using System.Threading.Tasks;
using UniRx.Async;
using Utils.Unity.Runtime;
namespace MVVM.Extension.Helpers.UniRx
{
public static class UniRxAsyncHelper
{
public static T RunSynchronous<T>(this UniTask<T> action)
{
re... |
Assets/Scripts/Utility/GameEvents/ActionOnEvent.cs | BrandonMCoffey/Project-03---Factorio-Systems | 0 | 7040447 | using Assets.Scripts.Utility.GameEvents.Logic;
using UnityEngine;
using UnityEngine.Events;
namespace Assets.Scripts.Utility.GameEvents {
public class ActionOnEvent : GameEventListener {
[Tooltip("Response to invoke when Event is raised.")]
public UnityEvent Response;
public override void ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.