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); } }
private ServiceGroupDescription GetServiceGroupDescriptionEndWrapper(NativeCommon.IFabricAsyncOperationContext context) { return(ServiceGroupDescription.CreateFromNative(this.nativeServiceGroupClient.EndGetServiceGroupDescription(context))); }