All products / Saraff.Twain.DS / Contents
DataSourceService Category
- DataSourceAttribute - Define a Data Source
[assembly: DataSource( typeof(Saraff.Twain.DS.Screen.ScreenDataSource), Country = TwCountry.BELARUS, Language = TwLanguage.RUSSIAN, MaxConnectionCount = 64, IdentityProvider = typeof(_IdentityProvider))]
A _IdentityProvider class must implement a IIdentityProvider interface. See follow sample:
internal sealed class _IdentityProvider:IIdentityProvider { public Identity Identity { get { return new Identity { Company="asdf", ProductFamily="zcvx", ProductName="wert", Version=new Version(4,5) }; } } }
If a IdentityProvider property don’t set that will uses default identity provider.
- SupportedGroupsAttribute - Define a Supported Groups for a Data Source
[SupportedGroups(TwDG.Image)] public abstract class ImageDataSource:DataSource {