internal UserRegistryService(
     StatefulServiceContext serviceContext,
     IReliableStateManagerReplica2 stateManager,
     IServiceFabricToolbox toolbox)
     : base(serviceContext, stateManager)
 {
     Args.NotNull(toolbox, nameof(toolbox));
     _toolbox = toolbox;
 }
예제 #2
0
        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;
 }
예제 #4
0
 public static IUserRegistryService UserRegistry(this IServiceFabricToolbox toolbox)
 {
     return(toolbox.Services.CreateServiceProxy <IUserRegistryService>(
                UserConstants.UserRegistryUri,
                ServicePartitionKey.Singleton));
 }
예제 #5
0
 public static IUserLoader UserLoader(this IServiceFabricToolbox toolbox)
 {
     return(toolbox.Actors.CreateActorProxy <IUserLoader>(UserConstants.UserLoaderUri, ActorId.CreateRandom()));
 }
예제 #6
0
 public static IUser User(this IServiceFabricToolbox toolbox, ActorReference actorReference)
 {
     return(toolbox.Actors.CreateActorProxy <IUser>(actorReference));
 }
예제 #7
0
 public static IUser User(this IServiceFabricToolbox toolbox, ActorId actorId)
 {
     return(toolbox.Actors.CreateActorProxy <IUser>(UserConstants.UserUri, actorId));
 }
예제 #8
0
 protected UserLoader(ActorService actorService, ActorId actorId, IServiceFabricToolbox toolbox)
     : base(actorService, actorId)
 {
     Args.NotNull(toolbox, nameof(toolbox));
     _toolbox = toolbox;
 }
예제 #9
0
 public UserStore(IServiceFabricToolbox toolbox)
 {
     Args.NotNull(toolbox, nameof(toolbox));
     _toolbox = toolbox;
 }