/// <summary> /// Enables triple DES interceptor /// </summary> /// <param name="registrator">The registrator</param> /// <param name="key">the secret key for the TripleDES algorithm</param> /// <param name="iv">The initialization vector (IV) for the symmetric algorithm</param> public static IInterceptorRegistrator EnableTripleDESEncryption( this IInterceptorRegistrator registrator, byte[] key, byte[] iv ) { registrator.Add(new TripleDESInterceptor(key, iv)); return(registrator); }
/// <summary> /// Enable extensible content encoding and decoding based on the content_encoding message attribute. /// </summary> /// <param name="interceptorRegistrator">The extension instance.</param> /// <param name="configureCodecs">An optional callback which can be used to configure the codec map, adding /// new custom codecs or replacing existing ones.</param> /// <returns>The extension instance.</returns> public static IInterceptorRegistrator EnableExtensibleContentEncoding(this IInterceptorRegistrator interceptorRegistrator, Action <ICodecMap> configureCodecs = null) { if (interceptorRegistrator == null) { throw new ArgumentNullException(nameof(interceptorRegistrator)); } interceptorRegistrator.Add(new ExtensibleContentEncodingInterceptor(configureCodecs)); return(interceptorRegistrator); }
public static IInterceptorRegistrator EnableElasticApmInterceptor(this IInterceptorRegistrator interceptorRegister) { if (interceptorRegister == null) { throw new ArgumentNullException(nameof(interceptorRegister)); } interceptorRegister.Add(new ElasticApmInterceptor()); return(interceptorRegister); }
public static IInterceptorRegistrator EnableGZipCompression(this IInterceptorRegistrator interceptorRegistrator) { interceptorRegistrator.Add(new GZipInterceptor()); return(interceptorRegistrator); }
public static void Intercept <TWhat>(this IInterceptorRegistrator repository, IInterceptor interceptor) { repository.Intercept(typeof(TWhat), interceptor); }