Пример #1
0
        public GroongaContext(GroongaContextFlags flags)
        {
            _library.Initialize();

            GroongaResultCode result = GroongaApi.grn_ctx_init(out _context, flags);
            if (result != GroongaResultCode.Success)
                throw new GroongaException(result, "failed: grn_ctx_init");
        }
Пример #2
0
        public GroongaContext(GroongaContextFlags flags)
        {
            // ライブラリの初期化(初回のみ)
            _library.Initialize();

            // コンテキストの初期化
            GroongaResultCode result = GroongaApi.grn_ctx_init(out _context, flags);
            if (result != GroongaResultCode.Success)
                throw new GroongaException(result, "grn_ctx_init() faield");
        }
Пример #3
0
 public static extern GroongaResultCode grn_ctx_init(out grn_ctx ctx, GroongaContextFlags flags);