internal UserRegistryService( StatefulServiceContext serviceContext, IReliableStateManagerReplica2 stateManager, IServiceFabricToolbox toolbox) : base(serviceContext, stateManager) { Args.NotNull(toolbox, nameof(toolbox)); _toolbox = toolbox; }
public static TTargetActorInterface Bind <TTargetActorInterface>(this IServiceFabricToolbox toolbox, ActorReference actorReference) where TTargetActorInterface : IActor { if (toolbox == null) { throw new ArgumentNullException(nameof(toolbox)); } if (actorReference == null) { throw new ArgumentNullException(nameof(actorReference)); } return(toolbox.Actors.CreateActorProxy <TTargetActorInterface>(actorReference.ServiceUri, actorReference.ActorId, actorReference.ListenerName)); }
public UserRegistryService(StatefulServiceContext serviceContext, IServiceFabricToolbox toolbox) : base(serviceContext) { Args.NotNull(toolbox, nameof(toolbox)); _toolbox = toolbox; }
public static IUserRegistryService UserRegistry(this IServiceFabricToolbox toolbox) { return(toolbox.Services.CreateServiceProxy <IUserRegistryService>( UserConstants.UserRegistryUri, ServicePartitionKey.Singleton)); }
public static IUserLoader UserLoader(this IServiceFabricToolbox toolbox) { return(toolbox.Actors.CreateActorProxy <IUserLoader>(UserConstants.UserLoaderUri, ActorId.CreateRandom())); }
public static IUser User(this IServiceFabricToolbox toolbox, ActorReference actorReference) { return(toolbox.Actors.CreateActorProxy <IUser>(actorReference)); }
public static IUser User(this IServiceFabricToolbox toolbox, ActorId actorId) { return(toolbox.Actors.CreateActorProxy <IUser>(UserConstants.UserUri, actorId)); }
protected UserLoader(ActorService actorService, ActorId actorId, IServiceFabricToolbox toolbox) : base(actorService, actorId) { Args.NotNull(toolbox, nameof(toolbox)); _toolbox = toolbox; }
public UserStore(IServiceFabricToolbox toolbox) { Args.NotNull(toolbox, nameof(toolbox)); _toolbox = toolbox; }