コード例 #1
0
ファイル: FabricResolver.cs プロジェクト: zbrad/FabricLib
        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);
        }
コード例 #2
0
        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;
        }