using System;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Contexts;
namespace System.Runtime.Remoting.Activation
{
/// Defines an attribute that can be used at the call site to specify the URL where the activation will happen. This class cannot be inherited.
// Token: 0x0200038D RID: 909
[ComVisible(true)]
[Serializable]
public sealed class UrlAttribute : ContextAttribute
{
/// Creates a new instance of the class.
/// The call site URL.
/// The parameter is null.
/// The immediate caller does not have infrastructure permission.
// Token: 0x06002520 RID: 9504 RVA: 0x0007B34C File Offset: 0x0007954C
public UrlAttribute(string callsiteURL)
: base(callsiteURL)
{
this.url = callsiteURL;
}
/// Gets the URL value of the .
/// The URL value of the .
/// The immediate caller does not have infrastructure permission.
///
///
///
// Token: 0x170006DB RID: 1755
// (get) Token: 0x06002521 RID: 9505 RVA: 0x0007B35C File Offset: 0x0007955C
public string UrlValue
{
get
{
return this.url;
}
}
/// Checks whether the specified object refers to the same URL as the current instance.
/// true if the object is a with the same value; otherwise, false.
/// The object to compare to the current .
/// The immediate caller does not have infrastructure permission.
///
///
///
// Token: 0x06002522 RID: 9506 RVA: 0x0007B364 File Offset: 0x00079564
public override bool Equals(object o)
{
return o is UrlAttribute && ((UrlAttribute)o).UrlValue == this.url;
}
/// Returns the hash value for the current .
/// The hash value for the current .
/// The immediate caller does not have infrastructure permission.
///
///
///
// Token: 0x06002523 RID: 9507 RVA: 0x0007B38C File Offset: 0x0007958C
public override int GetHashCode()
{
return this.url.GetHashCode();
}
/// Forces the creation of the context and the server object inside the context at the specified URL.
/// The of the server object to create.
/// The immediate caller does not have infrastructure permission.
///
///
///
// Token: 0x06002524 RID: 9508 RVA: 0x0007B39C File Offset: 0x0007959C
[ComVisible(true)]
public override void GetPropertiesForNewContext(IConstructionCallMessage ctorMsg)
{
}
/// Returns a Boolean value that indicates whether the specified meets 's requirements.
/// true if the passed-in context is acceptable; otherwise, false.
/// The context to check against the current context attribute.
/// The construction call, the parameters of which need to be checked against the current context.
/// The immediate caller does not have infrastructure permission.
///
///
///
// Token: 0x06002525 RID: 9509 RVA: 0x0007B3A0 File Offset: 0x000795A0
[ComVisible(true)]
public override bool IsContextOK(Context ctx, IConstructionCallMessage msg)
{
return true;
}
// Token: 0x04000E9D RID: 3741
private string url;
}
}