コード例 #1
0
ファイル: AlphariteSdk.cs プロジェクト: sorcares/alpharite
        public void disableCycle(string cycleAlias)
        {
            var cycle = _cycles[cycleAlias] ?? throw new Exception("Cycle {0} does not exist".format(cycleAlias));

            cycle.disable();
            Alpharite.println("Disabled {0} successfully", cycleAlias);
        }
コード例 #2
0
ファイル: Reflection.cs プロジェクト: sorcares/alpharite
            public RecursiveFieldResolve <TFrom, TTo> deep <TProxyType>(string proxyFieldName) where TProxyType : class
            {
                _field    = _type.getField(proxyFieldName);
                _instance = _field.GetValue(_instance) as TProxyType;

                var cache = _type;

                _type = typeof(TProxyType);

                if (_instance == null)
                {
                    Alpharite.println("Error while resolving field {0} (type {1}) inside class {2}",
                                      proxyFieldName, _type, cache);
                }

                return(this);
            }