Romestead Assembly Reference

CandideServer.EventBus.EventBusManager

Type JSON

public class in CandideServer.EventBus

Methods8
Properties0
Fields2
Events0
Type metadata
  • AssemblyCandideServer
  • NamespaceCandideServer.EventBus
  • Base typeSystem.Object
  • Hash467ACEF0280FCEEB5A7264BE2C4299495EB9AA28E44AD2F0A308B39A9F02E37B

Relationships

Base type

System.Object

Fields

NameVisibilitySignature
Eventspublicpublic System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus> Events
_unsubscribableEventBusListenersprivateprivate System.Collections.Generic.Dictionary<System.Object, EventBus.EventBusListener> _unsubscribableEventBusListeners

Methods

SendEvent

public System.Void SendEvent(System.String key, System.Object message, CandideServer.EventBus.EventBusArgs args, System.Boolean warnIfNothingSubscribed)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash56BFBDA91AE8C5D08B9DD3A233361AEA02B4922B03FF2067AE49A6FACAB94DB8
  • Body hashE0741FE11777C3EF671794EA1D52A9D7E2513613B60C30E3D5BCA86B5A7219AF
  • IL size51
Referenced calls
Called by
String literals
  • Attempted to send event with key '
  • ', but there is nothing subscribed.

SendEvent

public System.Void SendEvent(System.String key, System.Object message, System.Boolean warnIfNothingSubscribed)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash557DCD63AF7DF45DD8C2165718060181350671B43038D507270416EA244B37B1
  • Body hashB6333EE2F5C6EE83A00BC83567BCC2E6FEDCAB871475D9624D8794FFEE14DF37
  • IL size49
Referenced calls
Called by
String literals
  • Attempted to send event with key '
  • ', but there is nothing subscribed.

Subscribe

public System.Void Subscribe(System.Reflection.Assembly assembly, System.String eventBusName)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash075ADBDCB4A8C6A5E28A76F741C929E49E8FFAFDC29B565A5B99347225A255FD
  • Body hashBD182FFBE06E5244E08C23743B73A921F600FE73B68910EAD41947EC5BE5E296
  • IL size959
Referenced calls
  • System.Reflection.Assembly::GetTypes()
  • System.Type::GetMethods(System.Reflection.BindingFlags)
  • System.Reflection.MethodBase::get_IsStatic()
  • System.Reflection.CustomAttributeExtensions::GetCustomAttributes(System.Reflection.MemberInfo)
  • System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable<!!0>)
  • System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable<!!0>)
  • System.Reflection.MethodBase::GetParameters()
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::.ctor(System.Int32, System.Int32)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendLiteral(System.String)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::AppendFormatted(!!0)
  • System.Runtime.CompilerServices.DefaultInterpolatedStringHandler::ToStringAndClear()
  • CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)
  • System.Reflection.ParameterInfo::get_ParameterType()
  • EventBusManager.<>c__DisplayClass2_0::.ctor()
  • System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
  • System.Linq.Expressions.Expression::Parameter(System.Type, System.String)
  • System.Linq.Expressions.Expression::Convert(System.Linq.Expressions.Expression, System.Type)
  • System.Linq.Expressions.Expression::Call(System.Reflection.MethodInfo, System.Linq.Expressions.Expression, System.Linq.Expressions.Expression)
  • System.Linq.Expressions.Expression::Lambda(System.Linq.Expressions.Expression, System.Linq.Expressions.ParameterExpression[])
  • System.Linq.Expressions.Expression<System.Action<System.Object, CandideServer.EventBus.EventBusArgs>>::Compile()
  • System.String::op_Inequality(System.String, System.String)
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
  • CandideServer.EventBus.EventBus::.ctor()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)
  • System.Reflection.MemberInfo::get_Name()
  • System.String::Concat(System.String, System.String, System.String, System.String)
  • EventBusManager.<>c__DisplayClass2_0::<Subscribe>b__0(System.Object, CandideServer.EventBus.EventBusArgs)
  • EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)
  • EventBusManager.<>c__DisplayClass2_1::.ctor()
  • System.Linq.Expressions.Expression::Call(System.Reflection.MethodInfo, System.Linq.Expressions.Expression)
  • System.Linq.Expressions.Expression<System.Action<System.Object>>::Compile()
Called by
String literals
  • EventBus:
  • ::
  • has too many parameters to subscribe
  • has too few parameters to subscribe
  • param
  • args
  • Event key
  • has mismatched authorization check requirements. Detected in

Subscribe

public System.Void Subscribe<T>(System.String key, System.Action<T, CandideServer.EventBus.EventBusArgs> listener)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash5A3580C65FF09C321658484562773DF3D341836736333548F38C49A8D9E61EDF
  • Body hash3D4C7F495317EE7A9245C2220C7B6B5B0A63DEFF9F3C3B817513B83AB2810610
  • IL size96
Referenced calls
  • EventBusManager.<>c__DisplayClass3_0<T>::.ctor()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
  • EventBusManager.<>c__DisplayClass3_0<T>::<Subscribe>b__0(System.Object, CandideServer.EventBus.EventBusArgs)
  • EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)
  • CandideServer.EventBus.EventBus::.ctor()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)
  • EventBusManager.<>c__DisplayClass3_0<T>::<Subscribe>b__1(System.Object, CandideServer.EventBus.EventBusArgs)

Subscribe

public System.Void Subscribe<T>(System.String key, System.Action<T> listener)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash6BC636AAB9B190658F87CB4B758B2A5D17045F82DF4C87D22EBA582CA33B116E
  • Body hashDDEE464DD092951EF7E147A592FB896CBE47B12B8B6A9F7E35EC1480A8627B52
  • IL size96
Referenced calls
  • EventBusManager.<>c__DisplayClass4_0<T>::.ctor()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
  • EventBusManager.<>c__DisplayClass4_0<T>::<Subscribe>b__0(System.Object, CandideServer.EventBus.EventBusArgs)
  • EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)
  • CandideServer.EventBus.EventBus::.ctor()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)
  • EventBusManager.<>c__DisplayClass4_0<T>::<Subscribe>b__1(System.Object, CandideServer.EventBus.EventBusArgs)

SubscribeUnsubscribable

public System.Void SubscribeUnsubscribable<T>(System.String key, System.Action<T> listener)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash6D51CD089EE62BDD6A1E0A6BDAFF986E955731071F24CB03F2B03F7F7C798DD8
  • Body hash080FDBB0EE13B0E802280893F4DE31B44C0C68ACBC84D0F1201343287333EE2C
  • IL size105
Referenced calls
  • EventBusManager.<>c__DisplayClass5_0<T>::.ctor()
  • EventBusManager.<>c__DisplayClass5_0<T>::<SubscribeUnsubscribable>b__0(System.Object, CandideServer.EventBus.EventBusArgs)
  • EventBus.EventBusListener::.ctor(System.Object, System.IntPtr)
  • System.Collections.Generic.Dictionary<System.Object, EventBus.EventBusListener>::Add(!0, !1)
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
  • System.Collections.Generic.List<EventBus.EventBusListener>::Add(!0)
  • CandideServer.EventBus.EventBus::.ctor()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Add(!0, !1)

TryGetBus

public System.Boolean TryGetBus(System.String key, out CandideServer.EventBus.EventBus& eventBus)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Boolean
  • StaticFalse
  • VirtualFalse
  • HashEB3F9B781ACE2803DC821796090DB264DDACCBE035625C5BE75E5A5773E69FDD
  • Body hashBE0FD81C39B03FB09AB710F5FB78569B4F2B3103B1811937A895B875DCF6D96B
  • IL size14
Referenced calls
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
Called by

Unsubscribe

public System.Void Unsubscribe<T>(System.String key, System.Action<T> func)

Method metadata
  • Visibilitypublic
  • Return typeSystem.Void
  • StaticFalse
  • VirtualFalse
  • Hash178A7C2E1DF4A2AD6AE27538B5A5B69240F178C03668458B0AA874FC32534B7B
  • Body hashE8070103A151F8A5905D59857D5ADEDA5B5F4F4B965791E8A0E9031E88C91911
  • IL size74
Referenced calls
  • System.Collections.Generic.Dictionary<System.Object, EventBus.EventBusListener>::Remove(!0, !1&)
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::TryGetValue(!0, !1&)
  • System.Collections.Generic.List<EventBus.EventBusListener>::Remove(!0)
  • System.Collections.Generic.List<EventBus.EventBusListener>::get_Count()
  • System.Collections.Generic.Dictionary<System.String, CandideServer.EventBus.EventBus>::Remove(!0)