mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-07-30 17:30:40 +00:00
Permissions, RateControl and Auditing
This commit is contained in:
@@ -847,10 +847,10 @@ public class Warehouse
|
||||
else
|
||||
return (T)store;
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch
|
||||
{
|
||||
Remove(store);
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -946,10 +946,10 @@ public class Warehouse
|
||||
StoreConnected?.Invoke(resource as IStore);
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch
|
||||
{
|
||||
Remove(resource);
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
|
||||
return resource;
|
||||
|
||||
@@ -29,6 +29,9 @@ public sealed class EncryptionConfiguration
|
||||
/// </summary>
|
||||
public sealed class ParserConfiguration
|
||||
{
|
||||
/// <summary>Default maximum nesting depth for TRU type metadata.</summary>
|
||||
public const int DefaultMaximumTypeMetadataDepth = 64;
|
||||
|
||||
/// <summary>Maximum declared TDU payload retained for one packet.</summary>
|
||||
public uint MaximumPacketSize { get; set; } = 8 * 1024 * 1024;
|
||||
|
||||
@@ -37,6 +40,12 @@ public sealed class ParserConfiguration
|
||||
|
||||
/// <summary>Maximum number of values decoded into one collection.</summary>
|
||||
public int MaximumCollectionItems { get; set; } = 65_536;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum number of nested TRU type-metadata nodes, including the root node.
|
||||
/// A value of zero disables the limit.
|
||||
/// </summary>
|
||||
public int MaximumTypeMetadataDepth { get; set; } = DefaultMaximumTypeMetadataDepth;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user