private static CoreExtensionBuilder AddNetwork(this CoreExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IHttpClientInvokerFactory, InternalHttpClientInvokerFactory>();
        builder.TryAddOrReplaceService <IHttpEndpointsInvoker, InternalHttpEndpointsInvoker>();

        return(builder);
    }
    private static CoreExtensionBuilder AddCommon(this CoreExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService(typeof(ICloneable <>), typeof(Cloneable <>));
        builder.TryAddOrReplaceService(typeof(IDecoratable <>), typeof(Decoratable <>));

        return(builder);
    }
    private static CoreExtensionBuilder AddStorage(this CoreExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IStorableFileManager, InternalStorableFileManager>();
        builder.TryAddOrReplaceService <IWebFilePermission, InternalWebFilePermission>();
        builder.TryAddOrReplaceService <IWebStorableFileTransfer, InternalWebStorableFileTransfer>();

        return(builder);
    }
    private static CoreExtensionBuilder AddCryptography(this CoreExtensionBuilder builder)
    {
        builder.TryAddOrReplaceService <IAlgorithmParameterGenerator, InternalAlgorithmParameterGenerator>();
        builder.TryAddOrReplaceService <IAsymmetricAlgorithm, InternalAsymmetricAlgorithm>();
        builder.TryAddOrReplaceService <ISymmetricAlgorithm, InternalSymmetricAlgorithm>();

        return(builder);
    }