예제 #1
0
 // ReSharper disable once TooManyDependencies
 public Select(IBody <TIn> body, IStores <TOut> stores, Func <TIn, TOut> select, Assigned <uint> limit)
 {
     _body   = body;
     _stores = stores;
     _select = select;
     _limit  = limit;
 }
예제 #2
0
 // ReSharper disable once TooManyDependencies
 public Concatenation(IBody <T> body, ISequence <T> others, IStores <T> stores, Assigned <uint> limit)
 {
     _body   = body;
     _others = others;
     _stores = stores;
     _limit  = limit;
 }
예제 #3
0
 /// <summary>
 /// Return the store details for specified store name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='storeName'>
 /// The name of the store
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExternalStoreResponse> GetAsync(this IStores operations, string storeName, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(storeName, ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #4
0
 public AspectRegistrations(IStores <IAspect <TIn, TOut> > stores, Func <Array <IRegistration> > registrations,
                            ISelect <object, IAspect <TIn, TOut> > adapter)
 {
     _stores        = stores;
     _registrations = registrations;
     _adapter       = adapter;
 }
예제 #5
0
 public TaxOrderDetailsByProduct(IStores StoreObj, IProduct ProductObj, double PreTaxProductPrice, double PostTaxProductPrice, double Tax)
 {
     this.StoreObj            = StoreObj;
     this.ProductObj          = ProductObj;
     this.PreTaxProductPrice  = PreTaxProductPrice;
     this.PostTaxProductPrice = PostTaxProductPrice;
     this.Tax = Tax;
 }
예제 #6
0
 // ReSharper disable once TooManyDependencies
 public InlineProjection(IBody <TIn> body, Copy <TIn, TOut> apply,
                         IStores <TOut> stores, Assigned <uint> limit)
 {
     _body   = body;
     _apply  = apply;
     _stores = stores;
     _limit  = limit;
 }
예제 #7
0
 // ReSharper disable once TooManyDependencies
 public SelectMany(IBody <TIn> body, Func <TIn, IEnumerable <TOut> > project, IStores <TOut> stores,
                   IIterate <TOut> iterate, Assigned <uint> limit)
 {
     _body    = body;
     _project = project;
     _stores  = stores;
     _iterate = iterate;
     _limit   = limit;
 }
예제 #8
0
 // ReSharper disable once TooManyDependencies
 public Union(IBody <T> body, ISequence <T> others, IEqualityComparer <T> comparer, IStores <T> stores,
              Assigned <uint> limit)
 {
     _body     = body;
     _others   = others;
     _comparer = comparer;
     _stores   = stores;
     _limit    = limit;
 }
예제 #9
0
 public Parameter(IBody <TIn> body, IStores <TOut> stores, Assigned <uint> limit)
 {
     Body   = body;
     Stores = stores;
     Limit  = limit;
 }
 public StoreAdminModel(IProductRepository prodRepo, IStores storeRepo)
 {
     products = prodRepo;
     stores   = storeRepo;
 }
예제 #11
0
 // ReSharper disable once TooManyDependencies
 public InlineProjection(IBody <TIn> body, Expression <Func <TIn, TOut> > select, IStores <TOut> stores,
                         Assigned <uint> limit)
     : this(body, InlineSelections <TIn, TOut> .Default.Get(select).Compile(), stores, limit)
 {
 }
예제 #12
0
 /// <summary>
 /// Get all the store details from Storage store table for a particular
 /// application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static IList <ExternalStoreResponse> List(this IStores operations, string ownerName, string appName)
 {
     return(operations.ListAsync(ownerName, appName).GetAwaiter().GetResult());
 }
예제 #13
0
 /// <summary>
 /// delete the store based on specific store name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='storeName'>
 /// The name of the store
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IStores operations, string storeName, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(storeName, ownerName, appName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 public ShowStoreModel(IStores storesRepo, IProductRepository productsRepo)
 {
     stores   = storesRepo;
     products = productsRepo;
 }
예제 #15
0
 public Func <Assigned <uint>, IContent <TIn, TTo> > Get(IStores <TTo> parameter)
 => new Next <TIn, TOut, TTo>(_from, _to.Get(parameter)).Get;
 public ZPushAccounts(ZPushWatcher watcher, IAddIn addIn)
 {
     this._watcher = watcher;
     this._addIn   = addIn;
     this._stores  = addIn.Stores;
 }
예제 #17
0
 // ReSharper disable once TooManyDependencies
 public SelectMany(IBody <TIn> body, Func <TIn, IEnumerable <TOut> > project, IStores <TOut> stores,
                   Assigned <uint> limit)
     : this(body, project, stores, Iterate <TOut> .Default, limit)
 {
 }
예제 #18
0
 public StoresBLL() : base(typeName)
 {
     iStores = (IStores)idal;
 }
예제 #19
0
 /// <summary>
 /// Update the store.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='storeName'>
 /// The name of the store
 /// </param>
 /// <param name='body'>
 /// Store update request
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PatchAsync(this IStores operations, string storeName, StorePatchRequest body, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.PatchWithHttpMessagesAsync(storeName, body, ownerName, appName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #20
0
 public CollectionSelection(IStores <T> storage) => _storage = storage;
예제 #21
0
 /// <summary>
 /// delete the store based on specific store name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='storeName'>
 /// The name of the store
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static void Delete(this IStores operations, string storeName, string ownerName, string appName)
 {
     operations.DeleteAsync(storeName, ownerName, appName).GetAwaiter().GetResult();
 }
예제 #22
0
 public Func <Assigned <uint>, IContent <TIn, TOut> > Get(IStores <TOut> parameter)
 => new SelectedContent <TIn, TOut>(_partition, _contents, parameter).Get;
예제 #23
0
 /// <summary>
 /// Create a new external store for the specified application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// The store request
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static ExternalStoreResponse Create(this IStores operations, ExternalStoreRequest body, string ownerName, string appName)
 {
     return(operations.CreateAsync(body, ownerName, appName).GetAwaiter().GetResult());
 }
예제 #24
0
 public DeferredSequence(Array <IResult <T> > results, IStores <T> stores)
 {
     _results = results;
     _stores  = stores;
 }
예제 #25
0
 /// <summary>
 /// Return the store details for specified store name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='storeName'>
 /// The name of the store
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static ExternalStoreResponse Get(this IStores operations, string storeName, string ownerName, string appName)
 {
     return(operations.GetAsync(storeName, ownerName, appName).GetAwaiter().GetResult());
 }
예제 #26
0
 public StoresModel(IStores repository)
 {
     repo = repository;
 }
예제 #27
0
 /// <summary>
 /// Update the store.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='storeName'>
 /// The name of the store
 /// </param>
 /// <param name='body'>
 /// Store update request
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static void Patch(this IStores operations, string storeName, StorePatchRequest body, string ownerName, string appName)
 {
     operations.PatchAsync(storeName, body, ownerName, appName).GetAwaiter().GetResult();
 }
예제 #28
0
 public SelectedContent(IPartition <TIn> partition, IContents <TIn, TOut> contents, IStores <TOut> stores)
 {
     _contents  = contents;
     _partition = partition;
     _stores    = stores;
 }
예제 #29
0
 public Storage(IStores <T> stores, ICommand <T[]> @return) : base(stores.Get) => _return = @return;
예제 #30
0
 public SelectedContent(IContents <TIn, TOut> contents, IStores <TOut> stores)
     : this(Partition <TIn> .Default, contents, stores)
 {
 }