public ServerDescriptorDataContract RegisterDevice(UserClientDescriptorDataContract descriptor)
        {
            DeviceBiz.RegisterDevice(descriptor.GetDevice());
            ActiveDeviceHistoryBiz.IncrementTodayActiveDevicesCount();
            _context.SaveChanges();

            return(new ServerDescriptorDataContract()
            {
                SupportedUserClientMinVersion = ConfigurationReader.SupportedUserClientMinVersion,
                SupportedUserClientMaxVersion = ConfigurationReader.SupportedUserClientMaxVersion,
                SupportedDeveloperClientMaxVersion = ConfigurationReader.SupportedDeveloperClientMinVersion,
                SupportedDeveloperClientMinVersion = ConfigurationReader.SupportedDeveloperClientMaxVersion,
            });
        }
 public DeviceManagementDomainService()
 {
     _context  = new WindowsStoreContext();
     DeviceBiz = new DeviceBiz(_context);
     ActiveDeviceHistoryBiz = new ActiveDeviceHistoryBiz(_context);
 }