Skip to content

Instantly share code, notes, and snippets.

View chris-hmmr's full-sized avatar

Christopher Huemmer chris-hmmr

  • Freelance
  • Berlin
View GitHub Profile
@chris-hmmr
chris-hmmr / AzureBlogStorageFileProvider.cs
Last active July 6, 2022 17:50
Sitecore 9.3+/10.x Azure Blob Storage Provider for Sitecore Forms, using Azure.Storage v12 (based on deprecated v11 implementation by bverdonck)
using System;
using System.Collections.Generic;
using System.IO;
using Azure;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Sitecore.ExperienceForms.Data;
using Sitecore.ExperienceForms.Data.Entities;
namespace Feature.Forms.Extensions
@chris-hmmr
chris-hmmr / MongoDbXdbCollectionCleanupManager.cs
Last active April 12, 2021 12:06
This class can be used to clean up corrupted events and contact facets (holding very long exceptions) for xDB interactions stored in MongoDB. Code was tested and used for Sitecore 9.1 initial
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation.Maintenance.Logging;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Driver;
using Sitecore.Configuration;
namespace Foundation.Maintenance.xConnect