public CouchbaseStorageOptionsBuilder AddCouchbaseSerializer <TSerializer>(params object[] settings)
     where TSerializer : ISerializer
 {
     builder.AddCouchbaseSerializer <TSerializer>(name, settings);
     serialiserAdded = true;
     return(this);
 }
Example #2
0
 public static ISiloBuilder AddCouchbaseDefaultSerializer(this ISiloBuilder builder, string name)
 => builder.AddCouchbaseSerializer <JsonSerializer>(
     name,
     provider => new object[]
 {
     OrleansJsonSerializer.GetDefaultSerializerSettings(provider.GetRequiredService <ITypeResolver>(), provider.GetRequiredService <IGrainFactory>())
 }
     );