You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,47 @@
|
||||
//------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//------------------------------------------------------------
|
||||
|
||||
namespace System.IdentityModel
|
||||
{
|
||||
using System;
|
||||
using System.Runtime;
|
||||
|
||||
class BufferManagerOutputStream : BufferedOutputStream
|
||||
{
|
||||
string quotaExceededString;
|
||||
|
||||
public BufferManagerOutputStream(string quotaExceededString)
|
||||
: base()
|
||||
{
|
||||
this.quotaExceededString = quotaExceededString;
|
||||
}
|
||||
|
||||
public BufferManagerOutputStream(string quotaExceededString, int maxSize)
|
||||
: base(maxSize)
|
||||
{
|
||||
this.quotaExceededString = quotaExceededString;
|
||||
}
|
||||
|
||||
public BufferManagerOutputStream(string quotaExceededString, int initialSize, int maxSize, BufferManager bufferManager)
|
||||
: base(initialSize, maxSize, BufferManager.GetInternalBufferManager(bufferManager))
|
||||
{
|
||||
this.quotaExceededString = quotaExceededString;
|
||||
}
|
||||
|
||||
public void Init(int initialSize, int maxSizeQuota, BufferManager bufferManager)
|
||||
{
|
||||
Init(initialSize, maxSizeQuota, maxSizeQuota, bufferManager);
|
||||
}
|
||||
|
||||
public void Init(int initialSize, int maxSizeQuota, int effectiveMaxSize, BufferManager bufferManager)
|
||||
{
|
||||
base.Reinitialize(initialSize, maxSizeQuota, effectiveMaxSize, BufferManager.GetInternalBufferManager(bufferManager));
|
||||
}
|
||||
|
||||
protected override Exception CreateQuotaExceededException(int maxSizeQuota)
|
||||
{
|
||||
return new LimitExceededException(SR.GetString(this.quotaExceededString, maxSizeQuota));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user