text
stringlengths
1
932k
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Threading; using System.Threading.Tasks; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Schema; namespace Microsoft.Bot.Builder.AI.QnA.Utils { internal class BindToActivity : ITemplate<Activity>...
namespace MSBuildLogAnalyzer { using System; using System.Collections.Generic; using System.IO; using System.Linq; using MSBuildLogAnalyzer.Build; using MSBuildLogAnalyzer.Model; public partial class TargetSummaryTab { public TargetSummaryTab() { this.Initia...
// <copyright file="Component.cs" company="James Jackson-South"> // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // </copyright> namespace ImageSharp.Formats { /// <summary> /// Represents a single color component /// </summary> internal struct...
#pragma warning disable 162,168,649,660,661,1522 using System; using System.Text; using System.Collections.Generic; using System.Collections; using System.Collections.Concurrent; using System.Runtime.InteropServices; using System.Data; using System.IO; using System.Threading; using System.Threading.Tasks; using System....
// 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 ...
using System.Collections.Generic; using Newtonsoft.Json; namespace TextAnalytics.Models { public class KeyPhrasesResult { [JsonProperty(PropertyName = "documents")] public IList<KeyPhraseDocumentResult> Documents { get; set; } [JsonProperty(PropertyName = "errors")] public ILis...
/* * Copyright 2020 LINE Corporation * * LINE Corporation licenses this file to you 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 ...
using System; using System.Threading; using log4net.Config; using NServiceBus.Installation.Environments; using NServiceBus.Tracking.Sample.Fakes; using NServiceBus.Tracking.Sample.Messages; namespace NServiceBus.Tracking.Sample { class Program { static void Main(string[] args) { Xm...
// 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 Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.ValueGeneration; namespace Microsoft.EntityFrameworkCor...
// 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.Reflection; namespace Microsoft.Extensions.Hosting { internal class HostFactoryResolver { public static readonly string BuildWebHost = nam...
/* * Copyright (c) 2009, Stefan Simek * * 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 rights to use, copy, modify, merge, publi...
using System.Threading.Tasks; namespace MakeLemonadeBot.Communication { public sealed class Show : Interaction<None, Conversation> { private readonly Content.Collection collection; private readonly Talk talk; private readonly Conversation empty; private readonly Conversation sh...
using System; namespace SDDL.Domain.Model { public class DownloadModel { public int ID { get; set; } public Guid UUID { get; set; } public string URL { get; set; } public int Retries { get; set; } public DownloadStatus Status { get; set; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml.Serialization; namespace MpdBaileyTechnology.Shared.IO { /// <summary> /// Reads/Writes objects to an XML file using XmlSerializer /// /// Notes: /// If you have class contains ...
using System; namespace Project1 { public class Class1 { public void Method() { } } }
// *********************************************************************** // Assembly : Heidelpay.Payment // *********************************************************************** // <copyright file="BasketItem.cs" company="Heidelpay"> // Copyright (c) 2019 Heidelpay GmbH. All rights reserved. // </copyr...
using System; using System.Text; using HearthStone_Rip_Off.Contracts; namespace HearthStone_Rip_Off.Cards.Creatures { public class Ogre : Creature { public Ogre() : base("Ogre", 6, 6, 7, CreatureType.Neutral) { } } }
using Microsoft.AspNetCore.Mvc; namespace Saas.SignupAdministration.Web.Controllers { public class RequestHeaderController : Controller { [HttpGet] public IActionResult Index() { return View(); } } }
/* * Copyright (C) 2021 - 2021, SanteSuite Inc. and the SanteSuite Contributors (See NOTICE.md for full copyright notices) * Copyright (C) 2019 - 2021, Fyfe Software Inc. and the SanteSuite Contributors * Portions Copyright (C) 2015-2018 Mohawk College of Applied Arts and Technology * * Licensed under the Apache ...
using System.Threading.Tasks; using SlackConnector.Connections.Clients.Channel; using SlackConnector.Connections.Clients.Chat; using SlackConnector.Connections.Clients.File; using SlackConnector.Connections.Clients.Handshake; using SlackConnector.Connections.Sockets; namespace SlackConnector.Connections { interna...
using FluentValidation; using LifeBank.Application.Registration.Commands; namespace LifeBank.Application.Registration.RegisterDonor.Commands { public class RegisterDonorCommandValidator : AbstractValidator<RegisterDonorCommand> { public RegisterDonorCommandValidator() { RuleFor(v =...
using System; namespace Equinor.Lighthouse.Api.Domain.AggregateModels.ActivityAggregate; public class Activity : PlantEntityBase, IAggregateRoot { public Activity(string plant) : base(plant) { } public string? ActivityNo { get; set; } public string? Description { get; set; } public long Seq...
namespace MassTransit.Azure.ServiceBus.Core.Transport { using System.Threading; using System.Threading.Tasks; using Context; using Contexts; using GreenPipes; using Microsoft.Azure.ServiceBus; public class SessionReceiver : Receiver { readonly ClientContext _context; ...
using FluentPOS.Modules.Identity.Core.Entities; using FluentPOS.Shared.Core.Constants; using FluentPOS.Shared.Core.Features.ExtendedAttributes.Commands; using FluentPOS.Shared.DTOs.ExtendedAttributes; using FluentPOS.Shared.Infrastructure.Controllers; using MediatR; using Microsoft.AspNetCore.Authorization; using Micr...
using System; using System.Collections.Generic; using MMEData; namespace MMEViewer.MMEViewModel { internal class MMEChannelsModel : IMMESubTestModel { public MMEChannels ActualChannels { get; } List<IMMESubTestModel> subElements; public List<IMMESubTestModel> SubElements { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Model; using MySql.Data.MySqlClient; namespace Controller { public class Conexao { private MySqlConnection myConn; public Conexao() { myConn = new MyS...
int[] switchLights(int[] a) { var count = 0; for (int i = a.Length - 1; 0 <= i; --i) { if (1 == a[i]) { ++count; } if (1 == (count & 1)) { a[i] = 0 == a[i] ? 1 : 0; } } return a; }
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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 o...
// ************************************************************* // Copyright (c) 1991-2020 LEAD Technologies, Inc. // All Rights Reserved. // ************************************************************* using System; using Leadtools; namespace Leadtools.Demos {...
using System; using UnityEngine; using System.Runtime.CompilerServices; using System.Text; namespace ImGuiNET { public unsafe partial struct ImGuiWindowClass { public uint ClassId; public uint ParentViewportId; public ImGuiViewportFlags ViewportFlagsOverrideSet; public ImGuiView...
using System.Drawing; using System.Windows.Forms; namespace BrewBot { public partial class Images : Form { public Images() { InitializeComponent(); } public Image Image { get { return pictureBox1.Image; } set { ...
using System; using Emeraude.Application.Admin.EmPages.Schema; using Emeraude.Contracts; using MediatR; namespace Emeraude.Application.Admin.EmPages.Data.Requests.EmPageDataDelete; /// <summary> /// Generic command that delete an entity. /// </summary> /// <typeparam name="TEntity">Target entity.</typeparam> /// <ty...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WebAPI.Models.Entities; using RoomManagement.Entities; namespace RoomManagement { public class BookingManager : IBookingManager { private IRoomManagementDatabasseEntities _dbContex...
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace FreeCourse.Web.Services.Interfaces { public interface IClientCredentialTokenService { Task<String> GetToken(); } }
using System; using Autofac; using NUnit.Framework; using Orchard.Environment.Configuration; using Orchard.Mvc; using Orchard.Tests.Stubs; using Orchard.Widgets.RuleEngine; using Orchard.Widgets.Services; namespace Orchard.Tests.Modules.Widgets.RuleEngine { [TestFixture] public class UrlRuleProviderTest { ...
// 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. #nullable enable using System; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.CodeAnalysis.CSha...
using System.Collections.Generic; using System.Threading.Tasks; namespace Infrastructure.Service.Abstract { public interface IGenderService { Task<List<string>> GetAllGenders(); } }
using System; namespace Umbraco.Cms.Core { public static partial class Constants { public static class SystemDirectories { /// <summary> /// The aspnet bin folder /// </summary> public const string Bin = "~/bin"; // TODO: Shouldn't th...
namespace Abraks.Web.Areas.Dancer.Controllers { using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; [Area("Dancer")] public abstract class DancerController : Controller { } }
using System; using System.Windows.Data; namespace ExtendedLoggingKflop.Converters { public class MyEnumToBooleanConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value.Equals(para...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Phonebook { class Program { public static string[,] matrix = new string[100, 2]; public static int LastIndexOf = 0; private static void Main() { ...
using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace WMSMobil { public static class Mesaj { private const string basariMesaj = "İşlem başarılı bir şekilde gerçekleştirildi."; private const string hataMesaj = "Hata! İşlem ge...
using NetWork.Utilities; using ProtoBuf; using System; using System.Collections.Generic; namespace Package { [ForRecv(2181), ForSend(2181), ProtoContract(Name = "GetGuildWarChampionDailyPrizeRes")] [Serializable] public class GetGuildWarChampionDailyPrizeRes : IExtensible { public static readonly short OP = 2181...
using System; using Org.BouncyCastle.Math.Raw; using Org.BouncyCastle.Utilities.Encoders; namespace Org.BouncyCastle.Math.EC.Custom.Sec { internal class SecT409R1Curve : AbstractF2mCurve { private const int SECT409R1_DEFAULT_COORDS = COORD_LAMBDA_PROJECTIVE; private const int SECT409R...
using MLAPI; using MLAPI.Extensions.LagCompensation; namespace UnityEditor { [CustomEditor(typeof(TrackedObject), true)] [CanEditMultipleObjects] public class TrackedObjectEditor : Editor { private TrackedObject m_TrackedObject; private bool m_Initialized; private void Init() ...
// 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.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis.Diagnostics.Analyzers.NamingStyles; using Roslyn.Test.Utilities; using Xuni...
using System; using Abp.Dependency; namespace Psy.Timing { public class AppTimes : ISingletonDependency { /// <summary> /// Gets the startup time of the application. /// </summary> public DateTime StartupTime { get; set; } } }
namespace UblTr.Common { [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http:/...
using AutoMapper; using Sirius.Domain.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Sirius.API.Models { public class MapperProfile : Profile { public MapperProfile() { CreateMap<UserModel, UserView>(); ...
using HexCS.Data.Persistence; using HexCS.Data.Serialization; namespace HexCS.Networking { /// <summary> /// Implements common functionality shared by ReequestResponse objects /// </summary> public abstract class RequestBase<TType> : ISimpleSerializable, IMessagable { #region API /...
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // 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 requ...
using Lego.Models; using Lego.ViewModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace Lego.Commands { class OpenCommand : ICommand { public LegoViewModel LegoViewModel { get; set; } pu...
using SUS.HTTP; using System; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MyFirstMvcApp { class Program { static async Task Main(string[] args) { IHttpServer server = new HttpServer(); server.AddRoute(...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Destructor : MonoBehaviour { void Start() { SetCountText (); }// ya que el setcounttext es llamado varias veces... pero tambien debia ser llamado desde el inicio del juego... lo converti en un me...
using Microsoft.Extensions.Configuration; namespace Woof.ServiceInstaller; /// <summary> /// Defines a Windows Service metadata sufficient to register the service. /// </summary> public class ServiceMetadata { /// <summary> /// Gets the service's name (OS platform dependent). Sets the Windows Service name. ...
using System; using System.Collections.Generic; using System.Linq; using JustGiving.EventStore.Http.Client; using JustGiving.EventStore.Http.SubscriberHost.Monitoring; using log4net; namespace JustGiving.EventStore.Http.SubscriberHost { public class EventStreamSubscriberSettingsBuilder { private IEvent...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; namespace AMAAirlines { public class Program { public static void Main(string[] args) { ...
// NUnit 3 tests // See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation using System.Collections; using System.Collections.Generic; using NUnit.Framework; using Rhino.DocObjects; namespace RhinoPlugin.Test { [TestFixture] public class TestClass { [Test] public void T...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
using ColossalFramework; using Harmony; using Klyte.Commons.Extensions; using Klyte.Commons.Utils; using Klyte.TransportLinesManager.Extensions; using Klyte.TransportLinesManager.Interfaces; using Klyte.TransportLinesManager.Utils; using Klyte.TransportLinesManager.Xml; using System; using System.Collections.Generic; ...
using System; using System.Collections.Generic; using System.Text; namespace Resonance.RPC { internal class ResonanceRegisteredService { public Type InterfaceType { get; set; } public Type ServiceType { get; set; } public Object Service { get; set; } public RpcServiceCreatio...
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace StaticFilesSample { public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddC...
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace DotNetPrograms.DSAndSync.CallBack { public delegate void MyDelegate(long sum); public class CallBack { private int _count; // ref: https://masterdotnet.com/csharptutorial/threading-in-csharp-p...
namespace CompositionVsInheritance { public class Ceiling { public string BuildCeiling() => "Building a ceiling..."; } }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Windows.Forms; namespace cb_downloader_v2 { class ModelsGridWrapper { private readonly DataGridView _grid; public ModelsGridWrapper(DataGridView grid) { _grid = gri...
using System; using Umbraco.Core.Persistence.DatabaseModelDefinitions; using Umbraco.Core.Persistence.Migrations.Syntax.Delete.Column; using Umbraco.Core.Persistence.Migrations.Syntax.Delete.Constraint; using Umbraco.Core.Persistence.Migrations.Syntax.Delete.DefaultConstraint; using Umbraco.Core.Persistence.Migrations...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // QueuedMap.cs // // // A key-value pair queue, where pushing an existing ...
using System; using System.Threading.Tasks; namespace Fp.Utility.Stateless { public partial class StateMachine<TState, TTrigger> { internal abstract class InternalActionBehaviour { public abstract void Execute(Transition transition, object[] args); public abstract Task ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Start_image : MonoBehaviour { private int random; //Gameobjcet設定 [SerializeField] private GameObject a; [SerializeField] private GameObject b; [SerializeField] private GameObject c; ...
// ***************************************************************************** // BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE) // © Component Factory Pty Ltd, 2006 - 2016, All rights reserved. // The software and associated documentation supplied hereunder are the // prop...
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using EFCore.Entities; using Microsoft.EntityFrameworkCore; namespace EFCore { public class MyContext : DbContext { public MyContext(DbContextOptions<MyContext> options) : base(options) ...
using System.Text; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Versioning; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Micr...
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Gov.Lclb.Cllb.Interfaces.Models { using Newtonsoft.Json; using System.Collections; using System.Collections....
using AutoMapper; using Codex.Core.Repositories; using MongoDB.Bson; using System.Collections.Generic; using System.Linq; namespace Codex.Core.Tools.AutoMapper { public class CoreMappingProfile : Profile { public CoreMappingProfile() { CreateMap<List<ObjectId>, List<string>>().Conv...
#define CODE using System; using System.Linq; using EntryPoint; using System.Collections.Generic; using EntryPoint.Exceptions; namespace Website { class article_arguments { /// ## Arguments /// /// For a simple application you may not need Commands; `CliArguments` classes are used ...
using Microsoft.Toolkit.HighPerformance.Buffers; using System.Buffers; using System.Runtime.CompilerServices; using System.Text; using static D2SLib.IO.InternalBitArray; namespace D2SLib.IO; public sealed class BitWriter : IBitWriter, IDisposable { private const int STACK_MAX = 0xff; private InternalBitArra...
using Domain.Entitties.Library; using Domain.Interfaces; using MediatR; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Application.Services.LibraryService.BorrowedEditionFeatures.Queries { public class GetReaderBorrowedEditions { public record Query(st...
using NHibernate.Cfg.MappingSchema; namespace NHibernateHbmToFluent.Converter.Extensions.NHibernate { public static class HbmComponentExtensions { public static string GetPropertyName(this HbmComponent item) { return item.name; } public static string GetReturnType(this HbmComponent item) { return it...
// This code is distributed under MIT license. // Copyright (c) 2015 George Mamaladze // See license.txt or http://opensource.org/licenses/mit-license.php using System; namespace xClient.Core.MouseKeyHook { /// <summary> /// Provides keyboard and mouse events. /// </summary> public interface IKe...
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.ComponentModel; using System.Drawing; namespace SplitByte { [ToolboxBitmap(typeof(ComboBox))] public class OwnerDrawnComboBox : ComboBox { public OwnerDrawnComboBox() : base() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using ServiceStack.IO; namespace ServiceStack.VirtualPath { public class MultiVirtualPathProvider : AbstractVirtualPathProviderBase { protected IList<IVirtualPathProvider> ChildProviders; public override IVirt...
using Expressway.Contracts.Repository; using Expressway.Database.Context; using Expressway.Infrastructure.GenericRepository; using Expressway.Model.Domain; using System; using System.Collections.Generic; using System.Text; namespace Expressway.Repository.Core { public class RideRepository : GenericRepository<Ride...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Common.Core.Services; using Microsoft.R.Components.InteractiveWorkflow; using Microsoft.R.Editor.Functions; using Microsoft.R.LanguageServer.Commands; using Microsof...
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Csrs.Interfaces.Dynamics.Models { using Newtonsoft.Json; using System.Collections; using System.Collections....
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable enable using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Core; using Microsoft.AspNetCore.Mvc.Routing; using Micr...
// Copyright (c) 2017 Andrew Vardeman. Published under the MIT license. // See license.txt in the FileSharper distribution or repository for the // full text of the license. using System; using System.Collections.Generic; using System.IO; using System.Threading; using FileSharperCore.Util; using Xceed.Wpf.Toolkit.Pro...
/// Apache Commons Math 3.6.1 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2...
using Executorlibs.Bilibili.Protocol.Models.General; namespace Executorlibs.Bilibili.Protocol.Models.Danmaku { /// <summary> /// 表示具有房管的信息接口 /// </summary> public interface IAdminMessage : IBilibiliMessage { /// <summary> /// 是否为房管 /// </summary> bool IsAdmin { get; ...
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from shared/dxgi1_5.h in the Windows SDK for Windows 10.0.22000.0 // Original source is Copyright © Microsoft. All rights reserved. using NUnit.Framework; using S...
// <auto-generated /> using System; using Lpb.Identityserver.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Lpb.Identityserver.Data.Migrations.IdentitySe...
// The MIT License (MIT) // // CoreTweet - A .NET Twitter Library supporting Twitter API 1.1 // Copyright (c) 2014 lambdalice // // 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 res...
@model BookStore.Models.AddPhoneNumberViewModel @{ ViewBag.Title = "Phone Number"; } <h2>@ViewBag.Title.</h2> @using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { @Html.AntiForgeryToken() <h4>Add a phone number</h4> <hr /> @Html...
/* * Copyright 2010-2013 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...
namespace Lider_Unilever.core.models.type { public class IDocumentHeader { public int PKID { get; set; } public string CodigoDistribuidor { get; set; } public string CodigoCliente { get; set; } public string CodigoVendedor { get; set; } public string CDPedido { get; set; } ...
// // Copyright (c) 2004-2021 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of s...
using System; using System.Collections.Generic; using System.Text; namespace EM.GIS.Data { /// <summary> /// 进度处理类 /// </summary> public class ProgressHandler : IProgressHandler { public Action<int, string> Handler { get; set; } public void Progress(int percent, string message = nu...
// 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; namespace EdgeSharp { public static partial class Interop { public static partial cl...
using Microsoft.AspNetCore.Mvc; namespace OnlineMenu.Api.Controllers { [Route("api/[controller]")] public class CustomerController: ControllerBase { [HttpGet] public IActionResult Authenticate() { return null!; // TODO: Decide how to implement authentication for customer...
// // Copyright (c) 2004-2019 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of s...
namespace MassTransit.MartenIntegration.Saga { using Marten; using MassTransit.Saga; public static class MartenSagaRepository<TSaga> where TSaga : class, ISaga { public static ISagaRepository<TSaga> Create(IDocumentStore documentStore) { var consumeContextFactory = ...