public MasterDataHttpClientException(string?message, Exception?innerException)
     : base(message, innerException)
 {
 }
示例#2
0
        public T Get <T>(string name, [MaybeNull] T defaultValue)
        {
            string?val = Get(name);

            return(val != null ? (T)Convert.ChangeType(val, typeof(T), MODIFIED_INVARIANT_CULTURE) : defaultValue);
        }
示例#3
0
 public AstToplevel(string? source, Position startPos, Position endPos) : base(source, startPos, endPos)
 {
 }
示例#4
0
 private void Add(string line)
 {
     Begin();
     current += line;
     W(line);
 }
示例#5
0
 public IWebHostBuilder UseSetting(string key, string?value)
 {
     _config[key] = value;
     return(this);
 }
 protected BadImageFormatException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _fileName = info.GetString("BadImageFormat_FileName");
     _fusionLog = info.GetString("BadImageFormat_FusionLog");
 }
 private WindowsUserConfigurationResponse(string?loginMode)
 {
     LoginMode = loginMode;
 }
 public CertificateProviderConfig(IConfiguration config, string?prefix = null) : base(config, prefix)
 {
 }
示例#9
0
#pragma warning disable CS8777
        public static void ThrowIfNull <T>([NotNull] this T source, string argName, string?customErrorText = null) => Requires.NotNull(source, argName, customErrorText);
示例#10
0
 public TypeArgumentException(string?message, string?typeParamName) : base(message)
 {
     TypeParamName = typeParamName;
 }
示例#11
0
 public TypeArgumentException(string?message, Exception innerException) : base(message, innerException)
 {
 }
示例#12
0
 public TypeArgumentException(string?message) : base(message)
 {
 }
示例#13
0
 public static ClaimsPrincipal FrontendUser(string? role = null)
 {
     return CreateUser(role, DefaultClients.Frontend);
 }
示例#14
0
 public static ClaimsPrincipal ApiUser(string? role = null)
 {
     return CreateUser(role, "api");
 }
 public BadImageFormatException(string? message)
     : base(message)
 {
     HResult = HResults.COR_E_BADIMAGEFORMAT;
 }
示例#16
0
        public static T GetOrThrowIfDefault <T>([NotNull, NotNullIfNotNull("source")] this T source, string argName, string?customErrorText = null) where T : struct
        {
            if (Equals(source, default(T)))
            {
                throw ExceptionsHelper.ArgumentDefault(argName, customErrorText);
            }

            return(source);
        }
 public BadImageFormatException(string? message, string? fileName, Exception? inner)
     : base(message, inner)
 {
     HResult = HResults.COR_E_BADIMAGEFORMAT;
     _fileName = fileName;
 }
示例#18
0
 public static T GetOrThrowIfNull <T>([NotNull, NotNullIfNotNull("source")] this T?source, string argName, string?customErrorText = null, ClassTypeRequirement <T> _ = default) where T : class => source ?? throw ExceptionsHelper.ArgumentNull(argName, customErrorText);
示例#19
0
        private GetExpressRouteCircuitPeeringResult(
            int? azureASN,

            string etag,

            string? gatewayManagerEtag,

            string? id,

            Outputs.Ipv6ExpressRouteCircuitPeeringConfigResponse? ipv6PeeringConfig,

            string? lastModifiedBy,

            Outputs.ExpressRouteCircuitPeeringConfigResponse? microsoftPeeringConfig,

            string? name,

            int? peerASN,

            string? peeringType,

            string? primaryAzurePort,

            string? primaryPeerAddressPrefix,

            string? provisioningState,

            Outputs.RouteFilterResponse? routeFilter,

            string? secondaryAzurePort,

            string? secondaryPeerAddressPrefix,

            string? sharedKey,

            string? state,

            Outputs.ExpressRouteCircuitStatsResponse? stats,

            int? vlanId)
        {
            AzureASN = azureASN;
            Etag = etag;
            GatewayManagerEtag = gatewayManagerEtag;
            Id = id;
            Ipv6PeeringConfig = ipv6PeeringConfig;
            LastModifiedBy = lastModifiedBy;
            MicrosoftPeeringConfig = microsoftPeeringConfig;
            Name = name;
            PeerASN = peerASN;
            PeeringType = peeringType;
            PrimaryAzurePort = primaryAzurePort;
            PrimaryPeerAddressPrefix = primaryPeerAddressPrefix;
            ProvisioningState = provisioningState;
            RouteFilter = routeFilter;
            SecondaryAzurePort = secondaryAzurePort;
            SecondaryPeerAddressPrefix = secondaryPeerAddressPrefix;
            SharedKey = sharedKey;
            State = state;
            Stats = stats;
            VlanId = vlanId;
        }
示例#20
0
 public static void ThrowIfPositive <T>(this T source, string argName, string?customErrorText = null) where T : struct, IConvertible, IComparable
 => Requires.NotPositive(source, argName, customErrorText);
示例#21
0
 public ReadOnlyElement(string name, string? value) : this(name)
 {
     _value = new ReadOnlyMemory<byte>(Encoding.UTF8.GetBytes(value));
 }
示例#22
0
 public static void ThrowIfNotDefault <T>(this T source, string argName, string?customErrorText = null)
 => Requires.Default(source, argName, customErrorText);
示例#23
0
 public EqualWithMessageException(string?expected, string?actual, int expectedIndex, int actualIndex, string userMessage)
     : base(expected, actual, expectedIndex, actualIndex)
 {
     UserMessage = userMessage;
 }
示例#24
0
 /// <summary>
 /// Initializes a new instance of the EventSourceException class with a specified error message.
 /// </summary>
 public EventSourceException(string?message) : base(message)
 {
 }
示例#25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PostgreSqlObjectName"/> struct.
 /// </summary>
 /// <param name="schema">The schema.</param>
 /// <param name="name">The name.</param>
 public PostgreSqlObjectName(string? schema, string name)
 {
     Database = null;
     Schema = schema;
     Name = name;
 }
示例#26
0
 /// <summary>
 /// Initializes a new instance of the EventSourceException class with a specified error message
 /// and a reference to the inner exception that is the cause of this exception.
 /// </summary>
 public EventSourceException(string?message, Exception?innerException) : base(message, innerException)
 {
 }
示例#27
0
 public string?Get(string name, string?defaultValue)
 {
     return(Get(name) ?? defaultValue);
 }
 public string ToString(string?format, IFormatProvider?formatProvider) => Value.ToString(format, formatProvider);
        public static async Task <GitSubmoduleStatus?> GetCurrentSubmoduleChangesAsync(GitModule module, string?fileName, string?oldFileName, ObjectId?firstId, ObjectId?secondId)
        {
            Patch?patch = await module.GetSingleDiffAsync(firstId, secondId, fileName, oldFileName, "", GitModule.SystemEncoding, cacheResult : true).ConfigureAwait(false);

            return(ParseSubmodulePatchStatus(patch, module, fileName));
        }
 public MasterDataHttpClientException(string?message)
     : base(message)
 {
 }