Пример #1
0
        public static string HashAlias(Alias alias)
        {
            var aliasClone = alias.Clone();

            aliasClone.Realm = "";
            return(Base58.Encode(Sha256Hash(Encoding.UTF8.GetBytes(ToJson(aliasClone)))));
        }
Пример #2
0
        public Alias Resolve(Alias cmd, string parameters)
        {
            var result = cmd.Clone();

            result.FileName  = Resolve(cmd.FileName.ToNormalisedParameter(), parameters);
            result.Arguments = Resolve(cmd.Arguments.ToNormalisedParameter(), parameters);

            return(result);
        }
Пример #3
0
        public override object Clone()
        {
            var res = new PaillierAggregationSumFunction(FunctionName.Clone(), Alias.Clone());

            foreach (var v in Parameters)
            {
                res.AddChild((Expression)v.Clone());
            }
            return(res);
        }
Пример #4
0
        public override object Clone()
        {
            var res = new ElGamalDivisionFunction(FunctionName.Clone(), Alias.Clone());

            foreach (var v in Parameters)
            {
                res.AddChild((Expression)v.Clone());
            }
            return(res);
        }
Пример #5
0
 public override object Clone() => new ColumnRef(Table.Clone(), ColumnName.Clone(), Alias.Clone());
Пример #6
0
 public override object Clone() => new MySqlVariable(VariableName.Clone(), Alias.Clone());