RedisGrainStorageServiceCollectionExtensions.cs from dotnet/orleans
// Source: https://github.com/dotnet/orleans | License: MIT | Copyright .NET Foundation
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Orleans.Configuration;
using Orleans.Hosting;
using Orleans.Persistence;
using Orleans.Providers;
using Orleans.Runtime;
using Orleans.Runtime.Hosting;
using Orleans.Storage;
namespace Orleans.Hosting
{
/// <summary>
/// <see cref="IServiceCollection"/> extensions.
/// </summary>
public static class RedisGrainStorageServiceCollectionExtensions
{
/// <summary>
/// Configures Redis as the default grain storage provider.
/// </summary>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key