text
stringlengths
1
932k
// Copyright (c) 2020 Allan Mobley. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; namespace Mobsites.Cosmos.Identity { /// <summary> /// The required Cosmos Identity implementation of an identity user login which uses a ...
using Microsoft.CodeAnalysis.Operations; using Pchp.CodeAnalysis.Semantics.TypeRef; using Peachpie.CodeAnalysis.Utilities; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pchp.CodeAnalysis.Semantics.Graph { ///...
namespace Dawnx.Generators { public interface IGenerator<T> { T[] Take(int count); T TakeOne(); } }
using System; using Moq; using NUnit.Framework; using static NUnit.Framework.Assert; using static Bud.Option; namespace Bud { public class OptionTest { [Test] public void Equals_returns_false_when_comparing_none_with_some() => IsFalse(Some(42).Equals(None<int>())); [Test] public void Equals_re...
/* * ReportCommit.aspx.cs * * Authors: * Rolf Bjarne Kvinge (RKvinge@novell.com) * * Copyright 2009 Novell, Inc. (http://www.novell.com) * * See the LICENSE file included with the distribution for details. * */ #pragma warning disable 649 using System; using System.Collections.Generic; using System.D...
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license info using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Microsoft.DotNet.Internal.ProjectModel; ...
using LibElite.PilotJournal.Converter; namespace LibElite.PilotJournal.Events.StationServices { [EventType("ModuleSwap")] public class ModuleSwap : EventBase { public long MarketID { get; set; } public string FromSlot { get; set; } public string ToSlot { get; set; } public ...
//////////////////////////////////////////////////////////////////////////// // <copyright file="TTSValue.cs" company="Intel Corporation"> // // Copyright (c) 2013-2015 Intel Corporation  // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Li...
// ----------------------------------------------------------------------------- // // Copyright Microsoft 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.o...
using System; // ReSharper disable StringCompareToIsCultureSpecific // if (this == that) return 0; // 如果比较的两个 string 是同一个对象的引用,直接返回相等结果 // 而不必再逐字符比较。 var s = "123456"; var p = s; Console.WriteLine(s.CompareTo(p)); // 输出 0
// <auto-generated> // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/tensor.proto // </auto-generated> #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; us...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
using System; using System.Windows.Forms; namespace AutoCADNote { public partial class MyUserControl : UserControl { public MyUserControl() { InitializeComponent(); this.webBrowser1.ScrollBarsEnabled = false; } public WebBrowser WebBrowser { ...
using System.Reflection; using System.Runtime.InteropServices; [assembly: ComVisible(false)] [assembly: AssemblyCulture("")] [assembly: AssemblyTitle("System.Net Smtp | Email Infrastructure")] [assembly: AssemblyDescription("Email provider based on the native System.Net Smtp provider service.")]
using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DM___Server.Models { public class Message { public string Type { get; set; } public JToken Value { get; set; } public static Messag...
namespace Frank.Libraries.Ubl; /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:...
#if HE_SYSCORE using UnityEngine; namespace HeathenEngineering { [CreateAssetMenu(menuName = "System Core/Variables/Pointers/Values/Canvas")] public class CanvasPointerVariable : DataVariable<Canvas> { } } #endif
// <copyright> // Copyright Southeast Christian Church // // Licensed under the Southeast Christian Church License (the "License"); // you may not use this file except in compliance with the License. // A copy of the License shoud be included with this file. // // Unless required by applicable law or agreed to in writ...
using UnityEngine; using System.Collections; public class InvisibleTrigger : MonoBehaviour { public Color color = Color.white; private BoxCollider2D boxCollider = null; private BoxCollider2D BoxCollider { get { if(boxCollider == null) { boxCollider = GetComponent<BoxCollider2D>(); } return ...
/* * 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...
using System; namespace NadekoBot.Services.Database.Models { public class RewardedUser : DbEntity { public ulong UserId { get; set; } public int AmountRewardedThisMonth { get; set; } public DateTime LastReward { get; set; } } }
namespace Vurdalakov.ClipboardDotNet { using System; public class Application : DosToolsApplication { protected override Int32 Execute() { if (_commandLineParser.FileNames.Length != 1) { Help(); } var fileName = _commandLineP...
using AddyCompiler.Node.Generics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AddyCompiler.Node { public class ClassDeclarationNode : ParserNode< // 'public' class ex {_} RequiredAndNode< // w/ Privacy RequiredOrNode< Req...
// 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.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis...
using SC2APIProtocol; using System; using System.Collections.Generic; using SC2Sharp.Agents; using SC2Sharp.Managers; using SC2Sharp.MapAnalysis; using SC2Sharp.Tasks; using SC2Sharp.Util; namespace SC2Sharp.BuildingPlacement { /* * This class is used to find build locations for Protoss structures. */ ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5.SquareFrame { class Program { static void Main(string[] args) { int size = int.Parse(Console.ReadLine()); // Top Console.Write("...
using System; namespace FMData { /// <summary> /// Information about the FileMaker Server /// </summary> public class ProductInformation { /// <summary> /// Product Name /// </summary> public string Name { get; set; } /// <summary> /// Date of Build...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassifiedApp.Models { public class Admin : IEntityBase { public Admin() { } public int Id { get; set; } public string Username { get; set; } ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using VRStandardAssets.Common; using VRStandardAssets.Utils; namespace VRStandardAssets.Flyer { // This script handles the spawning and some of the // interactions of Rings and Asteroids with the flyer. public class EnvironmentC...
using System; using System.Collections.Generic; using Machine.Core; using Machine.Migrations.Core; using NUnit.Framework; using Rhino.Mocks; namespace Machine.Migrations.Services.Impl { [TestFixture] public class VersionStateFactoryTests : StandardFixture<VersionStateFactory> { IConfiguration _configurati...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Linq; using Microsoft.Azure.WebJobs.Script.Description; using Microsoft.Azure.WebJobs.Script.Diagnostics; using Microsoft.Azure.WebJobs.Script.WebHost.Dia...
namespace Zaabee.RabbitMQ; public partial class ZaabeeRabbitMqClient { public Task SendEventAsync<T>(T @event) => Task.Run(() => { SendEvent(@event); }); public Task SendEventAsync(string topic, byte[] body) => Task.Run(() => { SendEvent(topic, body); }); public Task PublishEventAsync<T>(...
/* * 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...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using PRFramework.Core.Common; using PRFramework.Core.DatasetInfo; using PRFramework.Core.SupervisedClassifiers; using PRFramework.Core.SupervisedClassifiers.EmergingPatterns; namespace PRFramework.Clustering { ...
using System.Collections.Generic; namespace SOSOWJB.Framework.MultiTenancy.HostDashboard.Dto { public class GetEditionTenantStatisticsOutput { public GetEditionTenantStatisticsOutput(List<TenantEdition> editionStatistics) { EditionStatistics = editionStatistics; } p...
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("CS...
// ReSharper disable VirtualMemberCallInConstructor namespace NetBook.Data.Models { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Identity; using NetBook.Data.Common.Models; public class NetBookUser : IdentityUser, I...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OpenRiaServices.ChangeNotification.SignalR { class ChangeNotificationUtilities { } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Reflection; using Parse.Common.Internal; namespace Parse.Core.Internal { internal class ObjectSubclassInfo { public ObjectSubclassInfo(Type type, Cons...
@model OrchardCore.Themes.Models.SelectThemesViewModel <style asp-src="~/OrchardCore.Themes/Styles/themes.admin.css"></style> <h1>@RenderTitleSegments(T["Themes"])</h1> @if (!Model.Themes.Any()) { <p>@T["There are no themes installed."]</p> } else { <div class="row"> @foreach (var themeEntry in Model.T...
using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using NKnife.App.Sudoku.Common; namespace NKnife.App.Sudoku.Controls { /// <summary> /// Description of UserControl1. /// </summary> public class SudokuPanel : Control { private int _BoxWidth; ...
// // This file was auto-generated using the ChilliConnect SDK Generator. // // The MIT License (MIT) // // Copyright (c) 2015 Tag Games Ltd // // 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...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Moq; using SignalR.Client.Hubs; using SignalR.Hosting.Memory; using SignalR.Hubs; using Xunit; namespace SignalR.Tests { public class HubProxyTest { [Fact] public void InvokeWithErrorInHubRes...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
using System; using System.Collections.Generic; using System.Text; namespace MxNet.GluonNLP.Model { class ELMoCharacterEncoder { } }
using System; using System.Globalization; namespace ChartJs.Blazor.Util { /// <summary> /// Provides useful methods for working with colors. Particularly the conversion from different kinds of C#-colors to string colors which are understood by javascript/css. /// </summary> public static class ColorUt...
using System.Collections.Immutable; using System.Net; using System.Runtime.InteropServices; namespace DotNext.Net.Cluster.Consensus.Raft; using Buffers; using IO; using IO.Log; using Membership; using TransportServices; using IClientMetricsCollector = Metrics.IClientMetricsCollector; /// <summary> /// Represents def...
/* using System.Web.UI; [assembly:WebResource(Configuration.Resources.ChartBarExample, "image/png")] [assembly:WebResource(Configuration.Resources.ChartPieExample, "image/png")] [assembly:WebResource(Configuration.Resources.GaugeSimplePNG, "image/png")] [assembly:WebResource(Configuration.Resources.GaugeSimpleGIF, "ima...
// Copyright (c) 2008-2020, Hazelcast, Inc. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class cameraControls2D : MonoBehaviour { [SerializeField] float rotationSpeed = 1f; [SerializeField] Vector2 normalizedMousePosition; Vector2 normalizedMousePositionZoom; Vector2 targetMousePosition; Vec...
using System; using UnityEngine; namespace CYM { public class BaseAnim<TUnit, TState> : StateMachineBehaviour where TUnit : BaseUnit where TState : Enum { [SerializeField] public TState State; [SerializeField] public int Index; protected TUnit Self; protected fl...
using OS.Common.Extensions; using OS.Common.Logging; using Serilog; using System; using System.Runtime.Serialization; namespace OS.Common.Exceptions { [Serializable] public class LoggedException : Exception { public static ILogger Logger { get; set; } = OnlineServicesLogger.LoggerConfigurator(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.Rendering; namespace NetCoreSaaS.WebHost.Models.AccountViewModels { public class SendCodeViewModel { public string SelectedProvider { get; set; } public ICollection<...
@{ ViewBag.Title = "ItemSales"; Layout = "~/Views/Shared/_LayOutWithLatestKendoScript.cshtml"; <link rel="stylesheet" href="~/buttncss/style/cssNew.css" type="text/css" /> } @*<head> <link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.2.607/styles/kendo.common-material.min.css" /> <link rel="s...
using System; using NUnit.Framework; using SharpVectors.Dom; using SharpVectors.Dom.Svg; namespace SharpVectors.UnitTests.Svg.BasicTypesAndInterfaces { public class SvgPointListTests : SvgListTests { #region Fields private static int counter = 0; #endregion #region Addit...
using System; using Vulkan; namespace Demo.Texture { public static class Util { //public static VkResult CheckResult(this VkResult result) { // if (result != VkResult.Success) { // throw new InvalidOperationException("Call failed."); // } // return result; ...
/* * felica_nfc_dll_wrapper_basic.cs * Copyright 2009,2011 Sony Corporation */ using System; using System.Text; using System.ComponentModel; using System.Runtime.InteropServices; // structs [StructLayout(LayoutKind.Sequential)] public struct DEVICE_DATA_NFC_14443A_18092_106K { public UInt32 target_number; p...
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) namespace Org.BouncyCastle.Asn1.X509 { /** * The KeyUsage object. * <pre> * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } * * KeyUsage ::= BIT STRING { * digitalSignature (0), * ...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Security.Cryptography; using System.Text; using awsiotmqttoverwebsocketswinapp.Utils; namespace awsiotmqttoverwebsocketswinapp.Signers { /// <summary> /// Sample AWS4 signer demonstrating how to sign PO...
/* © Cutter Systems spol. s r.o., 2018 Author: Petr Kalandra (kalandra@cutter.cz) 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 app...
using System; namespace ProgrammingLanguageTutorialIdea.Keywords { public class KWConstant : Keyword { public const String constName="constant"; public KWConstant () : base(constName,KeywordType.MODIFIER) { } public override KeywordResult execute(Parser sender,String[]@params) { ...
namespace DotNetInterceptTester.My_System.Net.FileWebRequest { public class BeginGetRequestStream_System_Net_FileWebRequest_System_AsyncCallback_System_Object { public static bool _BeginGetRequestStream_System_Net_FileWebRequest_System_AsyncCallback_System_Object( ) { //Parameters System.AsyncCallback callback = ...
// // Copyright (c) Seal Report, Eric Pfirsch (sealreport@gmail.com), http://www.sealreport.org. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. http://www.apache.org/licenses/LICENSE-2.0.. // using System.Collections.Generic; using Sy...
using NAccLogger.Itf; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace NAccLogger.Loggers.Pipe.Winsock { public class MessageSerializer { public int InternalBufferCapacity = 1024 * 10; protected Binary...
/* * NiFi Rest Api * * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
namespace YanZhiwei.DotNet2.Utilities.Core { using System; /// <summary> /// Lazy 基于.NET 2.0的实现帮助类 /// </summary> /// <typeparam name="T">泛型</typeparam> public sealed class ThreadSafeLazy<T> { #region Fields /* * 参考: * 1. http://stackoverflow.com/question...
using System; using System.Collections.Generic; using System.Text; namespace Ametista.Application.Commands { class CreateGemstoneCommandHandler { } }
namespace Bluebook.Areas.HelpPage { /// <summary> /// Indicates whether the sample is used for request or response /// </summary> public enum SampleDirection { Request = 0, Response } }
/* * Magix UX - A Managed Ajax Library for ASP.NET * Copyright 2010 - 2014 - thomas@magixilluminate.com * Magix is licensed as MITx11, see enclosed License.txt File for Details. */ using System; using System.Web.UI; namespace Magix.UX.Effects { public class EffectTimeout : Effect { public EffectTi...
using System; using System.Collections.Generic; using System.Linq; namespace LCChallengeSolutions { public class LCProblem40 { /* * Problem 40. * Combination Sum II * Given a collection of candidate numbers (candidates) and a target number (target), * find all uniq...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3DSpace { public class Path { private Point3D[] points; public Point3D[] Points { get { return this.points; ...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace APM.WebAPI.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { return ...
public interface IRunable { void Run(); }
// 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. /****************************************************************************** * This file is auto-generated from ...
namespace TwitchNET.Core.Modules { public class CommandProxy { public string Message { get; set; } = null!; private string[] Parameter => Message.Split(' '); private bool HasParameter => Parameter.Length > 1; } }
using SGM.Domain.Entities; using SGM.Domain.Entities.BlogEntities; using SGM.Domain.Repositories; namespace SGM.EntityFramework.Repositories; public class BlogRepository : Repository<Blog>, IBlogRepository { private readonly DatabaseContext _context; private readonly IRepository<Comment> _commentRepository; ...
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Tests { [TestClass] public class ATests { [TestMethod] public void TestMethod1() { const string input = @"ASSA"; const string output = @"Yes"; Tester.InOutTest(() => Tasks.A.Solve(), in...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Coin : Collectable { private void Start() { collectableName = "Coin"; description = "Increase Score By 10"; DontDestroyOnLoad(this.gameObject); } override public void Use() ...
using System; using System.Collections.Generic; #nullable disable namespace Northwind.Entity.Models { public partial class ProductsByCategory { public string CategoryName { get; set; } public string ProductName { get; set; } public string QuantityPerUnit { get; set; } public s...
using System; using HotChocolate; using HotChocolate.Execution.Configuration; using HotChocolate.Language; using HotChocolate.Types; using HotChocolate.Execution.Batching; namespace Microsoft.Extensions.DependencyInjection { public static partial class SchemaRequestExecutorBuilderExtensions { /// <summ...
using UnityEditor; namespace UniTools.CLI.Editor { public sealed class UnityEnvironmentVariablesHeaderPresenter { public void Draw() { EditorGUILayout.BeginHorizontal(); { EditorGUILayout.LabelField("Name"); EditorGUILayout.LabelField("Val...
using System.Collections.Generic; namespace NFleet.Data { public class RoutingProblemSummaryDataSet : IResponseData, IVersioned { public static string MIMEType = "application/vnd.jyu.nfleet.problemsummaryset"; public static string MIMEVersion = "2.0"; public List<RoutingProblemSummaryD...
using System; using System.Collections; using System.Collections.Generic; using UnityEditorInternal; using UnityEngine; using UnityEngine.UI; public class RaycastRenderer : MonoBehaviour { public Image imageToRender; public int targetResolution = 400; private Texture2D _renderTexture; privat...
namespace Persistence.Migrations { using System; using Microsoft.EntityFrameworkCore.Migrations; public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( "AspNetRoles", ...
@using Microsoft.AspNetCore.Identity @using Lab03Mahdi.Areas.Identity @using Lab03Mahdi.Areas.Identity.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @using Lab03Mahdi.Areas.Identity.Data
using System; using System.Collections.Generic; using BEditor.Drawing; using BEditor.Drawing.Pixel; namespace BEditor.Extensions.AviUtl.Effects { public sealed class Raster : IMappedEffect { public string Name => "ラスター"; public void Apply(ref Image<BGRA32> image, ObjectTable table, Dictionar...
using EnvDTE; using Microsoft.VisualStudio.TemplateWizard; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sitecore.Extensions.VisualStudio.Wizard { public class ChildProjectWizard : NuGetTemplateWizard { public override voi...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; [RequireComponent(typeof(Collider2D))] public class Trigger : MonoBehaviour { public UnityEvent OnTriggerEnter; private void OnTriggerEnter2D(Collider2D other) { OnTriggerEnter?.Invoke(); ...
/* * 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...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // La información general de un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos valores de atributo para modificar la información // asociada a un ensamblado. [assembly: AssemblyT...
//------------------------------------------------------------------------------ // <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....
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Threading.Tasks; using Microsoft.Azure.KeyVault; using Microsoft.Azure.Services.AppAuthentication; using Microsoft.Extensions.Logging; na...
using System.ComponentModel.DataAnnotations; namespace FollowManager.Validation { public class NotEmptyValidationAttribute : ValidationAttribute { public override bool IsValid(object value) { if (value is string str) { if (string.IsNullOrWhiteSpace(str))...
using System; using System.Collections.Generic; using System.Globalization; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNetCore.Common; using Renci.SshNetCore.Messages.Connection; namespace Renci.SshNetCore.Tests.Classes.Messages.Connection { /// <summary> /// Represen...
using Globals.NET.RabbitMQ; using System; using System.IO; namespace FileTransferSimple { public class FileData { public byte[] data; public string filename; public string Name; } class Program { // If you try this at home: please make sure these directories exist,...
namespace TrySQLProcedure { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; public partial class TestTable1 { public Guid ID { get; set; } [Str...
namespace Demo.Domain.UserModule.Services { public interface IUserService { } }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace PS.WebAPI { public class Program { p...
/* * 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...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Task_Beispiel { class Program { static void Main(string[] args) { Task task1 = new Task(Aufgabe1); task1.Start(); Task t...