Beispiel #1
0
        static void OnSpawned(Action <object> callback, SignalDeclaration declaration, SignalSubscription that)
        {
            Assert.IsNull(that._callback);
            that._callback    = callback;
            that._declaration = declaration;
            // Cache this in case OnDeclarationDespawned is called
            that._signalType = declaration.SignalType;

            declaration.Add(that);
        }
Beispiel #2
0
        public void OnSpawned(
            Action <object> callback, SignalDeclaration declaration)
        {
            Assert.IsNull(_callback);
            _callback    = callback;
            _declaration = declaration;
            // Cache this in case OnDeclarationDespawned is called
            _signalId = declaration.BindingId;

            declaration.Add(this);
        }
Beispiel #3
0
 // See comment in SignalDeclaration for why this exists
 public void OnDeclarationDespawned()
 {
     _declaration = null;
 }
Beispiel #4
0
 void SetDefaults()
 {
     _callback    = null;
     _declaration = null;
     _signalId    = new BindingId();
 }
Beispiel #5
0
 void SetDefaults()
 {
     _callback    = null;
     _declaration = null;
     _signalType  = null;
 }