public DeliveryCacheDirectoryService(BcatServer server, DeliveryCacheStorageService parent, ulong applicationId,
                                      AccessControl accessControl)
 {
     Server        = server;
     Parent        = parent;
     ApplicationId = applicationId;
     Access        = accessControl;
 }
Beispiel #2
0
        private Result CreateDeliveryCacheStorageServiceImpl(out IDeliveryCacheStorageService service,
                                                             ApplicationId applicationId)
        {
            service = default;

            Result rc = Server.GetStorageManager().Open(applicationId.Value);

            if (rc.IsFailure())
            {
                return(rc);
            }

            // todo: Check if network account required

            service = new DeliveryCacheStorageService(Server, applicationId.Value, AccessControl);

            return(Result.Success);
        }