Esempio n. 1
0
 public V341QueryDefinition(
     ItemKind itemKind,
     string dataType,
     string[] appScopes,
     string[] itemNames,
     string queryExpr,
     DateTimeOffset asAtTime,
     long minimumUSN,
     bool excludeExisting,
     bool waitForExisting,
     bool excludeDeleted,
     bool excludeDataBody)
 {
     ItemKind        = V341Helpers.ToV341ItemKind(itemKind);
     DataType        = dataType;
     AppScopes       = appScopes;
     ItemNames       = itemNames;
     QueryExpr       = queryExpr;
     AsAtTime        = asAtTime;
     MinimumUSN      = minimumUSN;
     ExcludeExisting = excludeExisting;
     WaitForExisting = waitForExisting;
     ExcludeDeleted  = excludeDeleted;
     ExcludeDataBody = excludeDataBody;
 }
Esempio n. 2
0
        public CommonItem AsCommonItem()
        {
            var result = new CommonItem(
                ItemId, V341Helpers.ToItemKind(ItemKind), Transient, ItemName,
                new NamedValueSet(AppProps), DataType, AppScope,
                new NamedValueSet(SysProps), NetScope, Created, Expires,
                YData, YSign, SourceUSN);

            return(result);
        }
Esempio n. 3
0
 public V341TransportItem(CommonItem item, bool excludeDataBody)
 {
     ItemId    = item.Id;
     ItemKind  = V341Helpers.ToV341ItemKind(item.ItemKind);
     Transient = item.Transient;
     ItemName  = item.Name;
     AppProps  = item.AppProps.Serialise();
     SysProps  = item.SysProps.Serialise();
     DataType  = item.DataTypeName;
     AppScope  = item.AppScope;
     NetScope  = item.NetScope;
     Created   = item.Created;
     Expires   = item.Expires;
     SourceUSN = item.StoreUSN;
     if (!excludeDataBody)
     {
         YData = item.YData;
         YSign = item.YSign;
     }
 }