// GetCurrentRegistryInstance returns the Service Registry instance set in the currently selected context
GetCurrentRegistryInstance returns the Service Registry instance set in the currently selected context
// GetCurrentRegistryInstance returns the Service Registry instance set in the currently selected context
func GetCurrentRegistryInstance(f *factory.Factory) (*registrymgmtclient.Registry, error) {
	svcContext, err := f.ServiceContext.Load()
	if err != nil {
		return nil, err
	}
	currCtx, err := GetCurrentContext(svcContext, f.Localizer)
	if err != nil {
		return nil, err
	}
	return GetRegistryForServiceConfig(currCtx, f)
}
func GetCurrentRegistryInstance ( f * factory . Factory ) ( * registrymgmtclient . Registry , error ) { svcContext , err := f . ServiceContext . Load ( ) if err != nil { return nil , err } currCtx , err := GetCurrentContext ( svcContext , f . Localizer ) if err != nil { return nil , err } return GetRegistryForServiceConfig ( currCtx , f ) }
GetCurrentRegistryInstance returns the Service Registry instance set in the currently selected context
GetCurrentRegistryInstance returns the Service Registry instance set in the currently selected context