当前位置: 首页>>代码示例>>C#>>正文


C# Common.RequestContext类代码示例

本文整理汇总了C#中Sage.Integration.Northwind.Adapter.Common.RequestContext的典型用法代码示例。如果您正苦于以下问题:C# RequestContext类的具体用法?C# RequestContext怎么用?C# RequestContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RequestContext类属于Sage.Integration.Northwind.Adapter.Common命名空间,在下文中一共展示了RequestContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ContactFeedEntryWrapper

 public ContactFeedEntryWrapper(RequestContext request)
     : base(request, SupportedResourceKinds.contacts)
 {
     this._entity = new Account();
     this._entity.DelimiterClause = @"ContactName IS NOT NULL AND ContactName LIKE '_%'"; //Is not null or empty
     _transformer = new ContactTransform(request);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:ContactFeedEntryWrapper.cs

示例2: PhoneNumberFeedEntryWrapper

 public PhoneNumberFeedEntryWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.phoneNumbers)
 {
     this._entity = new Account();
     this._transform = new PhoneNumberTransform(context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:PhoneNumberFeedEntryWrapper.cs

示例3: GetResourceSchema

 public void GetResourceSchema(IRequest request)
 {
     RequestContext context = new RequestContext(request.Uri);
     string redirect = String.Format("{0}{1}#{2}", context.DatasetLink, Constants.schema, context.ResourceKind.ToString());
     request.Response.StatusCode = System.Net.HttpStatusCode.Found;
     request.Response.Protocol.SendUnknownResponseHeader("Location", redirect);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:TopLevelRequestReceiver.cs

示例4: CommodityFeedEntryWrapper

 public CommodityFeedEntryWrapper(RequestContext context)
     : base(context, Adapter.Common.SupportedResourceKinds.commodities)
 {
     _entity = new Product();
     _entity.DelimiterClause = @"Discontinued = false";
     _transform = new CommodityTransform(context);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:CommodityFeedEntryWrapper.cs

示例5: PriceFeedEntryWrapper

 public PriceFeedEntryWrapper(RequestContext context)
     : base(context, Adapter.Common.SupportedResourceKinds.prices)
 {
     _entity = new Price();
     _transform = new PriceTransform(context);
     _commodityFeedEntryWrapper = FeedEntryWrapperFactory.Create(SupportedResourceKinds.commodities, context);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:PriceFeedEntryWrapper.cs

示例6: GetDigest

 public void GetDigest(IRequest request)
 {
     RequestContext context = new RequestContext(request.Uri);
     GetSyncDigestRequestPerformer performer = new GetSyncDigestRequestPerformer();
     performer.Initialize(context);
     performer.DoWork(request);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:UnitsOfMeasureRequestReceiver.cs

示例7: EntityWrapperBase

 public EntityWrapperBase(RequestContext context, SupportedResourceKinds resourceKind)
 {
     _context = context;
     _resourceKind = resourceKind;
     _emptyToken = new Token();
     _correlatedResSyncInfoStore = RequestReceiver.NorthwindAdapter.StoreLocator.GetCorrelatedResSyncStore(_context.SdataContext);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:7,代码来源:EntityWrapperBase.cs

示例8: EmailWrapper

 public EmailWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.emails)
 {
     _entity = new Email();
     _transformation = TransformationFactory.GetTransformation
         <ITransformation<EmailDocument, EmailPayload>>
         (SupportedResourceKinds.emails, context);
 }
开发者ID:estelleLeBouler,项目名称:SData-Contracts,代码行数:8,代码来源:EmailWrapper.cs

示例9: PostalAddressWrapper

 public PostalAddressWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.postalAddresses)
 {
     _entity = new Account();
     _transformation = TransformationFactory.GetTransformation<ITransformation<AddressDocument, PostalAddressPayload>>
         (SupportedResourceKinds.postalAddresses, context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
开发者ID:estelleLeBouler,项目名称:SData-Contracts,代码行数:8,代码来源:PostalAddressWrapper.cs

示例10: PriceWrapper

 public PriceWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.prices)
 {
     _entity = new Price();
     _transformation = TransformationFactory.GetTransformation
         <ITransformation<PriceDocument, PricePayload>>
         (SupportedResourceKinds.prices, context);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:8,代码来源:PriceWrapper.cs

示例11: CommodityGroupWrapper

 public CommodityGroupWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.commodityGroups)
 {
     _entity = new ProductFamily();
     _transformation = TransformationFactory.GetTransformation
         <ITransformation<ProductFamilyDocument, CommodityGroupPayload>>
         (SupportedResourceKinds.commodityGroups, context);
 }
开发者ID:estelleLeBouler,项目名称:SData-Contracts,代码行数:8,代码来源:CommodityGroupWrapper.cs

示例12: PhoneNumberWrapper

 public PhoneNumberWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.phoneNumbers)
 {
     _entity = new Account();
     _transformation = TransformationFactory.GetTransformation<ITransformation<PhoneDocument, PhoneNumberPayload>>
         (SupportedResourceKinds.phoneNumbers, context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:8,代码来源:PhoneNumberWrapper.cs

示例13: SalesOrderFeedEntryWrapper

 public SalesOrderFeedEntryWrapper(RequestContext context)
     : base(context, Adapter.Common.SupportedResourceKinds.salesOrders)
 {
     _entity = new Order();
     _tradingAccountsFeedEntryWrapper = FeedEntryWrapperFactory.Create(SupportedResourceKinds.tradingAccounts, context);
     _commoditiesFeedEntryWrapper = FeedEntryWrapperFactory.Create(SupportedResourceKinds.commodities, context);
     _unitsOfMeasureFeedEntryWrapper = FeedEntryWrapperFactory.Create(SupportedResourceKinds.unitsOfMeasure, context);
 }
开发者ID:estelleLeBouler,项目名称:SData-Contracts,代码行数:8,代码来源:SalesOrderFeedEntryWrapper.cs

示例14: UnitOfMeasureWrapper

 public UnitOfMeasureWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.unitsOfMeasure)
 {
     _entity = new UnitOfMeasure();
     _transformation = TransformationFactory.GetTransformation
         <ITransformation<UnitOfMeasureDocument, UnitOfMeasurePayload>>
         (SupportedResourceKinds.unitsOfMeasure, context);
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:8,代码来源:UnitOfMeasureWrapper.cs

示例15: ContactWrapper

 public ContactWrapper(RequestContext context)
     : base(context, SupportedResourceKinds.contacts)
 {
     _entity = new Account();
     _transformation = TransformationFactory.GetTransformation<ITransformation<PersonDocument, ContactPayload>>
         (SupportedResourceKinds.contacts, context);
     _tradingAccountUuidPayloadPath = _resourceKind.ToString() + "/" + SupportedResourceKinds.tradingAccounts.ToString();
 }
开发者ID:Sage,项目名称:SData-Contracts,代码行数:8,代码来源:ContactWrapper.cs


注:本文中的Sage.Integration.Northwind.Adapter.Common.RequestContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。