Пример #1
0
 public static PSModuleTwin ToPSModuleTwin(Twin moduleTwin)
 {
     return(IotHubUtils.ConvertObject <Twin, PSModuleTwin>(moduleTwin));
 }
Пример #2
0
 public static IEnumerable <PSConfigurations> ToPSConfigurations(IEnumerable <Configuration> configs)
 {
     return(IotHubUtils.ConvertObject <IEnumerable <Configuration>, IEnumerable <PSConfigurations> >(configs.ToList()));
 }
Пример #3
0
 public static PSDeviceTwin ToPSDeviceTwin(Twin deviceTwin)
 {
     return(IotHubUtils.ConvertObject <Twin, PSDeviceTwin>(deviceTwin));
 }
Пример #4
0
 public static PSConfiguration ToPSConfiguration(Configuration config)
 {
     return(IotHubUtils.ConvertObject <Configuration, PSConfiguration>(config));
 }
Пример #5
0
 public static Configuration ToConfiguration(PSConfiguration psConfig)
 {
     return(IotHubUtils.ConvertObject <PSConfiguration, Configuration>(psConfig));
 }
Пример #6
0
 public static PSModule ToPSModule(Module module)
 {
     return(IotHubUtils.ConvertObject <Module, PSModule>(module));
 }
Пример #7
0
 public static IEnumerable <PSModules> ToPSModules(IEnumerable <Module> modules)
 {
     return(IotHubUtils.ConvertObject <IEnumerable <Module>, IEnumerable <PSModules> >(modules.ToList()));
 }
Пример #8
0
 public static PSDevice ToPSDevice(Device device)
 {
     return(IotHubUtils.ConvertObject <Device, PSDevice>(device));
 }
Пример #9
0
 public static IEnumerable <PSDevices> ToPSDevices(IEnumerable <Device> devices)
 {
     return(IotHubUtils.ConvertObject <IEnumerable <Device>, IEnumerable <PSDevices> >(devices.ToList()));
 }
Пример #10
0
 public static Module ToModule(PSModule psModule)
 {
     return(IotHubUtils.ConvertObject <PSModule, Module>(psModule));
 }
Пример #11
0
 public static Device ToDevice(PSDevice psDevice)
 {
     return(IotHubUtils.ConvertObject <PSDevice, Device>(psDevice));
 }
Пример #12
0
 public static IEnumerable <PSConfigurations> ToPSConfigurations(IEnumerable <Configuration> configs)
 {
     return(IotHubUtils.ConvertObject <IEnumerable <Configuration>, IEnumerable <PSConfigurations> >(configs.Where(c => c.Content.ModulesContent == null).ToList()));
 }
Пример #13
0
 public static PSDeployment ToPSDeployment(Configuration config)
 {
     return((config != null && config.Content.ModulesContent != null) ? IotHubUtils.ConvertObject <Configuration, PSDeployment>(config) : null);
 }
Пример #14
0
 public static PSConfiguration ToPSConfiguration(Configuration config)
 {
     return((config != null && config.Content.ModulesContent == null) ? IotHubUtils.ConvertObject <Configuration, PSConfiguration>(config) : null);
 }