Beamable SDK
Public Member Functions | Static Public Attributes | Properties | List of all members
Beamable.Common.Dependencies.RegisterBeamableDependenciesAttribute Class Reference

Use this attribute to register custom services when Beamable starts up. You should use this on a method that takes one parameter of type IDependencyBuilder. Add whatever services you want to on the builder instance. Any service you register will exist for each BeamContext. More...

Inheritance diagram for Beamable.Common.Dependencies.RegisterBeamableDependenciesAttribute:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Dependencies.RegisterBeamableDependenciesAttribute:
Collaboration graph
[legend]

Public Member Functions

 RegisterBeamableDependenciesAttribute (int order=0)
 
AttributeValidationResult IsAllowedOnMember (MemberInfo member)
 Takes in the MemberInfo associated with this attribute and returns a AttributeValidationResult. More...
 

Static Public Attributes

static readonly SignatureOfInterest[] ValidSignatures
 Valid signatures on top of which you can place RegisterBeamableDependenciesAttributes. More...
 
static readonly string ValidSignaturesText = string.Join(", ", ValidSignatures.Select(sig => sig.ToHumanReadableSignature()))
 

Properties

int Order [getset]
 Defines the order in which the functions with RegisterBeamableDependenciesAttribute will run.
 

Detailed Description

Use this attribute to register custom services when Beamable starts up. You should use this on a method that takes one parameter of type IDependencyBuilder. Add whatever services you want to on the builder instance. Any service you register will exist for each BeamContext.

Member Function Documentation

◆ IsAllowedOnMember()

AttributeValidationResult Beamable.Common.Dependencies.RegisterBeamableDependenciesAttribute.IsAllowedOnMember ( MemberInfo  member)
inline

Takes in the MemberInfo associated with this attribute and returns a AttributeValidationResult.

Implements Beamable.Common.Reflection.IReflectionAttribute.

Member Data Documentation

◆ ValidSignatures

readonly SignatureOfInterest [] Beamable.Common.Dependencies.RegisterBeamableDependenciesAttribute.ValidSignatures
static
Initial value:
= new[]
{
new SignatureOfInterest(true, typeof(void), new[] {new ParameterOfInterest(typeof(IDependencyBuilder), false, false, false)})
}

Valid signatures on top of which you can place RegisterBeamableDependenciesAttributes.


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