Exemple #1
0
        internal ServiceGroupStatelessPartition(StatelessServiceBroker statelessServiceBroker, NativeRuntime.IFabricStatelessServicePartition nativeStatelessPartition, NativeRuntime.IFabricServiceGroupPartition nativeServiceGroupPartition)
            : base(statelessServiceBroker, nativeStatelessPartition)
        {
            Requires.Argument("nativeServiceGroupPartition", nativeServiceGroupPartition).NotNull();
            Requires.Argument("nativeStatelessPartition", nativeStatelessPartition).NotNull();

            this.nativeServiceGroupPartition = nativeServiceGroupPartition;
        }
        internal StatelessServicePartition(StatelessServiceBroker statelessServiceBroker, NativeRuntime.IFabricStatelessServicePartition nativeStatelessPartition)
            : base()
        {
            //// Calls native code, requires UnmanagedCode permission

            Requires.Argument("statelessServiceBroker", statelessServiceBroker).NotNull();
            Requires.Argument("nativeStatelessPartition", nativeStatelessPartition).NotNull();

            this.nativePartition = (NativeRuntime.IFabricStatelessServicePartition3)nativeStatelessPartition;
            this.PartitionInfo   = ServicePartitionInformation.FromNative(nativeStatelessPartition.GetPartitionInfo());
        }