コード例 #1
0
        private void RunServiceGroupDescriptionTest(int memberCount, int metricCount, bool isStateful)
        {
            var description = CreateServiceGroupDescription(
                memberCount: memberCount,
                metricCount: metricCount,
                isStateful: isStateful);

            using (var pin = new PinCollection())
            {
                IntPtr nativePtr = InteropHelpers.ServiceGroupDescriptionHelper.ToNative(pin, description);

                var marshalled = ServiceGroupDescription.CreateFromNative(new ServiceGroupDescriptionResult(nativePtr));

                ValidateServiceGroupDescription(description, marshalled);
            }
        }
コード例 #2
0
 private ServiceGroupDescription GetServiceGroupDescriptionEndWrapper(NativeCommon.IFabricAsyncOperationContext context)
 {
     return(ServiceGroupDescription.CreateFromNative(this.nativeServiceGroupClient.EndGetServiceGroupDescription(context)));
 }