Example #1
0
 internal static IObservable <Unit> ConnectExtendingService(this ApplicationModulesManager applicationModulesManager)
 {
     Platform = applicationModulesManager.Modules.GetPlatform();
     return(applicationModulesManager.WhenExtendingModel().FirstAsync()
            .Select(AddExtenders).Switch()
            .Finally(() => {
         ConnectedSubject.OnNext(Unit.Default);
         ModelMapperConfigurations.Clear();
     })
            .ToUnit());
 }
 public static IObservable <ModelInterfaceExtenders> Connect(this ApplicationModulesManager manager)
 => manager.WhenExtendingModel()
 .Do(extenders => extenders.Add <IModelObjectView, IModelObjectViewMergedDifferences>());