Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
Photon.Deterministic.DeterministicProtocolVersionAttribute Class Reference

The assembly attribute to specify the deterministic protocol version. More...

Inherits Attribute.

Public Member Functions

 DeterministicProtocolVersionAttribute (String version, params String[] compatible)
 Create the attribute with the given version and compatible versions. More...
 

Static Public Member Functions

static DeterministicProtocolVersionAttribute Get (Assembly asm)
 A helper method to get the attribute from an assembly. More...
 
static DeterministicProtocolVersions GetEnum (String version)
 Convert a string to the protocol version enum. More...
 

Static Public Attributes

const string LATEST = "3.0.0.0"
 The latest Quantum protocol version. More...
 

Properties

String[] Compatible [get]
 Return a list of the compatible versions. More...
 
String Version [get]
 Get the assigned version. More...
 

Detailed Description

The assembly attribute to specify the deterministic protocol version.

Constructor & Destructor Documentation

◆ DeterministicProtocolVersionAttribute()

Photon.Deterministic.DeterministicProtocolVersionAttribute.DeterministicProtocolVersionAttribute ( String  version,
params String[]  compatible 
)
inline

Create the attribute with the given version and compatible versions.

Parameters
versionCurrent version
compatibleBackwards compatible versions

Member Function Documentation

◆ Get()

static DeterministicProtocolVersionAttribute Photon.Deterministic.DeterministicProtocolVersionAttribute.Get ( Assembly  asm)
inlinestatic

A helper method to get the attribute from an assembly.

Parameters
asmAssembly to search for the attribute
Returns
An instance of the protocol version attribute if found.

◆ GetEnum()

static DeterministicProtocolVersions Photon.Deterministic.DeterministicProtocolVersionAttribute.GetEnum ( String  version)
inlinestatic

Convert a string to the protocol version enum.

Parameters
versionVersion as string, default format is 1.0.0.0
Returns

Member Data Documentation

◆ LATEST

const string Photon.Deterministic.DeterministicProtocolVersionAttribute.LATEST = "3.0.0.0"
static

The latest Quantum protocol version.

Property Documentation

◆ Version

String Photon.Deterministic.DeterministicProtocolVersionAttribute.Version
get

Get the assigned version.

◆ Compatible

String [] Photon.Deterministic.DeterministicProtocolVersionAttribute.Compatible
get

Return a list of the compatible versions.