Beispiel #1
0
        /// <summary>
        /// Populates this struct from native stats.
        /// </summary>
        /// <param name="nativeKeyRange"></param>
        /// <returns></returns>
        internal static IntegerPartitionKeyRange FromNative(NativeReliableMessaging.INTEGER_PARTITION_KEY_RANGE nativeKeyRange)
        {
            var keyRange = new IntegerPartitionKeyRange
            {
                IntegerKeyLow  = nativeKeyRange.IntegerKeyLow,
                IntegerKeyHigh = nativeKeyRange.IntegerKeyHigh
            };

            return(keyRange);
        }
Beispiel #2
0
        /// <summary>
        /// overload for numbered partition owner
        /// </summary>
        /// <param name="replicaId"></param>
        /// <param name="ownerServiceInstanceName">The name of the owner service instance for the session</param>
        /// <param name="partitionId"></param>
        /// <param name="partitionKey"></param>
        public ReliableSessionManager(Guid partitionId, long replicaId, Uri ownerServiceInstanceName, IntegerPartitionKeyRange partitionKey)
        {
            // AppTrace.TraceSource.WriteNoise("ReliableMessaging.NativeReliableMessaging.FabricCreateReliableSession");

            this.SessionManagerConstructorHelper(
                partitionId,
                replicaId,
                ownerServiceInstanceName,
                NativeTypes.FABRIC_PARTITION_KEY_TYPE.FABRIC_PARTITION_KEY_TYPE_INT64,
                partitionKey);
        }