public InternetPackageContractActions() { context = new ISPContext(); repository = new InternetPackageContractRepository(context); userRepository = new UserRepository(context); contractAddressRepository = new ContractAddressRepository(context); internetPackageRepository = new InternetPackageRepository(context); }
public TVChannelContractActions() { context = new ISPContext(); repository = new TVChannelContractRepository(context); userRepository = new UserRepository(context); contractAddressRepository = new ContractAddressRepository(context); tvChannelRepository = new TVChannelRepository(context); }
public static void ExecuteAppOnlyClientContextForSPAppWebQuery <TContext>(ISPContext spContext, Func <TContext, Action> action) where TContext : ClientContext { if (action == null) { throw new ArgumentNullException(nameof(action)); } TContext clientContext = (TContext)spContext?.CreateAppOnlyClientContextForSPAppWeb(); if (clientContext != null) { using (clientContext) { Action result = action.Invoke(clientContext); clientContext.ExecuteQuery(); result?.Invoke(); } } }
public static void ExecuteAppOnlyClientContextQuery <TContext>(ISPContext spContext, Func <TContext, Action> action) where TContext : ClientContext { if (action == null) { throw new ArgumentNullException("action"); } if (spContext != null) { TContext clientContext = (TContext)spContext.CreateAppOnlyClientContextForSPHost(); if (clientContext != null) { using (clientContext) { Action result = action.Invoke(clientContext); clientContext.ExecuteQuery(); if (result != null) { result.Invoke(); } } } } }
public UsersRepository(ISPContext ispContext) { IspContext = ispContext; }
public TVChannelActions() { context = new ISPContext(); repository = new TVChannelRepository(context); }
public TVChannelPackageRepository(ISPContext context) : base(context) { }
public ItemsRepository(ISPContext ispContext) { IspContext = ispContext; }
public ContractAddressActions() { ISPContext context = new ISPContext(); repository = new ContractAddressRepository(context); }
public CategoriesRepository(ISPContext context) { IspContext = context; }
public RepositoryBase(ISPContext context) { this.context = context; }
public RepositoryBase() { context = new ISPContext(); }
public TVChannelPackageActions() { context = new ISPContext(); repository = new TVChannelPackageRepository(context); tvChannelRepository = new TVChannelRepository(context); }
public ManufacturersRepository(ISPContext ispContext) { IspContext = ispContext; }
public UserRepository(ISPContext context) : base(context) { }
public InternetPackageActions() { context = new ISPContext(); repository = new InternetPackageRepository(context); }
public InternetPackageContractRepository(ISPContext context) : base() { }
public TVChannelContractRepository(ISPContext context) : base(context) { }
public ContractAddressRepository(ISPContext context) : base(context) { }
public InternetPackageRepository(ISPContext context) : base(context) { }