Exemple #1
0
        private object Create(IGrainActivationContext context, MethodInfo genericCreate, object[] args)
        {
            INamedExampleStorageFactory factory = context.ActivationServices.GetRequiredService <INamedExampleStorageFactory>();

            return(genericCreate.Invoke(factory, args));
        }
 public StorageFactoryGrain(
     INamedExampleStorageFactory namedExampleStorageFactory)
 {
     this.first  = namedExampleStorageFactory.Create <string>("Blob", new ExampleStorageConfig("FirstState"));
     this.second = namedExampleStorageFactory.Create <string>("Table", new ExampleStorageConfig("second"));
 }