Esempio n. 1
0
 private ShellDescriptor MinimumShellDescriptor()
 {
     stackVariable0 = new ShellDescriptor();
     stackVariable0.set_SerialNumber(-1);
     stackVariable0.set_Features(new List <ShellFeature>(this._shellFeatures));
     stackVariable0.set_Parameters(new List <ShellParameter>());
     return(stackVariable0);
 }
 public Task <ShellDescriptor> GetShellDescriptorAsync()
 {
     if (this._shellDescriptor == null)
     {
         stackVariable6 = new ShellDescriptor();
         stackVariable6.set_Features(this._shellFeatures.Distinct <ShellFeature>().ToList <ShellFeature>());
         this._shellDescriptor = stackVariable6;
     }
     return(Task.FromResult <ShellDescriptor>(this._shellDescriptor));
 }
Esempio n. 3
0
 public Task <ShellDescriptor> GetShellDescriptorAsync()
 {
     if (this._shellDescriptor == null)
     {
         stackVariable6  = new ShellDescriptor();
         stackVariable9  = this._extensionManager.GetFeatures();
         stackVariable10 = AllFeaturesShellDescriptorManager.u003cu003ec.u003cu003e9__3_0;
         if (stackVariable10 == null)
         {
             dummyVar0       = stackVariable10;
             stackVariable10 = new Func <IFeatureInfo, ShellFeature>(AllFeaturesShellDescriptorManager.u003cu003ec.u003cu003e9.u003cGetShellDescriptorAsyncu003eb__3_0);
             AllFeaturesShellDescriptorManager.u003cu003ec.u003cu003e9__3_0 = stackVariable10;
         }
         stackVariable6.set_Features(stackVariable9.Select <IFeatureInfo, ShellFeature>(stackVariable10).ToList <ShellFeature>());
         this._shellDescriptor = stackVariable6;
     }
     return(Task.FromResult <ShellDescriptor>(this._shellDescriptor));
 }
 public Task <ShellDescriptor> GetShellDescriptorAsync()
 {
     if (this._shellDescriptor == null)
     {
         V_0 = new ConfiguredFeaturesShellDescriptorManager.ConfiguredFeatures();
         ConfigurationBinder.Bind(this._shellConfiguration, V_0);
         stackVariable10 = this._alwaysEnabledFeatures;
         stackVariable12 = V_0.get_Features();
         stackVariable13 = ConfiguredFeaturesShellDescriptorManager.u003cu003ec.u003cu003e9__4_0;
         if (stackVariable13 == null)
         {
             dummyVar0       = stackVariable13;
             stackVariable13 = new Func <string, ShellFeature>(ConfiguredFeaturesShellDescriptorManager.u003cu003ec.u003cu003e9.u003cGetShellDescriptorAsyncu003eb__4_0);
             ConfiguredFeaturesShellDescriptorManager.u003cu003ec.u003cu003e9__4_0 = stackVariable13;
         }
         V_1             = stackVariable10.Concat <ShellFeature>(stackVariable12.Select <string, ShellFeature>(stackVariable13)).Distinct <ShellFeature>();
         stackVariable18 = new ShellDescriptor();
         stackVariable18.set_Features(V_1.ToList <ShellFeature>());
         this._shellDescriptor = stackVariable18;
     }
     return(Task.FromResult <ShellDescriptor>(this._shellDescriptor));
 }