Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="request"></param>
 public PackageQueryBase(V341CreateSubscription request)
 {
     DataType        = request.QueryDef.DataType;
     ItemKind        = V341Helpers.ToItemKind(request.QueryDef.ItemKind);
     ItemNames       = request.QueryDef.ItemNames;
     QueryExpr       = request.QueryDef.QueryExpr;
     AppScopes       = request.QueryDef.AppScopes;
     MinimumUSN      = request.QueryDef.MinimumUSN;
     ExcludeDeleted  = request.QueryDef.ExcludeDeleted;
     AsAtTime        = request.QueryDef.AsAtTime;
     ExcludeExisting = request.QueryDef.ExcludeExisting;
     ExcludeDataBody = request.QueryDef.ExcludeDataBody;
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="clientId"></param>
 /// <param name="header"></param>
 /// <param name="body"></param>
 public PackageNotifyMultipleItems(Guid clientId, V131SessionHeader header, V341NotifyMultipleItems body)
     : base(clientId, new PackageHeader(header))
 {
     foreach (V341TransportItem item in body.Items)
     {
         _Items.Add(new CommonItem(
                        item.ItemId, V341Helpers.ToItemKind(item.ItemKind),
                        item.Transient, item.ItemName,
                        new NamedValueSet(item.AppProps), item.DataType, item.AppScope,
                        new NamedValueSet(item.SysProps), item.NetScope,
                        item.Created, item.Expires,
                        item.YData, item.YSign, item.SourceUSN));
     }
 }