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); }
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(); }
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===="); }
public RpcExCurrency(IHttpContextAccessor accessor, Ntfy notifications) { this.accessor = accessor; this.notifications = notifications; }
public RpcExCurrency(IHttpContextAccessor accessor, Ntfy notifications, Persistence db) { this.accessor = accessor; this.notifications = notifications; this.db = db; }
public RpcAuth(ILogger <RpcAuth> logger, IHttpContextAccessor accessor, Ntfy notifications) { this.accessor = accessor; this.notifications = notifications; }