Beispiel #1
0
    public T GetFeature <T>(string integrationType) where T : IIntegrationFeature
    {
        IChannelIntegration integration = integrationFactory.CreateIntegration(integrationType);
        var feature = integration.GetFeature <T>();

        return(feature);
    }
Beispiel #2
0
    public T GetFeature <T>(string integrationType) where T : IIntegrationFeature
    {
        T integrationFeature            = default(T);
        IChannelIntegration integration = integrationFactory.CreateIntegration(integrationType);

        if (integration != null)
        {
            integrationFeature = (T)integration.GetFeature <T>();
        }
        return(integrationFeature);
    }