aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs
blob: 87401bbfd9f669072f42ebe2bc2e4ae606fc21d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Runtime.Remoting.Lifetime;
using System.Text;

namespace OpenSim.Region.ScriptEngine.Shared.Api.Runtime
{
    public class ScriptSponsor: ISponsor
    {
        // In theory: I execute, therefore I am.
        // If GC collects this class then sponsorship will expire
        public TimeSpan Renewal(ILease lease)
        {
            return TimeSpan.FromMinutes(2);
        }
    }
}