public static ServiceClientModel.LogSchedulePolicy GetServiceClientLogSchedulePolicy( LogSchedulePolicy psPolicy) { if (psPolicy == null) { return(null); } ServiceClientModel.LogSchedulePolicy serviceClientPolicy = new ServiceClientModel.LogSchedulePolicy(); serviceClientPolicy.ScheduleFrequencyInMins = psPolicy.ScheduleFrequencyInMins; return(serviceClientPolicy); }
// <summary> /// Helper function to convert ps log schedule policy from service response. /// </summary> public static LogSchedulePolicy GetPSLogSchedulePolicy( ServiceClientModel.LogSchedulePolicy serviceClientPolicy, string timeZone) { if (serviceClientPolicy == null) { return(null); } LogSchedulePolicy psPolicy = new LogSchedulePolicy(); psPolicy.ScheduleFrequencyInMins = serviceClientPolicy.ScheduleFrequencyInMins; // safe side validation psPolicy.Validate(); return(psPolicy); }