Empeld
Empeld plugin documentation.
pluginbase.Objects.Libs.Rpc.RemoteAttribute Class Reference

Attribute to label a method as being able to be remotely called More...

Inheritance diagram for pluginbase.Objects.Libs.Rpc.RemoteAttribute:

Public Member Functions

 RemoteAttribute ()
 
 RemoteAttribute (string name)
 
bool AcceptsSource (RpcEndpoint source)
 Gets whether or not a specified endpoint is accepted given the attribute security More...
 

Public Attributes

readonly uint Id
 The address of the method More...
 
readonly string Name
 The name override of the method More...
 

Properties

RpcEndpoint AllowedSource [get, set]
 Gets or sets the allowed source. More...
 

Detailed Description

Attribute to label a method as being able to be remotely called

Attribute: AttributeUsage(AttributeTargets.Method)

Constructor & Destructor Documentation

◆ RemoteAttribute() [1/2]

pluginbase.Objects.Libs.Rpc.RemoteAttribute.RemoteAttribute ( )
35  :this(0)
36  {}

◆ RemoteAttribute() [2/2]

pluginbase.Objects.Libs.Rpc.RemoteAttribute.RemoteAttribute ( string  name)
39  :this(Hashers.HashStringUInt32(name))
40  {
41  Name = name;
42  }
readonly string Name
The name override of the method
Definition: RemoteAttribute.cs:20

Member Function Documentation

◆ AcceptsSource()

bool pluginbase.Objects.Libs.Rpc.RemoteAttribute.AcceptsSource ( RpcEndpoint  source)

Gets whether or not a specified endpoint is accepted given the attribute security

Returns
true, if source was acceptsed, false otherwise.
Parameters
sourceSource.
50  {
51  return (AllowedSource & source) != 0;
52  }
RpcEndpoint AllowedSource
Gets or sets the allowed source.
Definition: RemoteAttribute.cs:26

Member Data Documentation

◆ Id

readonly uint pluginbase.Objects.Libs.Rpc.RemoteAttribute.Id

The address of the method

◆ Name

readonly string pluginbase.Objects.Libs.Rpc.RemoteAttribute.Name

The name override of the method

Property Documentation

◆ AllowedSource

RpcEndpoint pluginbase.Objects.Libs.Rpc.RemoteAttribute.AllowedSource
getset

Gets or sets the allowed source.

The allowed source.


The documentation for this class was generated from the following file: