public void Post(CreateKey request) { _authRepo.Create(new AuthenticationInfo { AppName = request.App, IsActive = true, AccessToken = Guid.NewGuid().ToString("N"), DateCreated = DateTime.UtcNow }, CancellationToken.None); }
public void Post(CreateKey request) { _authRepo.Create(new AuthenticationInfo { AppName = request.App, AccessToken = Guid.NewGuid().ToString("N"), DateCreated = DateTime.UtcNow, DeviceId = _appHost.SystemId, DeviceName = _appHost.FriendlyName, AppVersion = _appHost.ApplicationVersion }); }