async Task <Filter> createFilter(PartInfo part, FabricFilter old) { var prev = old == null ? null : old.ResolvedServicePartition; var rsp = await getRsp(part, prev); var ff = new FabricFilter(); ff.Initialize(this.Retry, part, rsp); return(ff); }
public PartInfo(Message m) { this.Message = m; this.Kind = ServicePartitionKind.Singleton; var key = FabricFilter.GetPartitionKey(m); if (key == null) { return; } long ranged; if (long.TryParse(key, out ranged)) { this.Kind = ServicePartitionKind.Int64Range; this.RangeKey = ranged; return; } this.NameKey = key; this.Kind = ServicePartitionKind.Named; }