-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MarshalByRefObject.cs
34 lines (29 loc) · 1.15 KB
/
MarshalByRefObject.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.InteropServices;
namespace System
{
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public abstract class MarshalByRefObject
{
protected MarshalByRefObject()
{
}
[Obsolete(Obsoletions.RemotingApisMessage, DiagnosticId = Obsoletions.RemotingApisDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
public object GetLifetimeService()
{
throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
}
[Obsolete(Obsoletions.RemotingApisMessage, DiagnosticId = Obsoletions.RemotingApisDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
public virtual object InitializeLifetimeService()
{
throw new PlatformNotSupportedException(SR.PlatformNotSupported_Remoting);
}
protected MarshalByRefObject MemberwiseClone(bool cloneIdentity)
{
MarshalByRefObject mbr = (MarshalByRefObject)MemberwiseClone();
return mbr;
}
}
}