本文整理汇总了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);
}
示例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();
}
示例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);
}
示例4: CommodityFeedEntryWrapper
public CommodityFeedEntryWrapper(RequestContext context)
: base(context, Adapter.Common.SupportedResourceKinds.commodities)
{
_entity = new Product();
_entity.DelimiterClause = @"Discontinued = false";
_transform = new CommodityTransform(context);
}
示例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);
}
示例6: GetDigest
public void GetDigest(IRequest request)
{
RequestContext context = new RequestContext(request.Uri);
GetSyncDigestRequestPerformer performer = new GetSyncDigestRequestPerformer();
performer.Initialize(context);
performer.DoWork(request);
}
示例7: EntityWrapperBase
public EntityWrapperBase(RequestContext context, SupportedResourceKinds resourceKind)
{
_context = context;
_resourceKind = resourceKind;
_emptyToken = new Token();
_correlatedResSyncInfoStore = RequestReceiver.NorthwindAdapter.StoreLocator.GetCorrelatedResSyncStore(_context.SdataContext);
}
示例8: EmailWrapper
public EmailWrapper(RequestContext context)
: base(context, SupportedResourceKinds.emails)
{
_entity = new Email();
_transformation = TransformationFactory.GetTransformation
<ITransformation<EmailDocument, EmailPayload>>
(SupportedResourceKinds.emails, context);
}
示例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();
}
示例10: PriceWrapper
public PriceWrapper(RequestContext context)
: base(context, SupportedResourceKinds.prices)
{
_entity = new Price();
_transformation = TransformationFactory.GetTransformation
<ITransformation<PriceDocument, PricePayload>>
(SupportedResourceKinds.prices, context);
}
示例11: CommodityGroupWrapper
public CommodityGroupWrapper(RequestContext context)
: base(context, SupportedResourceKinds.commodityGroups)
{
_entity = new ProductFamily();
_transformation = TransformationFactory.GetTransformation
<ITransformation<ProductFamilyDocument, CommodityGroupPayload>>
(SupportedResourceKinds.commodityGroups, context);
}
示例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();
}
示例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);
}
示例14: UnitOfMeasureWrapper
public UnitOfMeasureWrapper(RequestContext context)
: base(context, SupportedResourceKinds.unitsOfMeasure)
{
_entity = new UnitOfMeasure();
_transformation = TransformationFactory.GetTransformation
<ITransformation<UnitOfMeasureDocument, UnitOfMeasurePayload>>
(SupportedResourceKinds.unitsOfMeasure, context);
}
示例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();
}