コード例 #1
0
 public LikeFollowAnnounceHandler(IEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, CollectionTools collection, EntityData data, RelevantEntitiesService relevantEntities, IServiceProvider serviceProvider, DbConnection connection) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _collection       = collection;
     _data             = data;
     _relevantEntities = relevantEntities;
     _serviceProvider  = serviceProvider;
     _connection       = connection;
 }
コード例 #2
0
 public UndoActivityHandler(StagingEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, CollectionTools collection) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _collection = collection;
 }
コード例 #3
0
 public WebSubBackgroundTask(EventQueueItem item, IEntityStore entityStore, DbConnection connection, CollectionTools collectionTools) : base(item)
 {
     _entityStore     = entityStore;
     _connection      = connection;
     _collectionTools = collectionTools;
 }
コード例 #4
0
 public bool IsMatch(Type type, Node node)
 {
     return(CollectionTools.HasCollectionBase(type));
 }
コード例 #5
0
 public AdminController(DbConnection connection, IEntityStore entityStore, EntityData entityData, JwtTokenSettings tokenSettings, SignInManager <APUser> signInManager, IServiceProvider provider, IConfigurationRoot configuration, EntityFlattener flattener, UserManager <APUser> userManager, RelevantEntitiesService relevantEntities, CollectionTools collectionTools)
 {
     _connection       = connection;
     _entityStore      = entityStore;
     _entityData       = entityData;
     _tokenSettings    = tokenSettings;
     _signInManager    = signInManager;
     _provider         = provider;
     _configuration    = configuration;
     _flattener        = flattener;
     _userManager      = userManager;
     _relevantEntities = relevantEntities;
     _collectionTools  = collectionTools;
 }
コード例 #6
0
 public FollowLikeHandler(StagingEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, CollectionTools collection, EntityData data) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _collection = collection;
     _data       = data;
 }
コード例 #7
0
 public AuthController(DbConnection connection, UserManager <APUser> userManager, SignInManager <APUser> signInManager, JwtTokenSettings tokenSettings, EntityFlattener entityFlattener, IEntityStore entityStore, EntityData entityConfiguration, IDataProtectionProvider dataProtectionProvider, IConfigurationRoot configuration, DeliveryService deliveryService, SignatureVerifier verifier, IServiceProvider provider, CollectionTools collectionTools, RelevantEntitiesService relevantEntities)
 {
     _connection          = connection;
     _userManager         = userManager;
     _signInManager       = signInManager;
     _tokenSettings       = tokenSettings;
     _entityFlattener     = entityFlattener;
     _entityStore         = entityStore;
     _entityConfiguration = entityConfiguration;
     _dataProtector       = dataProtectionProvider.CreateProtector("OAuth tokens");
     _configuration       = configuration;
     _deliveryService     = deliveryService;
     _verifier            = verifier;
     _provider            = provider;
     _collectionTools     = collectionTools;
     _relevantEntities    = relevantEntities;
 }
コード例 #8
0
 public AcceptRejectFollowHandler(IEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, EntityData data, CollectionTools collection) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _data       = data;
     _collection = collection;
 }
コード例 #9
0
 public CreateActorHandler(StagingEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, CollectionTools collection, EntityData entityData, APContext context) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _collection = collection;
     _entityData = entityData;
     _context    = context;
 }
コード例 #10
0
 public SettingsController(APContext context, IEntityStore entityStore, EntityData entityData, JwtTokenSettings tokenSettings, SignInManager <APUser> signInManager, IServiceProvider provider, IConfigurationRoot configuration, EntityFlattener flattener, UserManager <APUser> userManager, RelevantEntitiesService relevantEntities, CollectionTools collectionTools, TemplateService templateService)
 {
     _context          = context;
     _entityStore      = entityStore;
     _entityData       = entityData;
     _tokenSettings    = tokenSettings;
     _signInManager    = signInManager;
     _provider         = provider;
     _configuration    = configuration;
     _flattener        = flattener;
     _userManager      = userManager;
     _relevantEntities = relevantEntities;
     _collectionTools  = collectionTools;
     _templateService  = templateService;
 }
コード例 #11
0
 /// <summary>
 /// Joins one enumerator with another as yield
 /// </summary>
 /// <typeparam name="T">Type of enumerated.</typeparam>
 /// <param name="first">First enumerator.</param>
 /// <param name="second">Second enumerator.</param>
 /// <returns>
 /// Joined enumerators as yield.
 /// </returns>
 public static IEnumerable <T> YieldWith <T>(this IEnumerable <T> first, IEnumerable <T> second)
 {
     return(CollectionTools.JoinEnumerators(first, second));
 }
コード例 #12
0
 public CollectionEntityStore(CollectionTools collectionTools, IEntityStore next)
 {
     _collectionTools = collectionTools;
     Bypass           = next;
 }
コード例 #13
0
 public RenderController(IEntityStore entityStore, TemplateService templateService, CollectionTools collectionTools)
 {
     _entityStore     = new CollectionEntityStore(collectionTools, entityStore);
     _templateService = templateService;
 }
コード例 #14
0
 public CreateHandler(IEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, CollectionTools collection) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _collection = collection;
 }
コード例 #15
0
 public DeliveryHandler(IEntityStore entityStore, APEntity mainObject, APEntity actor, APEntity targetBox, ClaimsPrincipal user, CollectionTools collection, DeliveryService deliveryService) : base(entityStore, mainObject, actor, targetBox, user)
 {
     _collection      = collection;
     _deliveryService = deliveryService;
 }