public static IStatelessServiceHostDelegateReplicaTemplate UseDelegateInvoker(
            this IStatelessServiceHostDelegateReplicaTemplate @this,
            Func <Delegate, IServiceProvider, IStatelessServiceHostDelegateInvoker> factoryFunc)
        {
            @this.ConfigureObject(
                configurator => configurator.UseDelegateInvoker(factoryFunc));

            return(@this);
        }
        public static IStatelessServiceHostDelegateReplicaTemplate UseEvent(
            this IStatelessServiceHostDelegateReplicaTemplate @this,
            StatelessServiceLifecycleEvent @event)
        {
            @this.ConfigureObject(
                configurator => configurator.UseEvent(@event));

            return(@this);
        }