Show / Hide Table of Contents

Class SalePreviewPlugin

Inheritance
object
PreviewPluginBase
SalePreviewPlugin
Inherited Members
PreviewPluginBase.ImageHint
PreviewPluginBase.SimpleHint
PreviewPluginBase.UpdatedHint
PreviewPluginBase.GetPreviewAsync(Dictionary<string, List<string>>, PreviewData, CancellationToken)
PreviewPluginBase.TryGetIntHint(string, out int)
PreviewPluginBase.TryGetStringHint(string, out string)
PreviewPluginBase.TryGetBoolHint(string, out bool)
PreviewPluginBase.TryGetDateHint(string, out DateTime)
PreviewPluginBase.GetRawValues(string)
PreviewPluginBase.MakeImageHint(string, int)
PreviewPluginBase.RemoveBlankLines(string)
PreviewPluginBase.FormatDescriptionText(string)
PreviewPluginBase.Hints
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMPreviews
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[PreviewPlugin("SuperOffice:SalePreview", new string[] { "sale_id" })]
public class SalePreviewPlugin : PreviewPluginBase

Constructors

SalePreviewPlugin()

Declaration
public SalePreviewPlugin()

Fields

SaleKey

Declaration
public const string SaleKey = "sale_id"
Field Value
Type Description
string

Methods

InnerGetPreviewAsync(PreviewData, CancellationToken)

Subclass contract: derived class must implement their Preview logicin this method.

Declaration
protected override Task<PreviewData> InnerGetPreviewAsync(PreviewData pd, CancellationToken cancellationToken)
Parameters
Type Name Description
PreviewData pd
CancellationToken cancellationToken
Returns
Type Description
TaskPreviewData

Preview text, or an empty string

Overrides
PreviewPluginBase.InnerGetPreviewAsync(PreviewData, CancellationToken)
Remarks

The Preview hints are accessible through the Hints property, but clients should usually find the provided access methods sufficient. TryGetIntHint(string, out int), TryGetStringHint(string, out string) and TryGetBoolHint(string, out bool) look for and parse the given type of key, and return a bool value that specifies whether the given key was found.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top