예제 #1
0
        public BackupApps(IGrainFactory grainFactory, IUserResolver userResolver)
        {
            Guard.NotNull(grainFactory, nameof(grainFactory));
            Guard.NotNull(userResolver, nameof(userResolver));

            this.grainFactory = grainFactory;
            this.userResolver = userResolver;

            appsByNameIndex = grainFactory.GetGrain <IAppsByNameIndex>(SingleGrain.Id);
        }
        public AppsByNameIndexCommandMiddleware(IGrainFactory grainFactory)
        {
            Guard.NotNull(grainFactory, nameof(grainFactory));

            index = grainFactory.GetGrain <IAppsByNameIndex>(SingleGrain.Id);
        }
        public OrleansAppsHealthCheck(IGrainFactory grainFactory)
        {
            Guard.NotNull(grainFactory, nameof(grainFactory));

            index = grainFactory.GetGrain <IAppsByNameIndex>(SingleGrain.Id);
        }