Ejemplo n.º 1
0
        private void close_connection(StoreInfo info)
        {
            if (_shop == null)
                return;

            var shop = _shop;
            _shop = null;

            _io.DisconnectWriter(info, shop);
        }
Ejemplo n.º 2
0
        private void ensure_connection(StoreInfo info)
        {
            if (_shop != null)
                return;

            _shop = _io.ConnectWriter(info);
        }
Ejemplo n.º 3
0
 public static IFunnelStore New(Guid storeId, IFunnelsShop shop, ILogFile log)
 {
     return
         FunnelStoreErrorHandler.New(log,
         new FunnelStore(storeId, shop));
 }
Ejemplo n.º 4
0
 private FunnelStore(Guid storeId, IFunnelsShop shop)
 {
     _storeId = storeId;
     _cache = MReadSWriteCache.New(FunnelCache.New());
     _shop = shop;
 }
Ejemplo n.º 5
0
        private IFunnelsShop get_connection(StoreInfo info)
        {
            if (_shop != null)
                return _shop;

            _shop = _io.ConnectReader(info);
            return _shop;
        }
Ejemplo n.º 6
0
 public static IFunnelsShop New(IFunnelsShop impl)
 {
     return new FunnelsShop(impl);
 }
Ejemplo n.º 7
0
 private FunnelsShop(IFunnelsShop impl)
 {
     _impl = impl;
 }