2 writes to _CurrentUser
System.Web.Extensions (2)
ClientServices\Providers\ClientRoleProvider.cs (2)
133
_CurrentUser
= p.Identity.Name;
305
_CurrentUser
= username;
13 references to _CurrentUser
System.Web.Extensions (13)
ClientServices\Providers\ClientRoleProvider.cs (13)
121
if (string.Compare(
_CurrentUser
, p.Identity.Name, StringComparison.OrdinalIgnoreCase) == 0 && DateTime.UtcNow < _CacheExpiryDate)
206
if (string.IsNullOrEmpty(
_CurrentUser
))
211
ClientData cd = ClientDataManager.GetUserClientData(
_CurrentUser
, _UsingIsolatedStore);
218
using (DbConnection conn = SqlHelper.GetConnection(
_CurrentUser
, _ConnectionString, _ConnectionStringProvider)) {
224
SqlHelper.AddParameter(conn, cmd, "@UserName",
_CurrentUser
);
230
SqlHelper.AddParameter(conn, cmd, "@RolesCachedDate", "RolesCachedDate_" +
_CurrentUser
);
253
ClientData cd = ClientDataManager.GetUserClientData(
_CurrentUser
, _UsingIsolatedStore);
265
using (DbConnection conn = SqlHelper.GetConnection(
_CurrentUser
, _ConnectionString, _ConnectionStringProvider)) {
274
SqlHelper.AddParameter(conn, cmd, "@UserName",
_CurrentUser
);
281
SqlHelper.AddParameter(conn, cmd, "@RolesCachedDate", "RolesCachedDate_" +
_CurrentUser
);
320
using (DbConnection conn = SqlHelper.GetConnection(
_CurrentUser
, _ConnectionString, _ConnectionStringProvider)) {
327
SqlHelper.AddParameter(conn, cmd, "@RolesCachedDate", "RolesCachedDate_" +
_CurrentUser
);
340
SqlHelper.AddParameter(conn, cmd, "@UserName",
_CurrentUser
);