Пример #1
0
        public UserSettingsClient(UserSettingsConnection connection)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }

            _connection = connection;
        }
Пример #2
0
 internal virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_connection != null)
         {
             _connection.Dispose();
             _connection = null;
         }
     }
 }
Пример #3
0
        public static UserSettingsClient CreateWorkingUserSettingsClient()
        {
            var connection = UserSettingsConnection.Create(Settings.Email, Settings.Password);

            return(new UserSettingsClient(connection));
        }