private void HandleValue(object value) { if (value == null) { Container = new StorageValueContainer(null); } else if (value is StorageValueContainer) { Container = value as StorageValueContainer; } else if (value is StorageValueProvider) { Container = new StorageValueContainer(null); Provider = value as StorageValueProvider; } else { Container = new StorageValueContainer(value); } }
public void Invoke(StorageValueContainer container) { _provider.Invoke(container); }