示例#1
0
    public CriFsBindRequest(BindType type, CriFsBinder targetBinder, CriFsBinder srcBinder, string path)
    {
        /* パスの保存 */
        this.path = path;

        /* バインド種別のチェック */
        switch (type) {
            case BindType.Cpk:
            this.bindId = targetBinder.BindCpk(srcBinder, path);
            break;

            case BindType.Directory:
            this.bindId = targetBinder.BindDirectory(srcBinder, path);
            break;

            case BindType.File:
            this.bindId = targetBinder.BindFile(srcBinder, path);
            break;

            default:
            throw new Exception("Invalid bind type.");
        }
    }