Exemplo n.º 1
0
        public RpcContacts(IHttpContextAccessor accessor, Ntfy notifications)
        {
            this.accessor      = accessor;
            this.notifications = notifications;

            var userId = this.accessor.HttpContext.User.FindFirst(c => c.Type == D.CLAIM.USERID)?.Value;

            uid = UserHelper.IdGen.Parse(userId);
        }
Exemplo n.º 2
0
        public RpcTrading(IHttpContextAccessor accessor, Ntfy notifications)
        {
            this.accessor      = accessor;
            this.notifications = notifications;

            userId = this.accessor.HttpContext.User.FindFirst(c => c.Type == D.CLAIM.USERID)?.Value;
            uid    = UserHelper.IdGen.Parse(userId);

            balanceHelper = new BalanceHelper();
        }
Exemplo n.º 3
0
        public Persistence(Ntfy notifications)
        {
            return;

            Console.WriteLine("====start db====");
            this.notifications = notifications;

            //get database client as a connection
            client = new DocumentClient(new Uri(R.DB_URI), R.DB_KEY);

            Console.WriteLine("====init====");
            InitDB();

            Console.WriteLine("====mockup====");
            Mockup();

            // Console.WriteLine("====clear====");
            // ClearDB();

            Console.WriteLine("====end db====");
        }
Exemplo n.º 4
0
 public RpcExCurrency(IHttpContextAccessor accessor, Ntfy notifications)
 {
     this.accessor      = accessor;
     this.notifications = notifications;
 }
Exemplo n.º 5
0
 public RpcExCurrency(IHttpContextAccessor accessor, Ntfy notifications, Persistence db)
 {
     this.accessor      = accessor;
     this.notifications = notifications;
     this.db            = db;
 }
Exemplo n.º 6
0
 public RpcAuth(ILogger <RpcAuth> logger, IHttpContextAccessor accessor, Ntfy notifications)
 {
     this.accessor      = accessor;
     this.notifications = notifications;
 }