content
stringlengths
23
1.05M
using System; using DddCoreExample.Domain.Models.Customers; using DddCoreExample.Domain.Models.Products; using DddCoreExample.Domain.Models.Tax; using DddCoreExample.Domain.Repository; using DddCoreExample.Domain.Specification.Tax; namespace DddCoreExample.Domain.Services { public class TaxService : IDomainServic...
using System; using JetBrains.Annotations; using MediatR; namespace StreamCommunity.Application.ViewerGames.Enlistments.Events; /// <summary> /// This event is published, if a player requesting an enlistment for a viewer game fails. /// </summary> public class PlayerEnlistmentFailed : INotification { /// <summar...
using System; using System.Reflection; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using PickEmLeague.Registrations; using PickEmLeagueModels.Profiles; namespace PickEmLeagueServiceTests { public static class ServiceHelper { public static IServiceProvider ...
namespace FSight.Core.Enums { public enum UserType { Customer = 0, Developer = 1, ProjectManager = 2 } }
using Abp.Configuration.Startup; using Hex.Abp.MongoDB.Configuration; namespace Hex.Abp.Configuration.Startup { public static class AbpMongoDbConfigurationExtensions { public static IAbpMongoDbModuleConfiguration AbpMongoDb(this IModuleConfigurations configurations) { return config...
using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; namespace VictorOpsBackendApi { public class RedisLeasedLock : ILeasedLock { private readonly IRedisClient _redisClient; private readonly string _lockKey; private readonly TimeSpan _l...
namespace GUI.Controls { partial class GLViewerTrackBarControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary>...
using PhotoFrame.Logic.Config; using System; using System.Linq; using System.Threading; using System.Drawing; namespace PhotoFrame.Logic.BL { public class FrameController : IFrameController { private readonly Random _random; private readonly Timer _photoSwitchTimer; private TimeSpan _t...
using System; using System.IO; using System.Net; namespace SniffAvtr { internal class UDPPacket { //UDP header fields private ushort u16SourcePort; //Sixteen bits for the source port number private ushort u16DestinationPort; //Sixteen bits for the destination port number private us...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LinearInterpolation : MonoBehaviour { private Light myLight; // Start is called before the first frame update void Start() { // In this case, result = 4 float result = Mathf.Lerp(3f, 5f, 0.5f); ...
using Sdf.Wechat.Work.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sdf.Wechat.Work.Service.Token { public class MemoryAccessTokeStore : IAccessTokeStore { private static Dictionary<string, AccessTokenModel> dic = new Dictionary<string, AccessTo...
using CoinbaseExchange.NET.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CoinbaseExchange.NET.Endpoints.Account { public class GetAccountHoldsRequest : ExchangePageableRequestBase { public GetAccountHoldsRequest(stri...
namespace Pixicity.Domain.Transversal { public interface IAppPrincipal { long Id { get; set; } string UserName { get; set; } bool IsAdmin { get; set; } } }
namespace mazes.Core.Grids.Interfaces { public interface IPathGrid: IColoredGrid { int PathLength { get; } Distances Path { get; set; } } }
// <copyright file="IMainViewModel.cs" company="Glenn Watson"> // Copyright (c) 2018 Glenn Watson. All rights reserved. // See LICENSE file in the project root for full license information. // </copyright> namespace ReactiveGit.Gui.Core.ViewModel { using System.Collections.Generic; using System.Windows.Input;...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace ServiceWCF.DataContracts { [DataContract] public class ResultatOperation { [DataContract] public enu...
// Copyright (c) 2020 Sergio Aquilini // This code is licensed under MIT license (see LICENSE file for details) using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Silverback.Diagnostics; using Silverback.Messaging.Broker.Behaviors; using Silverback.Messaging.Messages;...
using System.Diagnostics.CodeAnalysis; using PutridParrot.Presentation; using PutridParrot.Presentation.Interfaces; namespace Tests.Presentation.Helpers { [ExcludeFromCodeCoverage] class GenderFactory : IFactory { public object Create(params object[] args) { var gender = new Ex...
using System; namespace Mnemosyne2Reborn.BotState { public interface IBotState : IDisposable { /// <summary> /// Adds a post to the checked list /// </summary> /// <param name="postId">Post ID to add to checked list</param> void AddCheckedPost(string postId); ///...
using System; using System.ComponentModel; using System.Windows.Forms; namespace PathFinding { /// <summary> /// Class that extends the button to have some additional properties related to the board. /// </summary> public class PositionInTheLabyrinth : Button { public PositionInTheLabyrint...
namespace InterviewTest; using InterviewTest.Models; using Nancy; using Nancy.ModelBinding; using Nancy.Validation; using System; public sealed class StudentModule : NancyModule { public StudentModule(StudentCollection studentList) : base("/students") { Get("/", args => { return st...
// // 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...
using System; using EtlLib.Data; using EtlLib.Pipeline; using EtlLib.Support; namespace EtlLib.Nodes { public abstract class AbstractNode : INode { public Guid Id { get; private set; } public INodeWaiter Waiter { get; private set; } public IErrorHandler ErrorHandler { get; p...
using DiscUtils.Core.CoreCompat; namespace DiscUtils.Containers { public static class SetupHelper { public static void SetupContainers() { Core.Setup.SetupHelper.RegisterAssembly(ReflectionHelper.GetAssembly(typeof(Vhd.Disk))); } } }
// // Copyright 2018-2020 Dynatrace 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BoardPiece : MonoBehaviour { public GameObject boardpiece; public string type; public float move; private bool isAtTop; // TODO deal later bool isVisible = false; // Use this for initialization void Start () { mo...
namespace Windows.UI.Xaml { public partial class ExceptionRoutedEventArgs : RoutedEventArgs { public ExceptionRoutedEventArgs(string errorMessage) { ErrorMessage = errorMessage; } public string ErrorMessage { get; } } }
using Esprima.Utils; namespace Esprima.Ast { public sealed class TaggedTemplateExpression : Expression { public readonly Expression Tag; public readonly TemplateLiteral Quasi; public TaggedTemplateExpression(Expression tag, TemplateLiteral quasi) : base(Nodes.TaggedTemplateExpression)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ControlPanelPlugin { public class DockingViewButtonItem : ButtonItem { public DockingViewButtonItem(bool state = false) : base(Constants.Panel.SwitchId.SWITCH_DOCKING_MODE, state...
namespace Orchard.FileSystems.Media { public interface IMimeTypeProvider : IDependency { string GetMimeType(string path); } }
namespace Inoxie.Tools.JwtAuth.Models.Exceptions; internal class WrongCredentialsException : Exception { public WrongCredentialsException(string message) : base(message) { } }
using ProjetoModeloDDD.Application.Interface; using ProjetoModeloDDD.Domain.Entities; using ProjetoModeloDDD.Domain.Interfaces.Services; using System; using System.Collections.Generic; namespace ProjetoModeloDDD.Application { public class BookAppService : AppServiceBase<Book>, IBookAppService { privat...
// PkixCrlUtilities using Org.BouncyCastle.Pkix; using Org.BouncyCastle.Utilities.Collections; using Org.BouncyCastle.X509; using Org.BouncyCastle.X509.Store; using System; using System.Collections; public class PkixCrlUtilities { public virtual ISet FindCrls(X509CrlStoreSelector crlselect, PkixParameters paramsPkix,...
// // TrackerTier.cs // // Authors: // Alan McGovern <alan.mcgovern@gmail.com> // // Copyright (C) 2006 Alan McGovern // // 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 restricti...
using System.Collections; using System.Collections.Generic; using UnityEngine; using Mirror; public class CreateManyMovingCircleObjects : NetworkBehaviour { public CircleMovingObject prefab; public int numberObjects; public float radius; public float height; public float speedApply; [HideInIn...
/* Copyright 2019 Cogniac 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 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
namespace Bodoconsult.Core.Windows.Network.Dns { /// <summary> /// Different types of DNS zone in MS DNS Server /// </summary> /// <remarks>For creation of new zones the list is different</remarks> public enum NewZoneType { Primary, Secondary, /// <remarks>Server 2003+ o...
using Lib; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Test.Lib { [TestClass] public class SingletonBaseTest : TestBase { private class TestASingleton : SingletonBase<TestASingleton> { public int X = 1; } private class TestBSingleton : Singleto...
using Google.Apis.Auth.OAuth2; using Google.Apis.Services; using Google.Apis.Sheets.v4; using System.IO; namespace GoogleSheetsAPI { public class GoogleSheetsHelper { public SheetsService Service { get; set; } const string APPLICATION_NAME = "GroceryStore"; static readonly string[] Sco...
using System; using System.Xml.Linq; using Tida.Geometry.Primitives; using Tida.Canvas.Infrastructure.DrawObjects; using Tida.Canvas.Shell.Contracts.Serializing; using System.ComponentModel.Composition; using Tida.Canvas.Shell.Contracts.Common; namespace Tida.Canvas.Shell.Serializing { /// <summary> /// 线段的序...
using CASA.Framework.ClientRouting.Contracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CASA.Core.Test.Unit.Helper { public class ClientRouterMock : IClientRouter { public string GetConnectionStringForJWT(string jWT) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZLib { public class Class1 { // 20200324, 安裝 .net 4.8 NET Framework 4.8 Developer Pack 後, 才能看到 Target Framewrok = .net 4.8 的選項. } }
using System.Collections.Generic; using System.Linq; using MonoGame.Extended.TextureAtlases; namespace MonoGame.Extended.Sprites { public class SpriteSheet { public SpriteSheet() { Cycles = new Dictionary<string, SpriteSheetAnimationCycle>(); } public TextureAtlas T...
using System; namespace Telerik.JustDecompiler.Decompiler.LogicFlow.Exceptions { class TryFinallyLogicalConstruct : ExceptionHandlingLogicalConstruct { public TryFinallyLogicalConstruct(BlockLogicalConstruct @try, BlockLogicalConstruct @finally) { InitiExceptionHandlingLogicalConstruct(@try); Fin...
using BookingsApi.Domain.RefData; using Microsoft.EntityFrameworkCore.Migrations; namespace BookingsApi.DAL.Migrations { public partial class AddHearingTypesForCivilAndFinancial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.InsertDat...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObstacleFeedback : MonoBehaviour // If the player hits a wall, it will stop moving { private void OnCollisionEnter(Collision aCollision) { if (aCollision.collider.gameObject.tag == "Player") ...
// Copyright (c) 2018-2021 dotBunny Inc. // dotBunny licenses this file to you under the BSL-1.0 license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using CommandLine; namespace K9.Proc...
using System; using Serilog; namespace ZigBeeNet.PlayGround { class Program { static void Main(string[] args) { // Configure Serilog Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .WriteTo.Console() .CreateLogge...
using System; using System.ComponentModel; using System.Diagnostics; using System.Threading; using System.Windows; using KLibrary.Labs.UI.Input; using Keys = System.Windows.Forms.Keys; namespace Speedrunner.Activities { [DebuggerDisplay(@"\{{GetType().Name}: {Timeout} ms\}")] public class Delay : A...
namespace AspNetCore.Base { public static class Messages { public const string RequestInvalid = "The request is invalid."; public const string RequestCancelled = "The request was cancelled."; public const string RequestTimedOut = "The request timed out."; public const string Unk...
#if USE_HOT using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using System.Linq; using ILRuntime.CLR.TypeSystem; using ILRuntime.CLR.Method; using ILRuntime.Runtime.Enviorment; using ILRuntime.Runtime.Intepreter; using ILRuntime.Runtime.Stack; using ILRuntime...
// 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.Reactive; using System.Threading.Tasks; namespace Microsoft.Its.Domain { internal class AnonymousCommandHandler<TTarget, TCommand> : IC...
using System; using System.ComponentModel.DataAnnotations; #pragma warning disable 1591 /*XML Doc String Warning*/ namespace legendary_garbanzo.Models { public class User { [Key] public Guid UserId { get; set; } [Required] [MaxLength(64)] public string FirstNa...
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using static Root...
/* * Created by SharpDevelop. * User: Riccardo Bicelli <r.bicelli@gmail.com> * Date: 07/05/2018 * Time: 16:50 * */ using System; using System.IO; namespace USBWatchdogControl { /// <summary> /// Global Class /// </summary> public static class Globals { public const string INI_FILE = "usbwatchdog-config...
// Project: Aguafrommars/TheIdServer // Copyright (c) 2020 @Olivier Lefebvre using System.Collections.Generic; namespace Aguacongas.IdentityServer.Store.Entity { /// <summary> /// Localizable interface /// </summary> /// <typeparam name="T"></typeparam> public interface ILocalizable<T> where T: IE...
using System; using AutoMapper; using Tracker.Data.Entities; using Tracker.Domain.Models; namespace Tracker.Domain.Mapping { public partial class UserRoleProfile : AutoMapper.Profile { public UserRoleProfile() { CreateMap<Tracker.Data.Entities.UserRole, Tracker.Domain.Models...
// <copyright file="OperationType.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> namespace Microsoft.Vega.Test.Helpers { /// <summary> /// Perf test operation types /// </summary> public enum OperationType { /// <summar...
/********************************************* 作者:曹旭升 QQ:279060597 访问博客了解详细介绍及更多内容: http://blog.shengxunwei.com **********************************************/ using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using...
using System.Threading.Tasks; using MouseflowReport.Util; using MouseflowReport.Core; namespace MouseflowReport { /// <summary> /// Generate CSV report(s) for Mouseflow connected Website(s) with API access. /// </summary> class MouseflowReport { static int Main(string[] args...
using System; using System.Collections.Generic; using System.Text; using Newtonsoft.Json; namespace MyMessenger.Core.Parameters { [JsonObject] public class RegisterParameters : AbstractParameters { public override CommandType CommandName { get; set; } = CommandType.Register; [JsonProperty] public string Nic...
using System; namespace Messerli.MetaGeneratorAbstractions.UserInput { public class SimpleValidation : IValidation { private SimpleValidation(Func<string, bool> validation, string message) { Validation = validation; Message = message; } public Func<stri...
// Copyright (c) Sebastian Kapp. // Licensed under the MIT License. using UnityEngine; namespace ARETT { /// <summary> /// Data of the eye gaze after processing /// </summary> public class GazeData { /// <summary> /// Unix Timestamp in ms from which the data stems (accuracy 1ms) /// </summary> public lo...
namespace ServiceAppointmentPlugin.Messages { public class AppointmentDeletedInOutlook { } }
namespace AngleSharp.Dom.Css { using AngleSharp.Extensions; using AngleSharp.Parser.Css; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; /// <summary> /// Represents the base class for all style-rule similar rules. /...
using Abp.Application.Services; using Abp.Application.Services.Dto; using BusinessHall.AgentAccounts.Dto; using BusinessHall.Entities.GlobalParameters; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace BusinessHall.AgentAccountManagers { public interface IAg...
using StreamingClient.Base.Util; using System.Runtime.Serialization; namespace Twitch.Extensions.Base.Models { /// <summary> /// The configuration data for an extension. /// </summary> [DataContract] public class ConfigurationModel { public const string GlobalConfigurationSegmentValue ...
using System; using System.ComponentModel.DataAnnotations.Schema; namespace DomainModel.Entities { public class MatchPlayed { public MatchPlayed() { } public MatchPlayed(Match match, Player player1, Player player2, Player winner) { MatchId = match.MatchId;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; using Capisso.Repository; using Capisso.Services; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore....
using System.Collections.Generic; using System.Text; using Neo.Utils; namespace Neo.Runtime { public sealed class NeoObject : NeoValue { private readonly Dictionary<NeoValue, NeoValue> data; private readonly List<NeoValue> keys; public NeoObject() { data = new Dictionary<NeoVa...
using System.Collections; using System.Collections.Generic; using UnityEngine; using LightingSettings; public class LightingPosition { public static Vector2 GetPosition2D(Vector3 position3D) { switch(Lighting2D.CoreAxis) { case CoreAxis.XY: return(new Vector2(position3D.x, position3D....
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float movementSpeed = 2f; public float cruisingAltitude = 3f; public float arrivalDistance = 1f; private WorldNode target = null; private void MovetoTarget() { var d...
using GoNorth.Data.NodeGraph; namespace GoNorth.Data.Aika { /// <summary> /// Aika Quest Node /// </summary> public class AikaChapterDetailNode : BaseNode { /// <summary> /// Name of the Detail Node /// </summary> public string Name { get; set; } ...
using Itenso.TimePeriod; using Orleans; using System.Threading.Tasks; namespace Vs.Morstead.Grains.Primitives.Time { public interface ITimelineGrain : IGrainWithStringKey { Task AddMoment(ITimelineParticipant grain, ITimeLineMoment moment); } }
using System; namespace SpiceSharpParser.Common.Mathematics.Probability { /// <summary> /// Default random number provider. /// </summary> public class DefaultRandomNumberProvider : IRandomNumberProvider { private readonly Random _random; /// <summary> /// Init...
namespace Demo4.Web.Models.ViewModels { public class EmployeeViewModel { public int Id { get; private set; } public string Name { get; private set; } public string Surname { get; private set; } public int TotalWorkedHours { get; private set; } public string FullName ...
// <copyright file="IntegrationTestExtensions.cs" company="Basho Technologies, Inc."> // Copyright 2011 - OJ Reeves & Jeremiah Peschka // Copyright 2014 - Basho Technologies, Inc. // // This file is provided to you under the Apache License, // Version 2.0 (the "License"); you may not use this file // except in co...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PumpkinManager : MonoBehaviour { public List<GameObject> pumpkins; public float force; private int currentPumpkinIdx; private Vector3 initialScale; private float scaleUp = 1.5f; private GameObject Curren...
using System; namespace Legacy.Core { public enum EActivateKeyResult { ACTIVATE_WAITING = -1, ACTIVATE_SUCCESSFUL, ACTIVATE_INVALID_KEY, ACTIVATE_KEY_ALREADY_IN_USE, ACTIVATE_WRONG_PRIVILAGE, ACTIVATE_UNEXPECTED_ERROR } }
namespace QForum.Web.Models.AppSettings { public class Passwords { public string Admin { get; set; } } }
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Reflection...
// // Core:Module.cs // Created on 2019/05/02 19:55 // // Copyright 2019-2019 Infinideastudio // // 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.o...
using System; namespace dotnetCampus.Ipc.CompilerServices.Attributes; /// <summary> /// 指定此属性的 IPC 代理访问方式和对接方式。 /// </summary> [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)] public sealed class IpcPropertyAttribute : IpcMemberAttribute { /// <summary> /// 指定此属性的 IPC 代理访问方...
using MawMvcApp.ViewModels.Navigation; namespace MawMvcApp.ViewComponents { public class AccountStatusViewModel { public NavigationZone ActiveNavigationZone { get; set; } public bool IsAuthenticated { get; set; } } }
/* This file is part of LatexMath2MathML. LatexMath2MathML is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. LatexMa...
namespace maskx.ARMOrchestration { public class DatabaseConfig { public bool AutoCreate { get; set; } = false; internal const string WaitDependsOnTable = "_WaitDependsOn"; internal const string DeploymentOperationsTable = "_DeploymentOperations"; public string ConnectionString ...
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information. using System; using System.Linq; using NWebsec.Core.HttpHeaders.Configuration; using NWebsec.Core.HttpHeaders.Configuration.Validation; namespace NWebsec.Middleware { public class FluentCspPluginTypesDirective : Cs...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace Mobius.Helpers { public class Deserialiser { /// <summary> /// Deserialise a file based on it's type /// </summary> /// <pa...
namespace Uania.Tools.Infrastructure.Rijndael { public interface IRijndaelService { /// <summary> /// 加密字符串并返回字节数组 /// </summary> /// <param name="text"></param> /// <returns></returns> public byte[] EncryptStringToBytes(string text); /// <summary> ...
using System; using System.Collections.Generic; using System.IO; using Newtonsoft.Json; namespace Pagekite { public class PkData { public PkData() { this.ServiceInfo = new PkServiceInfo(); this.Options = new PkOptions(); this.Kites = new Dictionary<string, P...
using System; using System.Collections.Generic; using System.Linq; using PostSharp.Aspects; using PostSharp.Aspects.Advices; using PostSharp.Serialization; using ThreatsManager.Interfaces.ObjectModel; using ThreatsManager.Interfaces.ObjectModel.Entities; namespace ThreatsManager.Engine.Aspects { [PSerializable] ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.SymbolStore; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using BackEnd.Entities; using BackEnd.Helpers; using BackEnd.Models; using BackEnd.Services; using Microsoft.AspNetCor...
using RunAway.Extensions; using Sandbox; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RunAway.Controllers { [Library] public class DesignerController : BasePlayerController { public float Bounce { get; set; } = 0.25f; public float...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using StreamJsonRpc; namespace StreamJsonRpc.Sample.Web.Controllers { [Route("[controller]")] public class HomeController : Controller { [HttpGet("[action]...
public interface IWareHouse { void EquipArmy(IArmy army); void AddWeaponsToWarehouse(string weaponName, int weaponCount); bool TryEquipSodier(ISoldier soldier); }
#if !PCL using System.Configuration; namespace PowerBI.Api.Client.Configuration { /// <summary> /// Api configuration element /// </summary> public sealed class Api : ConfigurationElement { /// <summary> /// PowerBI Api url /// </summary> [ConfigurationProperty("Url", IsRequired = true)] public string ...
namespace OrchardCore.Documents { /// <summary> /// An <see cref="IDocumentEntityManager{TDocumentEntity}"/> using a shared cache but without any persistent storage. /// </summary> public interface IVolatileDocumentEntityManager<TDocumentEntity> : IDocumentEntityManager<TDocumentEntity> where TDocumentE...
using System; using System.IO; using System.Text; namespace Hazelcast.Test { internal static class Resources { //Binary files public static byte[] Client1 => GetBytes("Resources.client1.pfx"); public static byte[] Client2 => GetBytes("Resources.client2.pfx"); //Text files ...
using Firefly.Tests.Fakes; using Firefly.Utils; using Xunit; namespace Firefly.Tests.Utils { public class MemoryPoolTextWriterTests { public MemoryPoolTextWriter Writer { get; set; } public FakeMemoryPool Pool { get; set; } public MemoryPoolTextWriterTests() { ...
using Adder.DataLayer; using Microsoft.AspNetCore.Mvc; namespace Adder.Api.Controllers; /// <summary> /// The Adder controller. /// </summary> [ApiController] [Route("[controller]")] public class AdderController : ControllerBase { private readonly INumberRepository _repository; /// <summary> /// Cr...