public static InfrastructureTaskQueryResult CreateFromNative(NativeInfrastructureService.IFabricInfrastructureTaskQueryResult native) { var managed = new InfrastructureTaskQueryResult(); managed.Items = InfrastructureTaskResultItem.FromNativeQueryList(native.get_Result()); return(managed); }
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); }