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
49
mcs/class/referencesource/System.Net/net/INetworkProgress.cs
Normal file
49
mcs/class/referencesource/System.Net/net/INetworkProgress.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace System.Net
|
||||
{
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public interface INetworkProgress
|
||||
{
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
|
||||
event EventHandler<NetworkProgressChangedEventArgs> ProgressChanged;
|
||||
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
event EventHandler<NetworkProgressChangedEventArgs> ProgressCompleted;
|
||||
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
event EventHandler<NetworkProgressChangedEventArgs> ProgressFailed;
|
||||
}
|
||||
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public class NetworkProgressChangedEventArgs : ProgressChangedEventArgs
|
||||
{
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public NetworkProgressChangedEventArgs(int percentage, int processedBytes, int totalBytes, object userState) : base(default(int), null) { }
|
||||
|
||||
// Properties
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public int ProcessedBytes { get { throw new PlatformNotSupportedException(); } }
|
||||
|
||||
//introduced for supporting design-time loading of System.Windows.dll
|
||||
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public int TotalBytes { get { throw new PlatformNotSupportedException(); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user