예제 #1
0
        public void ProcessGatewayRequest(IContext context, IRegisteredComponent component)
        {
            BaseBarcode b = BarcodeFactory.GetBarcode(Symbology.EAN128);

            b.Number = _number;
            WriteBarcodeImageToStream(b);
        }
예제 #2
0
 internal static void _UnregisterType(IRegisteredComponent component, Type type)
 {
     if (_GetInstanceContainer(type).Remove(component))
     {
         return;
     }
     Debug.LogError("RegisteredComponentController error: Tried to unregister unknown instance");
 }
예제 #3
0
 private static void _RegisterType(IRegisteredComponent component, Type type)
 {
     if (_GetInstanceContainer(type).Add(component))
     {
         return;
     }
     Debug.LogError("RegisteredComponentController error: Tried to register same instance twice");
 }
예제 #4
0
    static internal void _UnregisterType(IRegisteredComponent component, Type type)
    {
        InstanceContainer container = _GetInstanceContainer(type);

        if (!container.Remove(component))
        {
            CustomDebug.LogError("RegisteredComponentController error: Tried to unregister unknown instance");
        }
    }
예제 #5
0
    static private void _RegisterType(IRegisteredComponent component, Type type)
    {
        InstanceContainer container = _GetInstanceContainer(type);

        if (!container.Add(component))
        {
            CustomDebug.LogError("RegisteredComponentController error: Tried to register same instance twice");
        }
    }
예제 #6
0
        static internal void _UnregisterType( IRegisteredComponent component, Type type )
        {
            InstanceContainer container = _GetInstanceContainer( type );
            if ( !container.Remove( component ) )
            {
                Debug.LogError( "RegisteredComponentController error: Tried to unregister unknown instance" );
            }

            //Debug.Log( "Unregistered " + type.Name + ": " + component.gameObject.name );
        }
예제 #7
0
        static private void _RegisterType( IRegisteredComponent component, Type type )
        {
            InstanceContainer container = _GetInstanceContainer( type );
            if ( !container.Add( component ) )
            {
                Debug.LogError( "RegisteredComponentController error: Tried to register same instance twice" );
            }

            //Debug.Log( "Registered " + type.Name + ": " + component.gameObject.name );
        }
예제 #8
0
        internal static void _Register(IRegisteredComponent component)
        {
            var type = component.GetType();

            do
            {
                _RegisterType(component, type);
                type = type.BaseType;
            } while(type != component.GetRegisteredComponentBaseClassType());
        }
예제 #9
0
    static internal void _Register(IRegisteredComponent component)
    {
        Type type = component.GetType();

#if REDUCED_REFLECTION
        _RegisterType(component, type);   // BaseType not supported by Flash - so only top level class is registered!!
#else
        do
        {
            _RegisterType(component, type);
            type = type.BaseType;
        } while (type != component.GetRegisteredComponentBaseClassType());
#endif
    }
예제 #10
0
    static internal void _Register(IRegisteredComponent component)
    {
        Type type = component.GetType();

#if UNITY_FLASH
        _RegisterType(component, type);   // BaseType not supported by Flash - so only top level class is registered!!
#else
        do
        {
            _RegisterType(component, type);
            type = type.BaseType;
        } while (type != component.GetRegisteredComponentBaseClassType());
#endif

        //Debug.Log( "Registered " + component.GetType().Name + ": " + component.gameObject.name );
    }
예제 #11
0
    static internal void _Unregister(IRegisteredComponent component)
    {
        Type type = component.GetType();

#if REDUCED_REFLECTION
        _UnregisterType(component, type);   // BaseType not supported by Flash !!
#else
        do
        {
            _UnregisterType(component, type);

            type = type.BaseType;
        } while (type != component.GetRegisteredComponentBaseClassType());
#endif

        //Debug.Log( "Unregistered " + component.GetType().Name + ": " + component.gameObject.name );
    }