コード例 #1
0
        public static InfrastructureTaskQueryResult CreateFromNative(NativeInfrastructureService.IFabricInfrastructureTaskQueryResult native)
        {
            var managed = new InfrastructureTaskQueryResult();

            managed.Items = InfrastructureTaskResultItem.FromNativeQueryList(native.get_Result());
            return(managed);
        }
コード例 #2
0
        internal static InfrastructureTaskResultItem FromNative(NativeInfrastructureService.FABRIC_INFRASTRUCTURE_TASK_QUERY_RESULT_ITEM casted)
        {
            var managed = new InfrastructureTaskResultItem();

            managed.Description = InfrastructureTaskDescription.FromNative(casted.Description);
            managed.State       = FromNativeTaskState(casted.State);

            return(managed);
        }