Пример #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);
        }
Пример #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();
        }
Пример #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====");
        }
Пример #4
0
 public RpcExCurrency(IHttpContextAccessor accessor, Ntfy notifications)
 {
     this.accessor      = accessor;
     this.notifications = notifications;
 }
Пример #5
0
 public RpcExCurrency(IHttpContextAccessor accessor, Ntfy notifications, Persistence db)
 {
     this.accessor      = accessor;
     this.notifications = notifications;
     this.db            = db;
 }
Пример #6
0
 public RpcAuth(ILogger <RpcAuth> logger, IHttpContextAccessor accessor, Ntfy notifications)
 {
     this.accessor      = accessor;
     this.notifications = notifications;
 }