Share via


CommerceCache Constructor (String, Int32, Int32, String, String, String, Object, Object, DebugContext) (BCL)

Use this method to create a new instance of the CommerceCache class.

Definition

[Visual Basic .NET]

Public Sub New( _ByValname As System.String, _
  ByValrefreshInterval As System.Int32, _
  ByValretryInterval As System.Int32, _
  ByValloaderProgId As System.String, _
  ByValwriterProgId As System.String, _
  ByValcacheObjectProgId As System.String, _
  ByValloaderConfigDictionary As System.Object, _
  ByValwriterConfigDictionary As System.Object, _
  ByValdbgContext As DebugContext _
) 

[C#]

public CommerceCache(System.Stringname,
  System.Int32refreshInterval,
  System.Int32retryInterval,
  System.StringloaderProgId,
  System.StringwriterProgId,
  System.StringcacheObjectProgId,
  System.ObjectloaderConfigDictionary,
  System.ObjectwriterConfigDictionary,
  DebugContextdbgContext);

Parameters

[Visual Basic .NET]

  • name
    The cache name. May not be null.
  • refreshInterval
    The refresh interval in seconds. A value of zero means to never refresh.
  • retryInterval
    The retry interval in seconds. A value of zero means to use the default (60 seconds).
  • loaderProgId
    The ProgId of the component that should be created and invoked to populate this cache during refresh cycles. May not be null.
  • writerProgId
    The ProgId of the component that should be created and invoked to write out cache data during refresh cycles. Optional. May be null.
  • cacheObjectProgId
    The ProgId of the component that is to serve as the cache container object, usually Commerce.Dictionary or Commerce.LRUCache. May be null.
  • loaderConfigDictionary
    The Commerce.IDictionary object containing name value pairs to pass to the loader component when it is invoked. This parameter is optional. May be null.
  • writerConfigDictionary
    The Commerce.IDictionary object containing name value pairs to pass to the writer component when it is invoked. This parameter is optional. May be null.
  • dbgContext
    The DebugContext object. May not be null.

[C#]

  • name
    The cache name. May not be null.
  • refreshInterval
    The refresh interval in seconds. A value of zero means to never refresh.
  • retryInterval
    The retry interval in seconds. A value of zero means to use the default (60 seconds).
  • loaderProgId
    The ProgId of the component that should be created and invoked to populate this cache during refresh cycles. May not be null.
  • writerProgId
    The ProgId of the component that should be created and invoked to write out cache data during refresh cycles. This parameter is optional. May be null.
  • cacheObjectProgId
    The ProgId of the component that is to serve as the cache container object, usually Commerce.Dictionary or Commerce.LRUCache. May be null.
  • loaderConfigDictionary
    The Commerce.IDictionary object containing name value pairs to pass to the loader component when it is invoked. This parameter is optional. May be null.
  • writerConfigDictionary
    The Commerce.IDictionary object containing name value pairs to pass to the writer component when it is invoked. This parameter is optional. May be null.
  • dbgContext
    The DebugContext object. May not be null.

Remarks

Throws an ArgumentNullException if the name, loaderProgId or dbgContext parameters are null.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Caching

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.