text stringlengths 1 932k |
|---|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using System.IO.PortsTests;
using System.Text;
using System.Threading;
using Legacy.Support;
using Xunit;
namespace System.IO.Ports.Tests
{
public clas... |
using System;
using System.Collections.Generic;
using Popsql.Grammar;
namespace Popsql
{
public partial class SqlSelect
{
private class FromClause : OwnedBy<SqlSelect>, ISqlSelectFromClause
{
public FromClause(SqlSelect parent, SqlTable table)
: base(parent)
{
if (table == null) throw new Argument... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChooseDrink_2._0
{
class Program
{
static void Main(string[] args)
{
string profession = Console.ReadLine();
int quantity = int.Parse(Console.Re... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
namespace Lightweight.Scheduler.Core
{
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Lightweight.Scheduler.Abstractions;
using Microsoft.Extensions.Logging;
internal sealed class DefaultJobProcessor<TSchedulerKey, TJobKey> : IJobProcess... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.Runtime.CompilerServices;
public class BringUpTest
{
const int Pass = 100;
const int Fail = -1;
[MethodImplAttribute(MethodI... |
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using AutoMapper;
using System.IdentityModel.Tokens.Jwt;
using WebApi.Helpers;
using Microsoft.Extensions.Options;
using System.Text;
using Microsoft.IdentityModel.Tokens;
using System.Security.Claims;
using Microsoft.AspNetCore.Authorizat... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using WebApp.Data.Models;
namespace WebApp.Areas.Identity.Pages.... |
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace SampleUIDesign.iOS
{
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a differe... |
namespace SIS.MvcFramework
{
using System;
using System.IO;
using System.Text;
using System.Reflection;
using System.Net.Sockets;
using System.Threading.Tasks;
using SIS.Common;
using SIS.HTTP.Enums;
using SIS.HTTP.Cookies;
using SIS.HTTP.Requests;
using SIS.HTTP.Sessions;
... |
using FluentAssertions;
using Xunit;
namespace FatCat.Fakes.Tests.Primitives
{
public abstract class PrimitiveTests<T>
{
[Fact]
public void EachItemWillBeRandom()
{
var previousValue = default(T);
for (var i = 0; i < 13; i++)
{
var currentValue = Faker.Create<T>();
currentValue.Should().NotB... |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
#region Copyright Syncfusion Inc. 2001-2021.
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applic... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mi... |
namespace OpenRealEstate.Services.RealEstateComAu
{
public class XmlFeature
{
public XmlFeature(string xmlField, string displayName, bool indoor, bool outdoor, bool eco)
{
Guard.AgainstNullOrWhiteSpace(xmlField);
Guard.AgainstNullOrWhiteSpace(displayName);
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security.Principal;
using Serilog;
/*********************************** Module Header ****************... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace Faker.Tests.MatcherTests
{
public class TreeMatcherTests
{
private Matcher _matcher = new Matcher();
#region Tree test classes
public class FlatObjectTree
{
... |
using Eternity.Runtime.Item;
/// <summary>
/// 武器模块VO
/// </summary>
public class ItemModVO : ItemContainer
{
public Eternity.FlatBuffer.Mod Config;
public EquipmentModL1 ModType1;
public EquipmentModL2 ModType2;
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Addressbook_tests_autoit
{
public class TestBase
{
public ApplicationManager app;
[OneTimeSetUp]
public void initApplication()
{... |
using System;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using FluentFTP;
namespace Examples {
internal static class SetHashAlgorithmExample {
public static void SetHashAlgorithm() {
using (var conn = new FtpClient("127.0.0.1", "ftptest", "ftptest")) {
conn.Connect();
if (... |
using BlazorHero.CleanArchitecture.Application.Requests.Identity;
using BlazorHero.CleanArchitecture.Application.Responses.Identity;
using BlazorHero.CleanArchitecture.Client.Infrastructure.Extensions;
using BlazorHero.CleanArchitecture.Shared.Wrapper;
using System.Collections.Generic;
using System.Net.Http;
using Sys... |
using Word = Microsoft.Office.Interop.Word;
using System;
using System.IO;
using System.Linq;
using Office = Microsoft.Office.Core;
namespace WBST.Bibliography {
public partial class ThisAddIn {
public Ribbon Ribbon { get; private set; }
public BibliographyPaneControl BibliographyPane {
... |
using UnityEngine;
using System.Collections;
public class Tools
{ public static void DynamicAddAnimationEvent(Animator pAnimator, int pIndex, string pFunction)
{
AnimationClip clip = pAnimator.runtimeAnimatorController.animationClips[pIndex];
AnimationEvent overEvent = new AnimationEvent();
... |
using System.Linq;
using Raven.Client.Indexes;
namespace MinaGlosor.Web.Models.Indexes
{
public class WordFavouriteIndex : AbstractIndexCreationTask<WordFavourite>
{
public WordFavouriteIndex()
{
Map = favourites => from favourite in favourites
selec... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("07... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using TestP.data;
namespace TestP.Models
{
public class RechargeSimRepository
{
private readonly TestEntities db = new TestEntities();
/// <summary>
/// Listar Todas las ... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... |
/* **********************************************************************************************************
* The MIT License (MIT) *
* *
* Copyright (c) 2016 Hypermediasystems Ges. f. Software mbH *
* Web: http://www.hypermediasystems.de *
... |
@using System.Web.Http
@using System.Web.Http.Controllers
@using System.Web.Http.Description
@using System.Collections.ObjectModel
@using TemplateWebApplication.Areas.HelpPage.Models
@model Collection<ApiDescription>
@{
ViewBag.Title = "ASP.NET Web API Help Page";
// Group APIs by controller
ILookup<HttpC... |
using System;
using Dgraph4Net.Annotations;
using Newtonsoft.Json;
namespace Dgraph4Net.Identity
{
[DgraphType("AspNetUserLogin")]
public class DUserLogin : DUserLogin<DUserLogin>
{
}
public abstract class DUserLogin<TUserLogin> : AEntity, IEquatable<DUserLogin<TUserLogin>>,
IUserLogin whe... |
using System;
namespace R5T.Magyar
{
public static class SuccessOrFailureHelper
{
public static class StandardRepresentation
{
public const string Failure = "Failure";
public const string Success = "Success";
}
public static SuccessOrFailure FromStand... |
namespace PM.BO.Enums
{
public enum Gender
{
None = 0x00,
Male = 0x01,
Female = 0x02
}
} |
using System;
using System.Windows.Media.Media3D;
namespace Geometry3D
{
public class LineSegment3D
{
public readonly Point3D point1;
public readonly Point3D point2;
public Vector3D Vector { get { return point2 - point1; } }
public LineSegment3D(Point3D point1, Point3D point2... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/angular")
</head... |
//Copyright(c) 2021-2030, Muhammad Rahman
//All rights reserved.
//This source code is licensed under the Apache 2.0 License found in the
//LICENSE file in the root directory of this source tree.
using Market.Price.Provider;
using System.Collections.Generic;
namespace Pricing.Win
{
public class SymbolComparer :... |
using System;
using System.Collections.Generic;
using System.Linq;
using Pathoschild.Stardew.Common;
using Pathoschild.Stardew.Common.Utilities;
using StardewModdingAPI;
using StardewValley;
using StardewValley.Buildings;
using StardewValley.Characters;
using StardewValley.Locations;
using StardewValley.Objects;
using ... |
using AutoFixture;
using Microsoft.Azure.WebJobs.Extensions.DurableTask;
using Microsoft.Extensions.Logging;
using Moq;
using NUnit.Framework;
using SFA.DAS.EmployerIncentives.Abstractions.DTOs.Queries.ApprenticeshipIncentives;
using SFA.DAS.EmployerIncentives.Application.UnitTests;
using SFA.DAS.EmployerIncentives.Fun... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyStik.TimeTable.Data;
using MyStik.TimeTable.DataServices.Booking.Data;
namespace MyStik.TimeTable.DataServices.Booking
{
public enum BookingType
{
green,
yellow,
... |
namespace Core.Entities.Catalog
{
public enum RiskClass
{
I,
II,
III,
IV,
Undefined
}
} |
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Cryptography;
using System.ServiceModel;
using System.Text;
using System.Threading;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Navigation;
using PhoneAdm... |
using FluentAssertions;
using Kros.AspNetCore.Authorization;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;
namespace Kros.AspNetCore.Servic... |
namespace Halforbit.DataStores
{
public interface IValidationError
{
string Message { get; }
}
} |
/* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2015 Ingo Herbote
* http://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dist... |
using System;
using System.Linq.Expressions;
using System.Threading.Tasks;
using BuildingBlocks.Cqrs.Commands;
namespace BuildingBlocks.Core.Scheduling
{
public interface IEnqueueMessages
{
Task Enqueue<T>(T command, string description = null) where T : ICommand;
Task Enqueue(MessageSerialized... |
using System.Collections.Generic;
using DvBCrud.MongoDB.API.CRUDActions;
using DvBCrud.MongoDB.Models;
using DvBCrud.MongoDB.Repositories;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace DvBCrud.MongoDB.API.XMLJSON
{
[ApiController]
[Route("[controller]")]
public abstract cla... |
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Storage.FileProperties
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public partial class StorageItemThumbn... |
namespace nsimplemessagepump.contract.messagecontext
{
public interface IMessageContextModel {}
public sealed class EmptyContextModel : IMessageContextModel {}
} |
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\d3d12umddi.h(12540,9)
namespace DirectN
{
public enum D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS_0080
{
D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_0080_NONE = 0,
D3D12DDI_VIDEO_ENCODER_PICTURE_C... |
/*----------------------------------------------------------------
Copyright (C) 2018 Senparc
文件名:WebSocketHelper.cs
文件功能描述:WebSocket处理类
创建标识:Senparc - 20170127
----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
usi... |
//-----------------------------------------------------------------------
// <copyright file="IOSSupportPreprocessBuild.cs" company="Google LLC">
//
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Y... |
namespace Foxkit
{
using System.Threading.Tasks;
public interface IAuthenticator
{
Task Apply(IRequest request);
ICredentialStore CredentialStore { get; set; }
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace pipelineMvcDemo.Models
{
public class Pipeline
{
public int Length { get; set; }
public int Width { get; set; }
public int Throughput { get; set; }
public int Depth { get;... |
using System.Collections.Generic;
using System.IO;
namespace MarkdownSlider
{
public class TemplateLoader
{
public static List<Template> Load()
{
var templates = new List<Template>();
var currentPath = System.AppDomain.CurrentDomain.BaseDirectory;
TryLoad(P... |
using WordPressRestApiStandard.QueryModel;
namespace WordPressRestApiStandard.UpdateModel
{
public class CategoryUpdate : AttributeGenerator
{
[QueryName(Name = "description")]
public string Description { get; set; }
[QueryName(Name = "name")]
public string Name { get; set; }
... |
// RestifyServer.cs
// Script#/Libraries/Node/Restify
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace NodeApi.Restify {
[ScriptIgnoreNamespace]
... |
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Application.Models
{
/// <summary>
/// Represents a purchase_requests.
/// NOTE: This class is generated from a T4 template - you should not modify it manually.
/// </summary>
pu... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FortuneGUI
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void ... |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
using System;
namespace UsingOut
{
class MainApp
{
static void Divide(int a, int b, out int quotient, out int remainder)
{
quotient = a / b;
remainder = a % b;
}
static void Main(string[] args)
{
int a = 20;
int b = 3;
... |
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
namespace BlazorFluentUI
{
public class FluentUIComponentBase : ComponentBase, IAsyncDisposable
{
[CascadingParameter(Name = "Theme")]
... |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using BethanysPieShop.Models;
namespace BethanysPieShop.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration... |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2019
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the r... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------... |
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine.UIElements.Experimental;
namespace Conway
{
public class OpParams
{
public float valueA = 0;
public float valueB = 0;
public FaceSelections facesel = FaceSelections.All;
public string tags = "";... |
#region License
// Microsoft Public License (Ms-PL)
//
// This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
//
// 1. Definitions
//
// The terms "reproduce," "reproduction," "derivative works," and "d... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KSP;
using UnityEngine;
using KSPPluginFramework;
namespace KerbalAlarmClock
{
public class AngleRenderPhase : MonoBehaviourExtended
{
public Boolean isDrawing { get; private set; }
/// <summary>
... |
// <copyright file="DistributedDictionaryTests.cs" company="Gridion">
// Copyright (c) 2019-2021, Alex Efremov (https://github.com/alexander-efremov)
// </copyright>
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
//... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*=============================================================================
**
** Class: ICustomAdapter
**
** Author: David Mortenson (dmortens)
**
** Purpose: This the base interface that custom adapters can chose to implem... |
using System;
using System.Collections.Generic;
using System.Net;
namespace ZipkinTracer.Models
{
public class Span
{
public string Name { get; }
public string Id => TraceInfo.SpanId;
public string ParentId => TraceInfo.ParentSpanId;
public string TraceId => TraceInfo.TraceId;
... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \generate-code.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameManager : MonoBehaviour
{
public GameObject[] spawners;
private int level = 0;
private int currentScene = 0;
private int zombieCount = 0;
private int zombieLimit = 10;... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
using System;
using System.Runtime.CompilerServices;
public class BringUpTest
{
const int Pass = 100;
const int Fail = -1;
[MethodImplAttribute(MethodImplOptions.NoI... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fi... |
namespace P03_FootballBetting.Data.Models
{
using System;
using System.Collections.Generic;
using System.Text;
public class Game
{
public Game()
{
this.Bets = new HashSet<Bet>();
this.PlayerStatistics = new HashSet<PlayerStatistic>();
}
publi... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using LibGit2Sharp.Core;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp
{
/// <summary>
/// Provides access to configuration variables for a repository.
/// </summary>
public class C... |
// Author: Wayne Gu
// Created: 2016-6-20 14:00
// Project: HttpLibrary.Net
// License: MIT license
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HttpLibrary.Interop
{
/// <summary>
/// Platform specific device and app info getter... |
using UnityEngine;
using UnityEngine.EventSystems;
public class DPad8 : MonoBehaviour, IDPad, IPointerDownHandler, IDragHandler, IPointerUpHandler
{
public float Horizontal { get { return input.x; } }
public float Vertical { get { return input.y; } }
public Vector2 Direction { get { return new Vector2(Hor... |
using System.Collections.Generic;
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable UnusedMember.Global
namespace IctBaden.Stonehenge3.Test.Serializer
{
public class NestedClass
{
public string Name { get; set; }
public List<NestedClass2> Nested { get; set; }
}
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
namespace LightBuzz.Settings
{
/// <summary>
/// Provides some extension methods for setting, getting and deleting application data.
/// </summary>
public static c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZeldaOracle.Common.Audio;
using ZeldaOracle.Common.Geometry;
using ZeldaOracle.Common.Graphics;
using ZeldaOracle.Common.Graphics.Sprites;
using ZeldaOracle.Common.Scripting;
using ZeldaOracle.Game.Entities.Players;
using Zelda... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
namespace UnityModStudio.Common
{
public static class GameInformationResolver
{
public sta... |
// Copyright (c) Amer Koleci and contributors.
// Distributed under the MIT license. See the LICENSE file in the project root for more information.
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
namespace Vortice.Vulkan
{
public unsafe static class ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Utilities.Editor;
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Editor
{
[CustomEditor(typ... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Polly.Retry
{
internal partial interface IRetryPolicyState<TResult>
{
Task<bool> CanRetryAsync(DelegateResult<TResult> delegateResult, CancellationToken ct, bool continueOnCapturedContext);
}
} |
// 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 System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
usi... |
@model Nge.Web.Models.Codes.IndexViewModel
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="All" class="text-danger"></div>
<div class="form-group">
<label asp-for... |
// 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.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using S... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using MixedRemoteViewCompositor.Media;
using MixedRemoteViewCompositor.Network;
namespace Viewe... |
using System;
using Microsoft.AspNetCore.Http;
namespace FeatureNinjas.LogPack.Filters
{
public class PathExcludeFilter : IExcludeFilter
{
private string _path;
private bool _isCaseSensitive;
public PathExcludeFilter(string path, bool isCaseSensitive)
{
_pat... |
using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Tests.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfig... |
/*
* Copyright 2018 JDCLOUD.COM
*
* 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - RetrieveWeatherForecast</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" hr... |
using Autofac.LooseNaming;
namespace Autofac
{
/// <summary>
/// Autofac container builder with custom registration sources.
/// </summary>
public class DataTransferContainerBuilder : ContainerBuilder
{
/// <summary>
/// Creates a new instance of <see cref="DataTransferContainerBui... |
using Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Service.Contracts;
using System.Linq;
namespace AXIOM.Controllers
{
public class CommentController : Controller
{
private ICommentService commentService;
public CommentController(ICommentService comm... |
/* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2020 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... |
//
// Copyright 2011-2013, Xamarin Inc.
//
// 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/LICENSE-2.0
//
// Unless required by appl... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Threading;
namespace STAMain
{
internal static class STAMain
{
private c... |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UtilityBrickCatcher : MonoBehaviour
{
public int playerNumber;
private void OnTriggerEnter(Collider brick) {
updatePlayerLives(playerNumber);
Destroy(brick.gameObject);
}
private... |
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// --------... |
namespace OpenClosedAfter
{
public class Triangle : IShape
{
public decimal Width { get; set; }
public decimal Height { get; set; }
public Triangle() { }
public Triangle(decimal width, decimal height)
{
Width = width;
Height = height;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.