예제 #1
0
        public async Task <bool> InsertAsync(string key, byte[] package, DateTime?expiryDate)
        {
            Trace.WriteLine("New insert request");

            ServerConfig server  = GetServerInternal(key);
            Request      request = InsertRequest.New(key, package, expiryDate, server.Auth);

            var response = await _connectionPool.UseAsync(con => _insertProcessor.ExecuteAsync(request, con, server));

            Trace.WriteLine($"InsertRequest status: {response.Added}");

            return(response.Added);
        }