Ejemplo n.º 1
0
 public InternetPackageContractActions()
 {
     context                   = new ISPContext();
     repository                = new InternetPackageContractRepository(context);
     userRepository            = new UserRepository(context);
     contractAddressRepository = new ContractAddressRepository(context);
     internetPackageRepository = new InternetPackageRepository(context);
 }
Ejemplo n.º 2
0
 public TVChannelContractActions()
 {
     context                   = new ISPContext();
     repository                = new TVChannelContractRepository(context);
     userRepository            = new UserRepository(context);
     contractAddressRepository = new ContractAddressRepository(context);
     tvChannelRepository       = new TVChannelRepository(context);
 }
Ejemplo n.º 3
0
        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();
                }
            }
        }
Ejemplo n.º 4
0
 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();
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
 public UsersRepository(ISPContext ispContext)
 {
     IspContext = ispContext;
 }
Ejemplo n.º 6
0
 public TVChannelActions()
 {
     context    = new ISPContext();
     repository = new TVChannelRepository(context);
 }
Ejemplo n.º 7
0
 public TVChannelPackageRepository(ISPContext context) : base(context)
 {
 }
Ejemplo n.º 8
0
 public ItemsRepository(ISPContext ispContext)
 {
     IspContext = ispContext;
 }
Ejemplo n.º 9
0
        public ContractAddressActions()
        {
            ISPContext context = new ISPContext();

            repository = new ContractAddressRepository(context);
        }
Ejemplo n.º 10
0
 public CategoriesRepository(ISPContext context)
 {
     IspContext = context;
 }
Ejemplo n.º 11
0
 public RepositoryBase(ISPContext context)
 {
     this.context = context;
 }
Ejemplo n.º 12
0
 public RepositoryBase()
 {
     context = new ISPContext();
 }
Ejemplo n.º 13
0
 public TVChannelPackageActions()
 {
     context             = new ISPContext();
     repository          = new TVChannelPackageRepository(context);
     tvChannelRepository = new TVChannelRepository(context);
 }
Ejemplo n.º 14
0
 public ManufacturersRepository(ISPContext ispContext)
 {
     IspContext = ispContext;
 }
Ejemplo n.º 15
0
 public UserRepository(ISPContext context) : base(context)
 {
 }
Ejemplo n.º 16
0
 public InternetPackageActions()
 {
     context    = new ISPContext();
     repository = new InternetPackageRepository(context);
 }
 public InternetPackageContractRepository(ISPContext context) : base()
 {
 }
Ejemplo n.º 18
0
 public TVChannelContractRepository(ISPContext context) : base(context)
 {
 }
Ejemplo n.º 19
0
 public ContractAddressRepository(ISPContext context) : base(context)
 {
 }
Ejemplo n.º 20
0
 public InternetPackageRepository(ISPContext context) : base(context)
 {
 }