Пример #1
0
        public override Task OnActivateAsync(CancellationToken cancellationToken)
        {
            if (extender == null)
            {
                extender = new SimpleExtension("A");
                _grainContext.SetComponent <ISimpleExtension>(extender);
            }

            return(base.OnActivateAsync(cancellationToken));
        }
Пример #2
0
        public override Task OnActivateAsync()
        {
            if (extender == null)
            {
                extender = new SimpleExtension("A");
                this.Data.SetComponent <ISimpleExtension>(extender);
            }

            return(base.OnActivateAsync());
        }
Пример #3
0
        public override Task OnActivateAsync()
        {
            if (extender == null)
            {
                extender = new SimpleExtension("A");
                if (!runtimeClient.TryAddExtension(extender))
                {
                    throw new SystemException("Unable to add new extension");
                }
            }

            return(base.OnActivateAsync());
        }